首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

在WebSphere公布CXF注意事项

2012-08-27 
在WebSphere发布CXF注意事项在CXF官网搜索到的:https://cwiki.apache.org/confluence/display/CXF20DOC/Ap

在WebSphere发布CXF注意事项

在CXF官网搜索到的:

https://cwiki.apache.org/confluence/display/CXF20DOC/Application+Server+Specific+Configuration+Guide#ApplicationServerSpecificConfigurationGuide-Websphere

Websphere

Currently, I've only found on way to make cxf work with websphere: adding jars to the 'endorsed' folder. (*Note: this has been validated against Websphere6.1.0.0, 6.1.0.19, and 6.1.0.27 *)

No Web Services Feature Pack for WebSphere installedput jar in the endorsed folderput the wsdl4j-1.6.1.jar in the $WebSphere_HOME/java/jre/lib/endorsed folder. In the WebSphere console, find the specific enterprise application, click the "Class loading and update detection". Mark the "Classes loaded with application class loader first" selected. Mark the "Class loader for each war file in application" selected.

And then restart the Websphere server. (Because we changed the endorsed folder, we need to restart it to make it take effect).

Please make sure your classpath doesn't have the servlet-2.5 library, since WebSphere6.1 is servlet-2.4 compliant!Add your own class loader

If you put your wsdl4j-1.6.1 jar in $WAS_HOME/java/jre/lib/endorsed, all your applications will depend on your version of wsdl4j. Another solution is to create a new class loader in your server which loads before parent class loader, create a shared library with your version of wsdl4j, and add this shared library to your new class loader. This version of wsdl4j will only be available for your specific server and not affect applications running in other servers.

Step by step

    In the WAS console navigate to Environment > Shared Libraries Select the scope you wish your library should be visible in Click New and set values ex: name=MYAPP_SHARED_LIB, classpath=PATH_TO/wsdl4j-1.6.2.jar and Save Navigate to Application servers > [your server name] > Java and Process Management > Class loader > New Select Classes loaded with application class loader first and Save Select your new class loader and click Shared library references Add your shared library (MYAPP_SHARED_LIB) Save and restart your server.
      PK96989: ENABLE USE OF THIRD PARTY JAX-WS WEB SERVICES ENGINE IN WEBSPHEREThis fix requires at least fixpack 27 (6.1.0.27). It allows to disable the WebSphere Web Servicesengine for the whole JVM by setting the JVM property  com.ibm.websphere.webservices.DisableIBMJAXWSEngine=trueor to disable the engine just for a specific module by adding  DisableIBMJAXWSEngine: trueto WAR/META-INF/MANIFEST.MF.

    According to IBM, this fix shall be included into fixpack 29.

    For details, please see http://www-01.ibm.com/support/docview.wss?rs=180&uid=swg1PK96989

    The WebSphere team has also added instructions for using third party JAX-WS applications to their tech articles: http://www.ibm.com/developerworks/websphere/library/techarticles/1001_thaker/1001_thaker.html

热点排行