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 | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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 | 2 years 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.

    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