You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by ma...@samsix.com on 2010/11/04 19:38:19 UTC

NoSuchBeanDefinitionExeption 'cxf' when using cxf client


   I'm having a particularly weird problem with a CXF client. It's  
being launched from an environment that's somewhat atypical, so I'm  
assuming it's a configuration problem. I can't figure out what could  
possibly be driving it, however. Has anyone else seen anything similar?

   This is cxf 2.2.6. Upgrading could be an option but 2.2.6 is  
working fine from other launching contexts.

   All that is happening here is new Client( null ).

   Relevant things in the classpath:

   /cxf/asm-2.2.3.jar
/cxf/commons-logging-1.1.1.jar
/cxf/cxf-2.2.6.jar
/cxf/neethi-2.0.4.jar
/cxf/wsdl4j-1.6.2.jar
/cxf/XmlSchema-1.4.5.jar
/spring-beans.jar
/spring-context.jar
/spring-core.jar
/spring-richclient.jar

   Nov 4, 2010 10:44:57 AM org.apache.cxf.bus.spring.SpringBusFactory createBus

   WARNING: Failed to create application context.

   org.springframework.beans.factory.NoSuchBeanDefinitionException: No  
bean named 'cxf' is defined

           at  
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:353)

           at  
org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:916)

           at  
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:243)

           at  
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)

           at  
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:476)

           at  
org.apache.cxf.bus.spring.SpringBusFactory.finishCreatingBus(SpringBusFactory.java:72)

           at  
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:93)

           at  
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:86)

           at  
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:64)

           at  
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:53)

           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.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:64)

           at javax.xml.ws.Service.<init>(Service.java:76)

           at <generated client service>.<init>(<generated client>.java:45)