Announcement Announcement Module
Collapse
No announcement yet.
'sws:annotation-driven' -- PLEASE HELP Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 'sws:annotation-driven' -- PLEASE HELP

    Hello - I am trying to dynamically generate WSDL. In my servlet-context I am adding <sws:annotation-driven/>. The 2.1.x.x library has been added to maven so I know this is good. I keep getting the following error:

    cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'sws:annotation-driven'.

    Im going crazy here. Can someone please help with this. The error only occurs when I run the project.

  • #2
    I've been using web services and integration together, and I've run into this problem a number of times when I've added some schema to the <beans> tag. Every time it was one or more of these things:
    • the jar with the xsd wasn't in the classpath
    • the IDE wasn't picking up *.xsd as a classpath resource (this little gem was courtesy of my IntelliJ setup)
    • there something wrong in the element I was trying to used (use the IDE instead of vi and the IDE should point the problem out)
    • there was a typo in the xsi:schemaLocation (the IDE will not pick up on these errors)
      • there was a trailing slash in "http://www.springframework.org/schema/integration/xml http://www.springframework.org/schema/integration/xml/spring-integration-xml.xsd" and had this instead "http://www.springframework.org/schema/integration/xml/ http://www.springframework.org/schema/integration/xml/spring-integration-xml.xsd"
      • there was something wrong in the path to the xsd (/streaming/spring-integration-xml.xsd instead of /xml/spring-integration-xml.xsd"
    • I had made a goof in the xmlns:int-xml="http://www.springframework.org/schema/integration/xml"


    Each time it was a pain in the to figure out, but at least now I know where to look for the source of the problem.

    Comment

    Working...
    X