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

All-in-one jar contains different namespace in spring.handlers than the module jars

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.6
    • Fix Version/s: 1.5.7
    • Component/s: OXM
    • Labels:
      None
    • Environment:
      not important

      Description

      There is an inconsistency between spring.handlers from the all-in-one JAR and the spring-oxm-1.5.6.jar. Using the all-in-one-jar causes the Unable to locate Spring NamespaceHandler for XML schema namespace http://www.springframework.org/schema/oxm exception.

      spring-oxm-1.5.6.jar contains the following spring.handlers:

      http\://www.springframework.org/schema/oxm=org.springframework.oxm.config.OxmNamespaceHandler
      

      The spring-ws-1.5.6-all.jar contains the spring.handlers:

      http://www.springframework.org/spring-ws/schema/oxm=org.springframework.oxm.config.OxmNamespaceHandler
      http://www.springframework.org/spring-ws/schema/sws=org.springframework.ws.config.WebServicesNamespaceHandler
      

      Note the difference between namespaces (spring-ws/schema/oxm vs schema/oxm).

      Since the documentation emphasizes the first namespace, the all-in-one jar is thus useless without patching the spring.handlers or using the specific namespace in the Spring context XML file.

      A workaround is tou use the module JARs instead of all-in-one.

      An evident solution is to unify the spring.handlers.

        Attachments

          Activity

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              novotnyr Robert Novotny
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: