Skip to content

packaging multiple modules into spring-ws-xx-all.jar breaks handler loading mechanism [SWS-454] #592

@gregturn

Description

@gregturn

hakan eryargi opened SWS-454 and commented

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


Affects: 1.5.5

Issue Links:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions