Spring-ws 1.5.9 depends on Spring 2.5 (based on the pom). Can it be used with Spring 3 without running into any classloading issues. I know that some of the packages match b
In addition to skaffman's answer, here's how to use Spring-WS 1.5.9 with Spring 3 through Maven:
1) First exclude the OXM dependency of Spring 3. Just remove the following dependency from your POM.
org.springframework
spring-oxm
If you're using another framework that has a transitive dependency on Spring 3 (like Apache Camel's camel-spring module) use:
org.apache.camel
camel-spring
org.springframework
spring-oxm
2) Remove the transitive dependency that Spring-WS 1.5.9 has on Spring 2.5.6:
org.springframework.ws
spring-ws-core
1.5.9
org.springframework
spring-core
org.springframework
spring-beans
org.springframework
spring-context
org.springframework
spring-aop
org.springframework
spring-web
org.springframework
spring-webmvc
org.springframework
spring-test
org.springframework.ws
spring-ws-support
1.5.9
org.springframework
spring-core
org.springframework
spring-beans
org.springframework
spring-jms
org.springframework
spring-tx
org.springframework
spring-test
3) Finally make sure you include the necessary Spring 3 modules (the list above) as dependencies in your POM.
That's it you should now be able to use Spring-WS 1.5.9 with Spring 3.x.