Websphere 8.x无法在WEB-INF / lib中识别axis 1.4 jar

时间:2014-06-19 21:20:10

标签: java web-services websphere axis soap-client

我在websphere 8.5服务器中构建并部署了war文件。所有与轴1.4相关的jar都放在WEB-INF / lib文件夹中。但是,当我运行应用程序并尝试访问调用webservice的代码时,我得到以下错误。相同的war文件在TOMCAT 7服务器中正常工作。我确实看到axis.jar存在并包含axisfault.class。请帮忙。

Caused by: java.lang.NoClassDefFoundError: org.apache.axis.AxisFault
    at java.lang.J9VMInternals.verifyImpl(Native Method)
    at java.lang.J9VMInternals.verify(J9VMInternals.java:93)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:170)
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Class.java:179)
    at org.uddi4j.transport.TransportFactory.getTransport(TransportFactory.java:61)
    at org.uddi4j.client.UDDIProxy.send(UDDIProxy.java:1940)
    at org.uddi4j.client.UDDIProxy.find_service(UDDIProxy.java:888)
    at bofasecurity.UDDIHelper.getEndPoint(UDDIHelper.java:70)
    at bofasecurity.xxxxSecurityWrapper.buildBofASecurityWrapper(BofASecurityWrapper.java:273)
    at bofasecurity.xxxxSecurityWrapper.<init>(BofASecurityWrapper.java:212)
    at bofasecurity.xxxxSecurityWrapper$Builder.build(BofASecurityWrapper.java:179)
    at com.ml.grci.service.impl.SearchACCLServiceImpl.buildSecWrapper(SearchACCLServiceImpl.java:721)
    at com.ml.grci.service.impl.SearchACCLServiceImpl.searchACCL(SearchACCLServiceImpl.java:160)
    at com.ml.grci.webapp.action.ACCLSearchAction.execute(ACCLSearchAction.java:233)
    ... 83 more
Caused by: java.lang.ClassNotFoundException: org.apache.axis.AxisFault
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:650)

1 个答案:

答案 0 :(得分:3)

这可能是由于类加载器问题造成的。 WebSphere 8.5加载axis.jar(请参阅/deploytool/itp/plugins/org.apache.axis_1.4.0.v201005080400/lib)。建议删除冲突的jar或更改类加载器策略(PARENT LAST)。见how to set java class loader PARENT_LAST

也不确定这是否会有所帮助,但如果您尝试使用第三方框架进行Web服务,那么有关于如何执行此操作的非常好的文章:http://www.ibm.com/developerworks/websphere/library/techarticles/1001_thaker/1001_thaker.html