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*)".

educity.cn | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    SAX解析错误-捆饶我多天的有关问题,仍未解决. SOS !_IT知识问答_希赛网

    educity.cn | 6 months ago
    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*)".

    Root Cause Analysis

    1. 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()
    2. co.apache.xerces
      AbstractSAXParser.parse
      1. co.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
      2. co.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
      3. co.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
      4. co.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
      5. co.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2048)
      6. co.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:932)
      7. co.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
      8. co.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
      9. co.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
      10. co.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
      11. co.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
      12. co.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
      13. co.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
      13 frames
    3. ormons.digester
      Digester.parse
      1. ormons.digester.Digester.parse(Digester.java:1572)
      1 frame
    4. struts
      ActionServlet.init
      1. org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:738)
      2. org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:687)
      3. org.apache.struts.action.ActionServlet.init(ActionServlet.java:333)
      3 frames
    5. JavaServlet
      GenericServlet.init
      1. javax.servlet.GenericServlet.init(GenericServlet.java:211)
      1 frame
    6. orre
      StandardHost.addChild
      1. orre.StandardWrapper.loadServlet(StandardWrapper.java:1091)
      2. orre.StandardWrapper.load(StandardWrapper.java:925)
      3. orre.StandardContext.loadOnStartup(StandardContext.java:3857)
      4. orre.StandardContext.start(StandardContext.java:4118)
      5. orre.ContainerBase.addChildInternal(ContainerBase.java:759)
      6. orre.ContainerBase.addChild(ContainerBase.java:739)
      7. orre.StandardHost.addChild(StandardHost.java:524)
      7 frames
    7. Glassfish Core
      LifecycleSupport.fireLifecycleEvent
      1. org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:894)
      2. org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:857)
      3. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
      4. org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)
      5. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
      6. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      6 frames
    8. orre
      StandardServer.start
      1. orre.ContainerBase.start(ContainerBase.java:1020)
      2. orre.StandardHost.start(StandardHost.java:718)
      3. orre.ContainerBase.start(ContainerBase.java:1012)
      4. orre.StandardEngine.start(StandardEngine.java:442)
      5. orre.StandardService.start(StandardService.java:450)
      6. orre.StandardServer.start(StandardServer.java:683)
      6 frames