org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 24 in XML document from URL [file:/D:/codes/opensource/disconf/disconf-web/target/disconf-web/WEB-INF/classes/applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/mvc/spring-mvc.xsd; lineNumber: 24; columnNumber: 20; cos-all-limited.1.2: An ''all'' model group must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that particle must be part of a pair which constitutes the '{'content type'}' of a complex type definition.

GitHub | soiff | 1 year ago
  1. 0

    编译出错org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/mvc/spring-mvc.xsd; lineNumber: 24; columnNumber: 20; cos-all-limited.1.2

    GitHub | 1 year ago | soiff
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 24 in XML document from URL [file:/D:/codes/opensource/disconf/disconf-web/target/disconf-web/WEB-INF/classes/applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/mvc/spring-mvc.xsd; lineNumber: 24; columnNumber: 20; cos-all-limited.1.2: An ''all'' model group must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that particle must be part of a pair which constitutes the '{'content type'}' of a complex type definition.
  2. 0

    编译出错org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/mvc/spring-mvc.xsd; lineNumber: 24; columnNumber: 20; cos-all-limited.1.2

    GitHub | 1 year ago | soiff
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 24 in XML document from URL [file:/D:/codes/opensource/disconf/disconf-web/target/disconf-web/WEB-INF/classes/applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/mvc/spring-mvc.xsd; lineNumber: 24; columnNumber: 20; cos-all-limited.1.2: An ''all'' model group must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that particle must be part of a pair which constitutes the '{'content type'}' of a complex type definition.
  3. 0

    error logs:: {noformat} org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [enterpriseReportEngineApp-spring-config-si.xml] Offending resource: ServletContext resource [/WEB-INF/spring/enterpriseReportEngineApp-spring-config.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 3702 in XML document from ServletContext resource [/WEB-INF/spring/enterpriseReportEngineApp-spring-config-si.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/integration/spring-integration.xsd; lineNumber: 3702; columnNumber: 20; cos-all-limited.1.2: An ''all'' model group must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that particle must be part of a pair which constitutes the '{'content type'}' of a complex type definition. at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:272) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:197) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:182) {noformat} jars:: {code:xml} <dependency> <groupId>org.springframework.integration</groupId> <artifactId>spring-integration-core</artifactId> <version>2.2.4.RELEASE</version> </dependency> <dependency> <groupId>groovy-all</groupId> <artifactId>groovy-all</artifactId> <version>2.1.6</version> <scope>system</scope> <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/groovy-all-2.1.6.jar</systemPath> </dependency> <dependency> <groupId>spring-integration-groovy</groupId> <artifactId>spring-integration-groovy</artifactId> <version>2.2.4.RELEASE</version> <scope>system</scope> <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/spring-integration-groovy-2.2.4.RELEASE.jar</systemPath> </dependency> <dependency> <groupId>spring-integration-scripting</groupId> <artifactId>spring-integration-scripting</artifactId> <version>2.2.4.RELEASE</version> <scope>system</scope> <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/spring-integration-scripting-2.2.4.RELEASE.jar</systemPath> </dependency> {code} {{enterpriseReportEngineApp-spring-config-si.xml}} :: {code:xml} <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:jms="http://www.springframework.org/schema/jms" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:amq="http://activemq.apache.org/schema/core" xmlns:int="http://www.springframework.org/schema/integration" xmlns:int-jms="http://www.springframework.org/schema/integration/jms" xmlns:int-stream="http://www.springframework.org/schema/integration/stream" xmlns:int-groovy="http://www.springframework.org/schema/integration/groovy" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-3.1.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd http://www.springframework.org/schema/integration/jms http://www.springframework.org/schema/integration/jms/spring-integration-jms.xsd http://www.springframework.org/schema/integration/stream http://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd http://www.springframework.org/schema/integration/groovy http://www.springframework.org/schema/integration/groovy/spring-integration-groovy.xsd"> <int:channel id="outputChannel" /> <int:gateway id="reportEngineGateway" service-interface="com.bnym.ecs.report.service.V2.preprocessor.impl.ReportEngineGateway" default-reply-channel="outputChannel"> <int:method name="processAsyncMsgExcution" request-channel="executeMsgChannel" /> </int:gateway> <int:service-activator input-channel="executeMsgChannel" output-channel="nullChannel" ref="reportEngineADHRestHelper" method="execute" > </int:service-activator> <!-- <int:channel id="executeMsgChannel"> <int:dispatcher task-executor="v2ThreadPooltaskExecutor" /> </int:channel> --> <int:channel id="outputChannel"> <int:queue capacity="10" /> </int:channel> </beans> {code}

    Spring JIRA | 1 year ago | Prashant Katiyar
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 3702 in XML document from ServletContext resource [/WEB-INF/spring/enterpriseReportEngineApp-spring-config-si.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/integration/spring-integration.xsd; lineNumber: 3702; columnNumber: 20; cos-all-limited.1.2: An ''all'' model group must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that particle must be part of a pair which constitutes the '{'content type'}' of a complex type definition.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    error logs:: {noformat} org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [enterpriseReportEngineApp-spring-config-si.xml] Offending resource: ServletContext resource [/WEB-INF/spring/enterpriseReportEngineApp-spring-config.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 3702 in XML document from ServletContext resource [/WEB-INF/spring/enterpriseReportEngineApp-spring-config-si.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/integration/spring-integration.xsd; lineNumber: 3702; columnNumber: 20; cos-all-limited.1.2: An ''all'' model group must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that particle must be part of a pair which constitutes the '{'content type'}' of a complex type definition. at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:272) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:197) at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:182) {noformat} jars:: {code:xml} <dependency> <groupId>org.springframework.integration</groupId> <artifactId>spring-integration-core</artifactId> <version>2.2.4.RELEASE</version> </dependency> <dependency> <groupId>groovy-all</groupId> <artifactId>groovy-all</artifactId> <version>2.1.6</version> <scope>system</scope> <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/groovy-all-2.1.6.jar</systemPath> </dependency> <dependency> <groupId>spring-integration-groovy</groupId> <artifactId>spring-integration-groovy</artifactId> <version>2.2.4.RELEASE</version> <scope>system</scope> <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/spring-integration-groovy-2.2.4.RELEASE.jar</systemPath> </dependency> <dependency> <groupId>spring-integration-scripting</groupId> <artifactId>spring-integration-scripting</artifactId> <version>2.2.4.RELEASE</version> <scope>system</scope> <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/spring-integration-scripting-2.2.4.RELEASE.jar</systemPath> </dependency> {code} {{enterpriseReportEngineApp-spring-config-si.xml}} :: {code:xml} <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:jms="http://www.springframework.org/schema/jms" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:amq="http://activemq.apache.org/schema/core" xmlns:int="http://www.springframework.org/schema/integration" xmlns:int-jms="http://www.springframework.org/schema/integration/jms" xmlns:int-stream="http://www.springframework.org/schema/integration/stream" xmlns:int-groovy="http://www.springframework.org/schema/integration/groovy" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-3.1.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd http://www.springframework.org/schema/integration/jms http://www.springframework.org/schema/integration/jms/spring-integration-jms.xsd http://www.springframework.org/schema/integration/stream http://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd http://www.springframework.org/schema/integration/groovy http://www.springframework.org/schema/integration/groovy/spring-integration-groovy.xsd"> <int:channel id="outputChannel" /> <int:gateway id="reportEngineGateway" service-interface="com.bnym.ecs.report.service.V2.preprocessor.impl.ReportEngineGateway" default-reply-channel="outputChannel"> <int:method name="processAsyncMsgExcution" request-channel="executeMsgChannel" /> </int:gateway> <int:service-activator input-channel="executeMsgChannel" output-channel="nullChannel" ref="reportEngineADHRestHelper" method="execute" > </int:service-activator> <!-- <int:channel id="executeMsgChannel"> <int:dispatcher task-executor="v2ThreadPooltaskExecutor" /> </int:channel> --> <int:channel id="outputChannel"> <int:queue capacity="10" /> </int:channel> </beans> {code}

    Spring JIRA | 1 year ago | Prashant Katiyar
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 3702 in XML document from ServletContext resource [/WEB-INF/spring/enterpriseReportEngineApp-spring-config-si.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/integration/spring-integration.xsd; lineNumber: 3702; columnNumber: 20; cos-all-limited.1.2: An ''all'' model group must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that particle must be part of a pair which constitutes the '{'content type'}' of a complex type definition.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException

      Line 24 in XML document from URL [file:/D:/codes/opensource/disconf/disconf-web/target/disconf-web/WEB-INF/classes/applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/mvc/spring-mvc.xsd; lineNumber: 24; columnNumber: 20; cos-all-limited.1.2: An ''all'' model group must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that particle must be part of a pair which constitutes the '{'content type'}' of a complex type definition.

      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke()
    2. Java RT
      DefaultMBeanServerInterceptor.invoke
      1. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
      1 frame
    3. Spring Beans
      XmlBeanDefinitionReader.doLoadBeanDefinitions
      1. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399)
      1 frame
    4. Java RT
      JmxMBeanServer.invoke
      1. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
      1 frame
    5. Spring Beans
      XmlBeanDefinitionReader.loadBeanDefinitions
      1. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
      1 frame
    6. Java RT
      RMIConnectionImpl.doOperation
      1. javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1487)
      1 frame
    7. Spring Beans
      XmlBeanDefinitionReader.loadBeanDefinitions
      1. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
      1 frame
    8. Java RT
      RMIConnectionImpl.access$300
      1. javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:97)
      1 frame
    9. Spring Beans
      AbstractBeanDefinitionReader.loadBeanDefinitions
      1. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
      1 frame
    10. Java RT
      RMIConnectionImpl$PrivilegedOperation.run
      1. javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1328)
      1 frame
    11. Spring Beans
      AbstractBeanDefinitionReader.loadBeanDefinitions
      1. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
      1 frame
    12. Java RT
      RMIConnectionImpl.doPrivilegedOperation
      1. javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1420)
      1 frame
    13. Spring Beans
      AbstractBeanDefinitionReader.loadBeanDefinitions
      1. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
      1 frame
    14. Java RT
      RMIConnectionImpl.invoke
      1. javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:848)
      1 frame
    15. Spring
      XmlWebApplicationContext.loadBeanDefinitions
      1. org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
      1 frame
    16. Java RT
      NativeMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      2 frames
    17. Spring
      XmlWebApplicationContext.loadBeanDefinitions
      1. org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
      1 frame
    18. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      1 frame
    19. Spring Context
      AbstractRefreshableApplicationContext.refreshBeanFactory
      1. org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
      1 frame
    20. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java:606)
      1 frame
    21. Spring Context
      AbstractApplicationContext.obtainFreshBeanFactory
      1. org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537)
      1 frame
    22. Java RT
      UnicastServerRef.dispatch
      1. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
      1 frame
    23. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:452)
      1 frame
    24. Java RT
      Transport$1.run
      1. sun.rmi.transport.Transport$1.run(Transport.java:177)
      1 frame
    25. Spring
      ContextLoader.configureAndRefreshWebApplicationContext
      1. org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
      1 frame
    26. Java RT
      Transport$1.run
      1. sun.rmi.transport.Transport$1.run(Transport.java:174)
      1 frame
    27. Spring
      ContextLoader.initWebApplicationContext
      1. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
      1 frame
    28. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    29. Spring
      ContextLoaderListener.contextInitialized
      1. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
      1 frame
    30. Java RT
      Transport.serviceCall
      1. sun.rmi.transport.Transport.serviceCall(Transport.java:173)
      1 frame
    31. com.baidu.dsp
      ContextListener.contextInitialized
      1. com.baidu.dsp.common.listener.ContextListener.contextInitialized(ContextListener.java:21)
      1 frame
    32. Glassfish Core
      StandardContext.listenerStart
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
      1 frame
    33. Java RT
      TCPTransport.handleMessages
      1. sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:556)
      1 frame
    34. Glassfish Core
      StandardContext.startInternal
      1. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528)
      1 frame
    35. Java RT
      TCPTransport$ConnectionHandler.run
      1. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:811)
      2. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:670)
      2 frames
    36. Glassfish Core
      LifecycleBase.start
      1. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      1 frame
    37. Java RT
      ThreadPoolExecutor.runWorker
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      1 frame
    38. Glassfish Core
      ContainerBase.addChildInternal
      1. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      1 frame
    39. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      1 frame
    40. Glassfish Core
      ContainerBase.addChild
      1. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      1 frame
    41. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame
    42. Glassfish Core
      StandardHost.addChild
      1. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
      1 frame