使用JAX-WS 2.2.5客户端和JDK / JRE 1.5 [英] Using JAX-WS 2.2.5 client with JDK/JRE 1.5

查看:146
本文介绍了使用JAX-WS 2.2.5客户端和JDK / JRE 1.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Java 6随JAX-WS 2.0一起提供。据我所知,Java 5没有附带JAX-WS。

Java 6 shipped with JAX-WS 2.0. Java 5 didn't ship with JAX-WS as far as I know.

我能够使用JAX-WS 2.2.5和Java 1.6来创建Webservice客户端存根使用 Java Endorsed Override Mechansim 列出JAX- WS是可以在Java 6中替换的组件之一。

I was able to use JAX-WS 2.2.5 with Java 1.6 for creating Webservice client stubs by using the Java Endorsed Override Mechansim which lists JAX-WS as one of the components which can be replaced in Java 6.

我所要做的就是在我的JDK&中创建一个lib \endorsed目录。 JRE 6路径&然后复制jaxb-api.jar& jaxws-api.jar从JAX-WS 2.2.5进入名为endorsed的目录。 JDK& JRE 6自动获取2.2.5 JAX-WS。

All I had to do was create a lib\endorsed directory in my JDK & JRE 6 paths & then copy jaxb-api.jar & jaxws-api.jar from JAX-WS 2.2.5 into the directory named endorsed. And both JDK & JRE 6 picked up the 2.2.5 JAX-WS automatically.

我在Java 5文档中找不到类似的Java Endorsed Override Mechanism。我是如何在这里找到的。这并没有像Java 6文档那样提及JAX-WS,但它也提到了认可的dirs。

I could not find similar Java Endorsed Override Mechanism in the Java 5 documents. How I found one here. This doesn't explicty mention JAX-WS like the Java 6 documents, but it also mentions the endorsed dirs.

我在JDK中创建了一个类似的'endorsed'目录&安培; JRE lib目录。我将JAX-WS 2.2.5中的所有罐子(共23个罐子)复制到了背书目录中。但是,与Java 6不同,javac.exe和java.exe都没有直接选择它。我必须使用此命令行参数运行java.exe和javac.exe

I created a similar 'endorsed' directory in both the JDK & JRE lib directory. I copied all the jars from JAX-WS 2.2.5 (a total of 23 jars) into the endorsed directory. However, unlike Java 6, neither javac.exe nor java.exe picked this up directly. I had to run both java.exe and javac.exe with this command line argument

-Djava.endorsed.dirs=<JDK/JRE1.5_DIR>\lib\endorsed

一切似乎都运转良好,但我是想知道这是否有效 - 任何人以前遇到的任何问题? JAX-WS 2.2.5是否支持Java 5?

Everything seems to work fine, but I am wondering if this is guaranteed to work - any problems anyone has faced before? Does JAX-WS 2.2.5 support Java 5?

推荐答案

Java中不包含任何JAX-WS(JAXB)类SE 5,所以你不需要使用背书机制,你可以把它放在你的类路径上。请参阅以下链接以了解Jar依赖关系:

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:

  • https://jax-ws.java.net/nonav/2.2.5/docs/ReleaseNotes.html#Jar_dependency

但JAX-WS 2.2.5是否支持Java 5?

But does JAX-WS 2.2.5 support Java 5?

是的,以下内容来自以下链接: https://jax-ws.java.net/nonav /2.2.5/docs/ReleaseNotes.html#Required_Software

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


需要JDK 5.0 Update 2或更高版本

Requires JDK 5.0 Update 2 or later




    -

      -

      这篇关于使用JAX-WS 2.2.5客户端和JDK / JRE 1.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆