You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by sc <sc...@gmail.com> on 2011/03/14 10:15:36 UTC

CXF startup issue

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.

Re: CXF startup issue

Posted by Willem Jiang <wi...@gmail.com>.
How did you create the deploy artifact?
If you are using maven, you just need to go to the pom.xml and add right 
dependency.

On 3/14/11 11:40 PM, sc wrote:
> Update: It works fine, it's just that some modules don't seem to be deployed
> when I need them. Any idea how could this be achieved ?
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/CXF-startup-issue-tp3556043p3556544.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>


-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Re: CXF startup issue

Posted by sc <sc...@gmail.com>.
Update: It works fine, it's just that some modules don't seem to be deployed
when I need them. Any idea how could this be achieved ?

--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-startup-issue-tp3556043p3556544.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: CXF startup issue

Posted by sc <sc...@gmail.com>.
I did check and both are -2.0.9.jar

Could this also happen due to some jaxb version issues ?

--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-startup-issue-tp3556043p3556265.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: CXF startup issue

Posted by Aki Yoshida <el...@googlemail.com>.
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 <sc...@gmail.com>:
> 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.
>