Can Spring-WS 1.5 be used with Spring 3?

后端 未结 2 1924
终归单人心
终归单人心 2021-01-12 02:50

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

2条回答
  •  臣服心动
    2021-01-12 03:47

    Officially, no, they're not compatible. Like you said, there are package conflicts between the two - org.springframework.oxm in particular. This package was brought into Spring 3 from Spring-WS, and the two will clash.

    Work was supposed to be completed on Spring-WS 2.0 immediately after Spring 3.0 was released, but this hasn't happened. Until that happens, Spring-WS remains incompatible with the current release of Spring Framework.

    In practise, I've found that if you omit the org.springframework.oxm JAR from the Spring 3 distro, the two work fine together. If you're using maven, though, I'm not sure if this is an option for you.

提交回复
热议问题