[SWS-506] All-in-one jar contains different namespace in spring.handlers than the module jars Created: 05/May/09  Updated: 04/May/12  Resolved: 12/May/09

Status: Closed
Project: Spring Web Services
Component/s: OXM
Affects Version/s: 1.5.6
Fix Version/s: 1.5.7

Type: Bug Priority: Minor
Reporter: Robert Novotny Assignee: Arjen Poutsma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
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.



 Comments   
Comment by Arjen Poutsma [ 12/May/09 ]

Oops! Thanks for spotting this, fixed now.

Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Generated at Tue Dec 12 08:36:51 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.