Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-413

SchemaCollection issues with classpath resources and relative schema imports


    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.3, 1.5.4
    • Fix Version/s: 1.5.5
    • Component/s: OXM
    • Labels:
    • Environment:
      Spring WS 1.5.3, war deployed to Jetty


      This issue is linked to the following thread http://forum.springframework.org/showthread.php?p=176210

      I store my schemas in a specific maven project together with the generated sources.

      client-messages.xsd import client-types.xsd

      In my war project, I configured the Spring-WS config file this way:

      <bean id="schemaCollection" class="org.springframework.xml.xsd.commons.CommonsXsdSchemaCollection">
      <property name="xsds">
      <property name="inline" value="true" />

      When generating the wsdl, the framework complains that the client-types.xsd is not found.

      Would it be possible to enhance the XsdSchemaCollection (or to write a specific org.apache.ws.commons.schema.resolver.URIResolver) which can handle the import nicely ?

      Workaround is twofolds:

      • put the xsds in the war file
      • merge the xsds in one single file (no more import statement)
      1. ClasspathBaseUriResolver.java
        2 kB
        Patrick Crocker
      2. CommonsXsdSchemaCollection.java
        8 kB
        Patrick Crocker


        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        15d 22h 10m 1 Arjen Poutsma 28/Aug/08 5:40 AM
        In Progress In Progress Resolved Resolved
        22m 44s 1 Arjen Poutsma 28/Aug/08 6:03 AM
        Resolved Resolved Closed Closed
        1345d 1h 1 Arjen Poutsma 04/May/12 7:03 AM


          • Assignee:
            arjen.poutsma Arjen Poutsma
            patrick.crocker@gmail.com Patrick Crocker
          • Votes:
            2 Vote for this issue
            5 Start watching this issue


            • Created: