CXF throws an exception when the server starts and the following code is
executed:
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.setServiceClass(SomePortType.class);
factory.setAddress("some endpoint here...");
factory.create(); // <-- this is where it fails
Here is the stack trace:
Unexpected Error
java.lang.NoSuchFieldError: WIRE_BUS_ATTRIBUTE
at
org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor.postProcessBeanFactory(BusWiringBeanFactoryPostProcessor.java:74)
at
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:477)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:334)
at
org.apache.cxf.bus.spring.BusApplicationContext.(BusApplicationContext.java:71)
at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:84)
at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:65)
at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:54)
at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:69)
at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:106)
at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:97)
at
org.apache.cxf.endpoint.AbstractEndpointFactory.getBus(AbstractEndpointFactory.java:73)
at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.initializeServiceFactory(AbstractWSDLBasedEndpointFactory.java:143)
at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:73)
at
org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:51)
at
org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:92)
Any idea what's this all about ?
(I have also reported this issue
http://stackoverflow.com/questions/5275202/apache-cxf-wire-bus-attribute-issue
here )
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-startup-issue-tp3556026p3556026.html
Sent from the cxf-issues mailing list archive at Nabble.com.