Willem,

Unfortunatetly it's not actually possible to use CXFServlet without having
the Spring framework on your path!  Althought reflection is used as an
initial test for the existence of spring on the classpath CXFServlet itself
has a number of instance variables that require Spring to be on the
classpath.  I've created a JIRA bug for this issue:
https://issues.apache.org/jira/browse/CXF-1072.

Anyways, the upshot of it all is you can't actually use CXFServlet to
configure things for you without using Spring. :(

Corey


Willem2 wrote:
> 
> Hi,
> 
> I think you need to look up your class path if there any spring related 
> class.
> Here is part of CXFServlet init code:
>            String springCls = 
> "org.springframework.context.ApplicationContext";
>             try {
>                 ClassLoaderUtils.loadClass(springCls, getClass());
>                 loadSpringBus(servletConfig);
>             } catch (ClassNotFoundException e) {               
>                 loadBusNoConfig(servletConfig);
>             }
> If you want to create bus from CXFBusfactory , you need to remove the 
> spring related jars first.
> 
> Willem.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/CXF-without-Spring--tf4470086.html#a12925133
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to