org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from META-INF/spring/Spring-Dojo.js is invalid; nested exception is org.xml.sax.SAXParseException: Content is not allowed in prolog.

Spring JIRA | Dave Syer | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Slices tries to parse all files from META-INF/spring, whereas it only really knows how to process xml files. Hence this... {noformat} 13:14:46.746 [Slices-1] DEBUG o.s.s.i.s.ServiceWiringBeanFactoryPostProcessor - ApplicationContext '1' waiting for wiring Exception in thread "Slices-2" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from META-INF/spring/Spring-Dojo.js is invalid; nested exception is org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) at org.springframework.context.support.GenericXmlApplicationContext.load(GenericXmlApplicationContext.java:84) at org.springframework.slices.personality.internal.SpringApplicationSlicePersonality.start(SpringApplicationSlicePersonality.java:53) {noformat} (Spring JS puts JavaScript in META-INF/spring).

    Spring JIRA | 7 years ago | Dave Syer
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from META-INF/spring/Spring-Dojo.js is invalid; nested exception is org.xml.sax.SAXParseException: Content is not allowed in prolog.
  2. 0

    Slices tries to parse all files from META-INF/spring, whereas it only really knows how to process xml files. Hence this... {noformat} 13:14:46.746 [Slices-1] DEBUG o.s.s.i.s.ServiceWiringBeanFactoryPostProcessor - ApplicationContext '1' waiting for wiring Exception in thread "Slices-2" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from META-INF/spring/Spring-Dojo.js is invalid; nested exception is org.xml.sax.SAXParseException: Content is not allowed in prolog. at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) at org.springframework.context.support.GenericXmlApplicationContext.load(GenericXmlApplicationContext.java:84) at org.springframework.slices.personality.internal.SpringApplicationSlicePersonality.start(SpringApplicationSlicePersonality.java:53) {noformat} (Spring JS puts JavaScript in META-INF/spring).

    Spring JIRA | 7 years ago | Dave Syer
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from META-INF/spring/Spring-Dojo.js is invalid; nested exception is org.xml.sax.SAXParseException: Content is not allowed in prolog.
  3. 0

    Cannot resolve the name 'integration:smartLifeCycleAttributeGroup' to a(n) 'attribute group' component when packaged with Maven

    GitHub | 11 months ago | dilzfiesta
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 55 in XML document from class path resource [META-INF/spring/integration/tcpClientServerDemo-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/integration/ip/spring-integration-ip.xsd; lineNumber: 55; columnNumber: 75; src-resolve: Cannot resolve the name 'integration:smartLifeCycleAttributeGroup' to a(n) 'attribute group' component.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    mule 3.2.1 support with mongo-connector 1.4

    GitHub | 5 years ago | cskinfill
    org.mule.api.config.ConfigurationException: Line 246 in XML document from URL [file:/home/craig/git/OSIS/osis-exacttarget/src/main/resources/config/mule/exacttarget/mule-config.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://www.mulesoft.org/schema/mule/mongo/1.0/mule-mongo.xsd; lineNumber: 246; columnNumber: 26; 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. (org.mule.api.lifecycle.InitialisationException)
  6. 0

    The prefix "xsi" for attribute "xsi:schemaLocation" associated with an element type "beans" is not bound. When running spring on tomcat

    Stack Overflow | 2 years ago
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 9 in XML document from ServletContext resource [/WEB-INF/Dispatcher-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 68; The prefix "xsi" for attribute "xsi:schemaLocation" associated with an element type "beans" is not bound.

  1. marcbouvierdav 38 times, last 5 months ago
10 unregistered visitors
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 1 in XML document from META-INF/spring/Spring-Dojo.js is invalid; nested exception is org.xml.sax.SAXParseException: Content is not allowed in prolog.

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions()
  2. Spring Beans
    AbstractBeanDefinitionReader.loadBeanDefinitions
    1. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
    2. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
    3. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
    4. org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
    4 frames
  3. Spring Context
    GenericXmlApplicationContext.load
    1. org.springframework.context.support.GenericXmlApplicationContext.load(GenericXmlApplicationContext.java:84)
    1 frame
  4. org.springframework.slices
    SpringApplicationSlicePersonality.start
    1. org.springframework.slices.personality.internal.SpringApplicationSlicePersonality.start(SpringApplicationSlicePersonality.java:53)
    1 frame