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.

Spring JIRA | Prashant Katiyar | 1 year ago
  1. 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.
  2. 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.
  3. 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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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.

    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 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()
    2. Spring Beans
      DefaultBeanDefinitionDocumentReader.parseBeanDefinitions
      1. org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
      2. org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
      3. org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:76)
      4. org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.importBeanDefinitionResource(DefaultBeanDefinitionDocumentReader.java:272)
      5. org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:197)
      6. org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:182)
      6 frames