Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
packaging multiple modules into spring-ws-xx-all.jar breaks handler loading mechanism [SWS-454] #592
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