Announcement Announcement Module
Collapse
No announcement yet.
Exception trying to use integration/xml schema Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exception trying to use integration/xml schema

    Hello,

    I'm getting an exception when trying to simply use the integration/xml schema elements. If i take out the integration/xml elements in my applicationContext file, it works fine.

    In the past, i've seen that this error means that a jar describing the schema is missing, but it doesn't seem to be the case this time.

    I've attached a sample eclipse project with a failing Junit Test case that can be used to replicate the problem.

    I appreciate any help. Thanks!

    Code:
    Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 16 in XML document from class path resource [spring/applicationContext-da
    ta-acquisition.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration c
    an be found for element 'int-xml:xpath-splitter'.
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
            at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
            at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
            at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
            at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212)
            at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:81)
            at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:42)
            at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:173)
            at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:197)
            ... 21 more
    Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'int-xml:xpath-sp
    litter'.
            at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
            at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)

  • #2
    You have a typo in your headers
    You have
    Code:
    http://www.springframework.org/schema/integration/file http://www.springframework.org/schema/integration/xml/spring-integration-xml-1.0.xsd
    should be:
    Code:
    http://www.springframework.org/schema/integration/xml http://www.springframework.org/schema/integration/xml/spring-integration-xml-1.0.xsd

    Comment


    • #3
      how embarrassing ... *blush*.

      Thanks!

      Comment

      Working...
      X