I'm using JAX-WS to contact Web-Service and get the following error:
com.sun.xml.messaging.saaj.soap.LocalStrings != com.sun.xml.internal.messaging.saaj.soap.LocalStrings
Searched a bit for this kind of problem and found this http://forums.java.net/node/678924
But that just won't work in my case. There seems to be problem with jdk6(I'm currently using java(build 1.6.0_22-b04)) and saaj-impl(currently using saaj-impl-1.3.2.jar). Apparently jdk6 has its own saaj but in another package(internal added) and it battles with saaj-impl(imported by maven2).Could it be a problem for using Tomcat6 also(just wondering, not sure at 开发者_JAVA百科all :)).
If there is more code or config files needed I will provide them.
Any help is greatly appreciated.
MilosProbably what you have to do is put the latest version in the java endorsed directory. Put it in both the JDK and JRE installation. If you are using Tomcat it also has its endorsed directory.
Yes jax-ws on jdk 6 is a real pain, they tried to have it embedded for use out of the box but the moment u need to update something everything breaks. Alternatively try CXF, its not plainsailing either but tends to suffer less from these kinds of conflicts.
精彩评论