Announcement Announcement Module
Collapse
No announcement yet.
Basic problem with xml import Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Basic problem with xml import

    This is such a basic problem I'm surprised that it doesn't work. I'm using an "include" in the top level generateStereoPairs.xml context file:
    Code:
    	
    <import resource="wcs_gateway/wcsRequestWithReservation.xml"/>	
    <import resource="wcs_gateway/reservation/reservationService.xml"/>
    There are two directories, wcs_gateway and wcs_gateway/reservation below the current resources directory.
    This is failing with the following error code
    Code:
    Line 16 in XML document from class path resource [META-INF/spring/integration/generateStereoPairs.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'import'.
    Is this a namespace problem or a classpath problem or what? I'm using Eclipse IDE.

  • #2
    It was a namespace problem. I needed to namespace <beans:import> for the top level file that was using integration namespace as default.

    Comment

    Working...
    X