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

packaging multiple modules into spring-ws-xx-all.jar breaks handler loading mechanism

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.5.5
    • Fix Version/s: None
    • Component/s: OXM
    • Labels:
      None
    • Environment:
      not important

      Description

      two different jar files contains META-INF/spring.handlers file which define spring handlers (spring-oxm-xx.jar, spring-ws-core-xx.jar). these jars and some others are bundled into a single jar file spring-ws-xx-all.jar. when using spring-ws-xx-all.jar in our classpath, spring complains saying:

      Unable to locate Spring NamespaceHandler for XML schema namespace http://www.springframework.org/schema/oxm

      this happens since jvm picks one of the META-INF/spring.handlers per jar file and ignores the others.

      workaround is to use seperate module files instead of spring-ws-xx-all.jar

      solution is merging META-INF/spring.handlers files from different jars into a single one and including it in spring-ws-xx-all.jar

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                arjen.poutsma Arjen Poutsma
                Reporter:
                raft hakan eryargi
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: