While working in struts recently I got this error.
“The content of element type “struts-config” must match “(display-name?,description?,data-sources?,form-beans?,global-exceptions?, global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)”.
From the error it was hard to find that what is wrong and where as I cross checked my struts-config file a number of times. This error mainly comes because of the mixing of the order of struts elements. To solve this have a look of the DTD present at the given location
Once your elements are in proper order the error will be solved.