Hi, it looks like you are using a conbination of CXF components with new and old versions. Can you check if you have the same version for all your cxf-*.jar. In particular, can you check the versions of cxf-rt-core and cxf-common-utilities? cxf-rt-core defines BusWiringBeanFactoryPostProcessor and cxf-comons-utilities defines WIRE_BUS_ATTRIBUTE, If you get the field not found error, it is likely that you have an older version of cxf-commons-utilities.
Regards, Aki 2011/3/14 sc <[email protected]>: > 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-tp3556034p3556034.html > Sent from the cxf-user mailing list archive at Nabble.com. >
