Failed to determine BusFactory implementation class name.: java.lang.ClassCastException: class org.apache.cxf.bus.spring.SpringBusFactory in JBoss EAP 7
Issue
- Web Service application failing to deploy in JBoss EAP 7 with:
SEVERE [org.apache.cxf.BusFactory] (MSC service thread 1-1) Failed to determine BusFactory implementation class name.: java.lang.ClassCastException: class org.apache.cxf.bus.spring.SpringBusFactory
at java.lang.Class.asSubclass(Class.java:3404) [rt.jar:1.8.0_181]
at org.apache.cxf.BusFactory.getBusFactoryClass(BusFactory.java:390) [cxf-core-3.0.12.jar:3.0.12]
at org.apache.cxf.BusFactory.newInstance(BusFactory.java:316) [cxf-core-3.0.12.jar:3.0.12]
at org.apache.cxf.BusFactory.newInstance(BusFactory.java:303) [cxf-core-3.0.12.jar:3.0.12]
at org.jboss.wsf.stack.cxf.deployment.aspect.CXFInstanceProviderDeploymentAspect.setUserEndpointBus(CXFInstanceProviderDeploymentAspect.java:68)
at org.jboss.wsf.stack.cxf.deployment.aspect.CXFInstanceProviderDeploymentAspect.start(CXFInstanceProviderDeploymentAspect.java:54)
at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:73)
Environment
Red Hat JBoss Enterprise Application Platform (EAP) 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.