Results 1 to 2 of 2

Thread: XSD Location

  1. #1
    Join Date
    Feb 2008
    Location
    Dublin - Ireland
    Posts
    102

    Default XSD Location

    Here's a quick one. In my conf file I have


    <beans:beans xmlns="http://www.springframework.org/schema/integration"
    (...)
    xsi:schemaLocation="http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-1.0.xsd ( ...)>

    <message-bus/>
    <channel id="input"/>
    (...)
    <service-activator input-channel="input" ref="handler" output-channel="responses"/>
    <gateway id="testService" (...)/>
    (...)
    Although everything works fine, the <service-activator> and <gateway> entries (but not the others) give a error in the Eclipse editor

    Error - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'gateway'.
    which is a little annoying because I can't have code-completion and the like.

    However if I change the xsi:schemaLocation to

    http://www.springframework.org/schema/integration/spring-integration-core-1.0.xsd
    the errors disappear. Isn't that strange, knowing the former xsd:includes the later?

  2. #2
    Join Date
    May 2007
    Location
    Netherlands
    Posts
    614

    Default

    This is an eclipse issue. Eclipse shouldn't even be looking at that url (it is a uri technically, and has nothing to do with an xsd file being accessible over http from your particular location). That said, it is a bit of a pain.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •