Using JAX-WS 2.2.5 client with JDK/JRE 1.5

时间秒杀一切 提交于 2019-12-05 04:02:36

None of the JAX-WS (JAXB) classes are included in Java SE 5, so you don't need to use the endorsed mechanism, you can just put it on your classpath. See the following link for Jar dependencies:


UPDATE

But does JAX-WS 2.2.5 support Java 5?

Yes it does, the following is taken from this link: https://jax-ws.java.net/nonav/2.2.5/docs/ReleaseNotes.html#Required_Software

Requires JDK 5.0 Update 2 or later

    -

In one banking application (I developed) endorsement works since 2005 with Java 1.4.

System property 'java.endorsed.dirs' was introduced in Java 1.4, so you can use it with Java 5 - it is guarantied to work.

For example see this docs or this one.

Edit

And yes, JAX-WS 2.2.5 is compatible with JDK/JRE 1.5, see Required Software section in official release notes. Actually this was the last version of JAX-WS compatible with Java 5.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!