Announcement Announcement Module
Collapse
No announcement yet.
XSD Location Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment

    Working...
    X