简体   繁体   English

jaxws-rt.jar中的“ / com / sun / xml / ws /”软件包和rt.jar中的“ / com / sun / xml / internal / ws /”软件包之间有什么区别

[英]what is the Difference between the “/com/sun/xml/ws/” package in jaxws-rt.jar and “/com/sun/xml/internal/ws/” package inside rt.jar

i do not understand the use of an "internal" implementation of jax-ws packages inside rt.jar when they are already available through jaxws-rt.jar. 当通过jaxws-rt.jar获得jax-ws包时,我不理解在ja.ws包中使用jax-ws包的“内部”实现。 Why would Sun/Oracle take such a decision to integrate jax-ws inside jdk...I dont know if the changes in classes of both the packages in both the jars are carried out parallely....Can some one put light on which should be actually reffered...???? 为什么Sun / Oracle会做出这样的决定,将jax-ws集成到jdk中……我不知道两个jar中两个软件包的类更改是否都是并行进行的。应该被实际拒绝... ????

jaxws-rt.jar is not part of the Java RE. jaxws-rt.jar不属于Java RE。 But RE needs an implementation of JAXWS internally. 但是RE需要在内部实现JAXWS。 So, as far as I remember, they implemented one in the com.sun.xml.internal.ws package to avoid future conflicts and errors if applications put a different implementation of JAXWS on their classpath. 因此,据我所记得,他们在com.sun.xml.internal.ws包中实现了一个,以避免将来的冲突和错误(如果应用程序在其类路径中放置JAXWS的不同实现)。

Another aspect: even if someone adds a new implementation to the classpath it's still guaranteed, that the JRE works as expected, even if this new implementation has bugs. 另一个方面:即使有人将新的实现添加到类路径中,也可以保证JRE可以按预期工作,即使该新实现存在错误。

You don't give any context as to where you are seeing this. 您不会在任何地方看到任何上下文。

By default the JAX-WS implementation that lies behind the javax.xml.ws* types is the one shipped in the JRE. 默认情况下,位于javax.xml.ws*类型后面的JAX-WS实现是JRE中附带的实现。 JAX-WS defines a SPI ; JAX-WS定义了一个SPI ; in order to override the JRE classes, alternative implementations must reside in endorsed directories . 为了覆盖JRE类,替代实现必须位于认可的目录中

Some Java EE 5 application servers might work on both Java 1.5 and 1.6; 某些Java EE 5应用程序服务器可能同时在Java 1.5和1.6上运行; to meet the Java 1.5 specification, the application server would need to ship a JAX-WS implementation. 为了满足Java 1.5规范,应用程序服务器将需要附带一个JAX-WS实现。 Java EE 6 implementations will override the Java 6 implementation (Java EE 6 mandates JAX-WS 2.2 whereas Java SE 6 mandates 2.0). Java EE 6实现将覆盖Java 6实现(Java EE 6要求JAX-WS 2.2,而Java SE 6要求2.0)。

Thus, it is possible to see more than one implementation of JAX-WS in some contexts. 因此,在某些情况下可以看到不止一种JAX-WS实现。 Which one is used depends on the configuration. 使用哪种取决于配置。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法读取com.sun.xml.ws:jaxws-rt:jar:2.2.8的工件描述符:UnresolvableModelException:无法传输com.sun.xml.ws:bundles:pom - Failed to read artifact descriptor for com.sun.xml.ws:jaxws-rt:jar:2.2.8: UnresolvableModelException: Failure to transfer com.sun.xml.ws:bundles:pom rt.jar com.sun.istack.internal包 - rt.jar com.sun.istack.internal packages com.sun.xml.ws:jaxws-rt:pom:2.2.10 的 POM 无效 - The POM for com.sun.xml.ws:jaxws-rt:pom:2.2.10 is invalid JAXWS-RT:获取 com.sun.xml.ws.spi.db.DatabindingException 绑定一个简单的类 - JAXWS-RT: getting com.sun.xml.ws.spi.db.DatabindingException binding a simple class 我们可以使用jaxws-rt.jar作为运行时实现,虽然它包含sun库吗? - can we use jaxws-rt.jar as runtime implementation though it includes sun libraries? 在 Jenkins 上构建失败:错误:package com.sun.Z0F635D0E0F3874FFF8B581C1.ws.不存在。 - Build on Jenkins fails: error: package com.sun.xml.internal.ws.client does not exist 为什么在rt.jar中找不到com.sun。*类的API文档? - Why can't I find the API documentation for com.sun.* classes in rt.jar? com.sun.xml.internal.ws.fault.SOAPFaultBuilder的NoClassDefFoundError - NoClassDefFoundError for com.sun.xml.internal.ws.fault.SOAPFaultBuilder 编译时找不到com.sun.xml.internal.ws.developer.JAXWSProperties - com.sun.xml.internal.ws.developer.JAXWSProperties not found at compile com.sun.xml.internal.ws.client 不存在 - com.sun.xml.internal.ws.client does not exist
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM