简体   繁体   English

关于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?

有可能吗?什么时候可以,怎么样?

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 : 实际上,WebLogic 10.3中捆绑的JAX-WS实现基于JAX-WS RI 2.1.4,如WebLogic Server的新增功能中所述

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. JAX-WS的WebLogic Server实现基于JAX-WS参考实现(RI)版本2.1.4,并包含对工具层的增强,以简化JAX-WS服务的构建和部署,并简化从JAX-RPC到JAX-WS。 The following features and enhancements are available from the JAX-WS RI 2.1.4. JAX-WS RI 2.1.4提供了以下功能和增强功能。

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. 基本上,我们的想法是将所有内容打包为EAR,并提供weblogic-application.xml来指定需要从EAR而不是WebLogic的默认类加载器加载的Java包。 To do so, follow these steps: 为此,请按照下列步骤操作:

  1. Create an EAR with your war embedded in it 创建一个嵌入了战争的EAR
  2. In the META-INF/weblogic-application.xml of your EAR, put 在你的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> 
  3. Put the required JARs in the WEB-INF/lib of your WAR. 将所需的JAR放在WAR的WEB-INF/lib中。

If WebLogic is reporting classloading issues, you may have to add more Java packages under the prefer-application-packages element. 如果WebLogic报告了类加载问题,则可能必须在prefer-application-packages元素下添加更多Java包。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM