使用jax-ws时出现问题
我正在使用 JAX-WS 联系 Web 服务并收到以下错误:
com.sun.xml.messaging.saaj.soap.LocalStrings != com.sun.xml.internal.messaging.saaj.soap.LocalStrings
搜索了一下此类问题并发现了这个 http://forums.java.net/node/678924
但这对我来说行不通。
jdk6似乎有问题(我目前使用的是java(build 1.6.0_22-b04)) 和 saaj-impl(当前使用 saaj-impl-1.3.2.jar)。
显然jdk6有自己的saaj但是在另一个包中(内部添加) 它与saaj-impl(由maven2导入)战斗。
使用 Tomcat6 是否也会出现问题(只是想知道,根本不确定:))。
如果需要更多代码或配置文件,我将提供它们。
非常感谢任何帮助。
米洛斯岛
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 all :)).
If there is more code or config files needed I will provide them.
Any help is greatly appreciated.
Milos
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能您要做的就是将最新版本放入 java 认可的目录中。将其放入 JDK 和 JRE 安装中。如果您使用 Tomcat,它也有其认可的目录。
是的,jdk 6 上的 jax-ws 确实很痛苦,他们试图将其嵌入以开箱即用,但当您需要更新某些内容时,一切都会崩溃。或者尝试 CXF,它也不是一帆风顺,但往往较少遭受此类冲突。
Probably 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.