org.xml.sax.SAXParseException: The content of element type "struts-config" must match "(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

The persistence_2_0.xsd enforces the order of the elements in the xml. Re-ordering them makes then error go away.

Solutions on the web

via baidu.com by Unknown author, 1 year ago
The content of element type "struts-config" must match "(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".
via Oracle Community by 843834, 1 year ago
The content of element type "struts-config" must match "(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-map pings?,controller?,message-resources*,plug-in*)".
via Stack Overflow by Tuhin Subhra Dey
, 2 years ago
The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,
via Coderanch by Sowrabha, 11 months ago
The content of element type "definition" must match "(icon?,display-name?,description?,put*,putList*)".
via Coderanch by Venkatesh Kumar, 11 months ago
Element type "plug-in" must be declared.
via ne.jp by Unknown author, 1 year ago
The content of element type "servlet" must match "(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-ref*)".
org.xml.sax.SAXParseException: The content of element type "struts-config" must match "(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 week ago
2 times, 3 weeks ago
2 times, 4 weeks ago
7 times, 6 months ago
2 times, 6 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.