关于weblogic 10.3.1的jaxws 2.1.5而不是预先安装的jaxws 2.1.1? [英] jaxws 2.1.5 on weblogic 10.3.1 instead of pre-installed jaxws 2.1.1?
问题描述
是否有可能,何时可以?
Is it possible, and when yes, how?
推荐答案
实际上,WebLogic 10.3中捆绑的JAX-WS实现是基于JAX-WS RI 2.1.4,如 WebLogic Server中的新增功能:
Actually, the JAX-WS implementation bundled in WebLogic 10.3 is based on JAX-WS RI 2.1.4 as documented in the What's New in WebLogic Server:
JAX-WS的WebLogic Server实现基于JAX-WS参考实现(RI),版本2.1.4,并包括对工具层的增强,以简化JAX-WS服务的构建和部署,并简化从JAX-RPC到JAX-WS的迁移。 JAX-WS RI 2.1.4提供了以下功能和增强功能。
The WebLogic Server implementation of JAX-WS is based on the JAX-WS Reference Implementation (RI), Version 2.1.4, and includes enhancements to the tool layer to simplify the building and deployment of JAX-WS services and to ease the migration from JAX-RPC to JAX-WS. The following features and enhancements are available from the JAX-WS RI 2.1.4.
但这只是旁注:)现在,为了回答你的问题,是,它是可能。基本上,我们的想法是将所有内容打包为EAR并提供 weblogic-application.xml
指定需要从EAR而不是WebLogic的默认类加载器加载的Java包。为此,请按以下步骤操作:
But this is just a side note :) Now, to answer your question, yes, it is possible. Basically, the idea is to package everything as an EAR and to provide a weblogic-application.xml
to specify the Java packages that need to loaded from the EAR instead of from WebLogic's default classloader. To do so, follow these steps:
- 创建包含您的战争的EAR
-
在您的EAR的
META-INF / weblogic-application.xml
中,输入
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-application>
<application-param>
<param-name>webapp.encoding.default</param-name>
<param-value>UTF-8</param-value>
</application-param>
<prefer-application-packages>
<package-name>com.sun.xml.*</package-name>
<package-name>javax.xml.bind.*</package-name>
<package-name>javax.jws.*</package-name>
<package-name>javax.xml.soap.*</package-name>
</prefer-application-packages>
</weblogic-application>
将所需的JAR放入 WEB-INF / lib
你的WAR。
如果WebLogic报告了类加载问题,你可能需要添加更多 prefer-application-packages
元素下的Java包。
If WebLogic is reporting classloading issues, you may have to add more Java packages under the prefer-application-packages
element.
这篇关于关于weblogic 10.3.1的jaxws 2.1.5而不是预先安装的jaxws 2.1.1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!