java.lang.ClassCastException: class org.apache.cxf.bus.spring.SpringBusFactory

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • embed cxf in osgi
    via by pathfinder,
  • Calling a SOAP service from a RESTful service
    via Stack Overflow by karan
    ,
    • java.lang.ClassCastException: class org.apache.cxf.bus.spring.SpringBusFactory at java.lang.Class.asSubclass(Unknown Source) at org.apache.cxf.BusFactory.getBusFactoryClass(BusFactory.java:280) at org.apache.cxf.BusFactory.newInstance(BusFactory.java:207) at org.apache.cxf.BusFactory.newInstance(BusFactory.java:194) at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:90) at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:137) at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:122) at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:89) at javax.xml.ws.Service.<init>(Service.java:36) at myorg.engine.test.mocks.soapservice.client.CHMService.<init>(CHMService.java:42) at myorg.engine.service.OSGiServiceTest.testSoapServiceMock(OSGiServiceTest.java:133) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.ops4j.pax.exam.raw.extender.intern.ProbeInvokerImpl.injectContextAndInvoke(ProbeInvokerImpl.java:112) at org.ops4j.pax.exam.raw.extender.intern.ProbeInvokerImpl.findAndInvoke(ProbeInvokerImpl.java:71) at org.ops4j.pax.exam.raw.extender.intern.ProbeInvokerImpl.call(ProbeInvokerImpl.java:58) at org.ops4j.pax.exam.nat.internal.NativeTestContainer.call(NativeTestContainer.java:83) at org.ops4j.pax.exam.spi.reactors.EagerSingleStagedReactor.invoke(EagerSingleStagedReactor.java:85) at org.ops4j.pax.exam.junit.JUnit4TestRunner$2.evaluate(JUnit4TestRunner.java:259) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.ops4j.pax.exam.junit.JUnit4TestRunner.run(JUnit4TestRunner.java:86) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Hronom
    Hronom16 times, last one,
    maxxi
    maxxi4 times, last one,
    6 more bugmates