org.xml.sax.SAXParseException: Relative URI "org/springframework/web/context/WEB-INF/contextInclude.xml"; can not be resolved without a base URI.

Spring JIRA | Michael Labhard | 1 decade ago
  1. 0

    [junit] Testcase: testContextLoaderListenerWithDefaultContext took 0.597 sec [junit] Caused an ERROR [junit] Line 3 in XML document from resource [/org/springframework/web/context/WEB-INF/applicationContext.xml] of ServletContext is invalid; nested exception is org.xml.sax.SAXParseException: Relative URI "org/springframework/web/context/WEB-INF/contextInclude.xml"; can not be resolved without a base URI. [junit] org.springframework.beans.factory.BeanDefinitionStoreException: Line 3 in XML document from resource [/org/springframework/web/context/WEB-INF/applicationContext.xml] of ServletContext is invalid; nested exception is org.xml.sax.SAXParseException: Relative URI "org/springframework/web/context/WEB-INF/contextInclude.xml"; can not be resolved without a base URI. [junit] org.xml.sax.SAXParseException: Relative URI "org/springframework/web/context/WEB-INF/contextInclude.xml"; can not be resolved without a base URI. [junit] at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3339) [junit] at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3333) [junit] at org.apache.crimson.parser.Parser2.resolveURI(Parser2.java:2915) [junit] at org.apache.crimson.parser.Parser2.maybeExternalID(Parser2.java:2887) [junit] at org.apache.crimson.parser.Parser2.maybeEntityDecl(Parser2.java:2789) [junit] at org.apache.crimson.parser.Parser2.maybeMarkupDecl(Parser2.java:1357) [junit] at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1291) [junit] at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:623) [junit] at org.apache.crimson.parser.Parser2.parse(Parser2.java:333) [junit] at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448) [junit] at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185) [junit] at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:76) [junit] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:126) [junit] at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:125) [junit] at org.springframework.context.support.AbstractXmlApplicationContext.refreshBeanFactory(AbstractXmlApplicationContext.java:65) [junit] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:226) [junit] at org.springframework.web.context.support.XmlWebApplicationContext.refresh(XmlWebApplicationContext.java:131) [junit] at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:156) [junit] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:97) [junit] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48) [junit] at org.springframework.web.context.ContextLoaderTestSuite.testContextLoaderListenerWithDefaultContext(ContextLoaderTestSuite.java:56) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    Spring JIRA | 1 decade ago | Michael Labhard
    org.xml.sax.SAXParseException: Relative URI "org/springframework/web/context/WEB-INF/contextInclude.xml"; can not be resolved without a base URI.
  2. 0

    [junit] Testcase: testContextLoaderListenerWithDefaultContext took 0.597 sec [junit] Caused an ERROR [junit] Line 3 in XML document from resource [/org/springframework/web/context/WEB-INF/applicationContext.xml] of ServletContext is invalid; nested exception is org.xml.sax.SAXParseException: Relative URI "org/springframework/web/context/WEB-INF/contextInclude.xml"; can not be resolved without a base URI. [junit] org.springframework.beans.factory.BeanDefinitionStoreException: Line 3 in XML document from resource [/org/springframework/web/context/WEB-INF/applicationContext.xml] of ServletContext is invalid; nested exception is org.xml.sax.SAXParseException: Relative URI "org/springframework/web/context/WEB-INF/contextInclude.xml"; can not be resolved without a base URI. [junit] org.xml.sax.SAXParseException: Relative URI "org/springframework/web/context/WEB-INF/contextInclude.xml"; can not be resolved without a base URI. [junit] at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3339) [junit] at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3333) [junit] at org.apache.crimson.parser.Parser2.resolveURI(Parser2.java:2915) [junit] at org.apache.crimson.parser.Parser2.maybeExternalID(Parser2.java:2887) [junit] at org.apache.crimson.parser.Parser2.maybeEntityDecl(Parser2.java:2789) [junit] at org.apache.crimson.parser.Parser2.maybeMarkupDecl(Parser2.java:1357) [junit] at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1291) [junit] at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:623) [junit] at org.apache.crimson.parser.Parser2.parse(Parser2.java:333) [junit] at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448) [junit] at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185) [junit] at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:76) [junit] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:126) [junit] at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:125) [junit] at org.springframework.context.support.AbstractXmlApplicationContext.refreshBeanFactory(AbstractXmlApplicationContext.java:65) [junit] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:226) [junit] at org.springframework.web.context.support.XmlWebApplicationContext.refresh(XmlWebApplicationContext.java:131) [junit] at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:156) [junit] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:97) [junit] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48) [junit] at org.springframework.web.context.ContextLoaderTestSuite.testContextLoaderListenerWithDefaultContext(ContextLoaderTestSuite.java:56) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    Spring JIRA | 1 decade ago | Michael Labhard
    org.xml.sax.SAXParseException: Relative URI "org/springframework/web/context/WEB-INF/contextInclude.xml"; can not be resolved without a base URI.
  3. 0

    Raible Designs | AppFuse Refactorings Part II: Spring Integration

    raibledesigns.com | 1 year ago
    org.xml.sax.SAXParseException: 相关的 URI "applicationContext-database.xml"; 没有基本的 URI,不能解决。
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    'jwnl.configuration' is undefined

    openephyra | 7 years ago | bchennareddy
    net.didion.jwnl.JWNLException: Error parsing the properties file
  6. 0

    what could be reason with this?

    pmd | 1 decade ago | *anonymous
    org.xml.sax.SAXParseException: Illegal character at end of document, &\#x3c;.

    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.xml.sax.SAXParseException

      Relative URI "org/springframework/web/context/WEB-INF/contextInclude.xml"; can not be resolved without a base URI.

      at org.apache.crimson.parser.Parser2.fatal()
    2. org.apache.crimson
      DocumentBuilderImpl.parse
      1. org.apache.crimson.parser.Parser2.fatal(Parser2.java:3339)
      2. org.apache.crimson.parser.Parser2.fatal(Parser2.java:3333)
      3. org.apache.crimson.parser.Parser2.resolveURI(Parser2.java:2915)
      4. org.apache.crimson.parser.Parser2.maybeExternalID(Parser2.java:2887)
      5. org.apache.crimson.parser.Parser2.maybeEntityDecl(Parser2.java:2789)
      6. org.apache.crimson.parser.Parser2.maybeMarkupDecl(Parser2.java:1357)
      7. org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1291)
      8. org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:623)
      9. org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
      10. org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
      11. org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
      11 frames
    3. Java RT
      DocumentBuilder.parse
      1. javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:76)
      1 frame
    4. Spring Beans
      XmlBeanDefinitionReader.loadBeanDefinitions
      1. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:126)
      1 frame
    5. Spring Context
      AbstractApplicationContext.refresh
      1. org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:125)
      2. org.springframework.context.support.AbstractXmlApplicationContext.refreshBeanFactory(AbstractXmlApplicationContext.java:65)
      3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:226)
      3 frames
    6. Spring
      ContextLoaderTestSuite.testContextLoaderListenerWithDefaultContext
      1. org.springframework.web.context.support.XmlWebApplicationContext.refresh(XmlWebApplicationContext.java:131)
      2. org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:156)
      3. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:97)
      4. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
      5. org.springframework.web.context.ContextLoaderTestSuite.testContextLoaderListenerWithDefaultContext(ContextLoaderTestSuite.java:56)
      5 frames
    7. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3 frames