我正在使用Jboss EAP 6.2
,在部署阶段我有这个错误:
20:04:24,161 | | SEVERE [org.apache.cxf.BusFactory] (http-localhost/127.0.0.1:8080-1) Failed to determine BusFactory implementation class name.: java.lang.ClassCastException: class org.apache.cxf.bus.spring.SpringBusFactory
at java.lang.Class.asSubclass(Unknown Source) [rt.jar:1.7.0_67]
at org.apache.cxf.BusFactory.getBusFactoryClass(BusFactory.java:395) [cxf-bundle-2.7.7.jar:2.7.7]
at org.apache.cxf.BusFactory.newInstance(BusFactory.java:316) [cxf-bundle-2.7.7.jar:2.7.7]
at org.apache.cxf.BusFactory.newInstance(BusFactory.java:303) [cxf-bundle-2.7.7.jar:2.7.7]
at org.jboss.wsf.stack.cxf.saaj.SOAPConnectionImpl.getConduitInitiator(SOAPConnectionImpl.java:201)
at org.jboss.wsf.stack.cxf.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:69)
at it.lispa.sire.finanziamentionline.service.integrazione.gapp.impl.GappClient.sendMessage(GappClient.java:233) [:]
at it.lispa.sire.finanziamentionline.service.integrazione.gapp.impl.GappClient.verificaCartaCittadino(GappClient.java:95) [:]
我试图在文件中排除org.jboss.ws.jaxws-client
模块以使用库但没有成功。jboss-deployment-structure.xml
SoapConnectionImpl
Axis
我解决了评论这一行JBOSS_HOME\modules\system\layers\base\org\jboss\ws\saaj-impl\main\module.xml
(评论不是我的):
<module name="org.jboss.ws.jaxws-client" services="import"/> <!-- to pull the jbossws-cxf SOAPConnection impl -->
我想通过配置jboss-deployment-structure.xml
文件来解决问题,你能帮我吗?
谢谢。再见