Hiya,
I believe that the BusFactory will not create a new Bus unless it
detects spring on your classpath. The fact that you're getting a
NoClassDefFoundError supports this - otherwise you would have a
ClassNotFoundException. So I would double check your classpath.
Cheers,
- Dan
bobbydole wrote:
Hello, I'm trying to get a simple web service setup using CXF. Basically I'm
following the simple frontend example. However when I run it it I get this
exception:
java.lang.NoClassDefFoundError:
org/springframework/beans/factory/xml/NamespaceHandlerResolver
at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:83)
at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:65)
at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:52)
at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:69)
at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:58)
at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:98)
at
org.apache.cxf.frontend.AbstractEndpointFactory.getBus(AbstractEndpointFactory.java:274)
at
org.apache.cxf.frontend.AbstractEndpointFactory.initializeServiceFactory(AbstractEndpointFactory.java:150)
at
org.apache.cxf.frontend.ServerFactoryBean.initializeServiceFactory(ServerFactoryBean.java:144)
at
org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(AbstractEndpointFactory.java:80)
at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:108)
Which looks to me like it requires the Spring of some sort, or at least it
appears to want to use Spring.
All I want to do is get a simple frontend service running without spring (as
I can't use it) Any one got any ideas?
Thanks!
--
Dan Diephouse
MuleSource
http://mulesource.com | http://netzooid.com/blog