org.xml.sax.SAXParseException: 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*)".

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

Solutions on the web

via educity.cn by Unknown author, 1 year ago
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*)".
org.xml.sax.SAXParseException: 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*)".
at co.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
at co.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
at co.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
at co.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
at co.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2048)
at co.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:932)
at co.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
at co.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
at co.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at co.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at co.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at co.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at co.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
at ormons.digester.Digester.parse(Digester.java:1572)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:738)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:687)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at orre.StandardWrapper.loadServlet(StandardWrapper.java:1091)
at orre.StandardWrapper.load(StandardWrapper.java:925)
at orre.StandardContext.loadOnStartup(StandardContext.java:3857)
at orre.StandardContext.start(StandardContext.java:4118)
at orre.ContainerBase.addChildInternal(ContainerBase.java:759)
at orre.ContainerBase.addChild(ContainerBase.java:739)
at orre.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:894)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:857)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at orre.ContainerBase.start(ContainerBase.java:1020)
at orre.StandardHost.start(StandardHost.java:718)
at orre.ContainerBase.start(ContainerBase.java:1012)
at orre.StandardEngine.start(StandardEngine.java:442)
at orre.StandardService.start(StandardService.java:450)
at orre.StandardServer.start(StandardServer.java:683)

Users with the same issue

You are the first who have seen this exception.

Write tip

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