能否請你幫我下面的錯誤,我面臨WAS9環境:org.apache.cxf.bus.extension.ExtensionException在WAS9服務器
爲了解決進口
org.apache.cxf.binding.soap.SoapHeader
添加以下的依賴在我的pom.xml:
cxf-api-2.7.7 cxf-rt-bindings-soap-2.7.7
但是,當我試圖運行我的AP折,,我得到以下錯誤。
Default Executor-thread-7] ([ ]) Controllerclass - org.apache.cxf.bus.extension.ExtensionException
at org.apache.cxf.bus.extension.Extension.load(Extension.java:222)
at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:199)
at org.apache.cxf.bus.extension.ExtensionManagerImpl.initialize(ExtensionManagerImpl.java:118)
at org.apache.cxf.bus.extension.ExtensionManagerBus.doInitializeInternal(ExtensionManagerBus.java:147)
at org.apache.cxf.bus.CXFBusImpl.initialize(CXFBusImpl.java:191)
at com.ibm.ws.jaxws.bus.LibertyApplicationBusFactory.createBus(LibertyApplicationBusFactory.java:119)
at com.ibm.ws.jaxws.bus.LibertyApplicationBusFactory.createClientScopedBus(LibertyApplicationBusFactory.java:86)
at com.ibm.ws.jaxws.metadata.JaxWsClientMetaData.<init>(JaxWsClientMetaData.java:28)
at com.ibm.ws.jaxws.metadata.JaxWsModuleMetaData.getClientMetaData(JaxWsModuleMetaData.java:123)
at com.ibm.ws.jaxws.support.JaxWsMetaDataManager.getJaxWsClientMetaData(JaxWsMetaDataManager.java:84)
at com.ibm.ws.jaxws.support.JaxWsMetaDataManager.getJaxWsClientMetaData(JaxWsMetaDataManager.java:123)
at com.ibm.ws.jaxws.client.LibertyProviderImpl.createServiceDelegate(LibertyProviderImpl.java:56)
at javax.xml.ws.Service.<init>(Service.java:57)
Caused by: java.lang.InstantiationException:org.apache.cxf.bus.osgi.OSGIBusListener
at java.lang.Class.newInstance(Class.java:427)
at org.apache.cxf.bus.extension.Extension.load(Extension.java:218)
Caused by: java.lang.NoSuchMethodException:org.apache.cxf.bus.osgi.OSGIBusListener.<init>()
at java.lang.Class.getConstructor0(Class.java:3082)
at java.lang.Class.newInstance(Class.java:412)
謝謝你的回覆,我會檢查並讓你知道。 – zz9t1k
你好Abhijit,我嘗試用WAS9(wlp/lib)中的jar替換戰爭文件(WEBINF/LIB)中的cxf jar,仍然遇到同樣的問題,遇到這個問題,任何幫助都將變得非常棒。還有Iam試圖改變,但是當我嘗試修改標籤到服務器正在啓動但是未能顯示我的war文件並給出以下錯誤時,這個標籤在標籤內工作不正常。 –
zz9t1k
Stack Dump = com.ibm.ws.container.service.state.StateChangeException:com.ibm.ws.container.service.state.StateChangeException:startWebApplication – zz9t1k