The simple thing to try would be to use the JaxWsServerFactoryBean instead of 
the ServerFactoryBean.  The former should process the jaxws annotations.

Dan


> On Jan 21, 2015, at 4:08 PM, newcxfusr <[email protected]> wrote:
> 
> Hi,
> 
> I am trying to implement CXFNonSpringServlet but its failing on below code.
> I tried looking accurate required JAR but did not found correct list for non
> spring implementation. Also does non sprint implementation does support
> JAX-WS ? if yes is there any tutorial/example on how to do this.
> 
> Endpoint.publish("/MyService", new MyServiceImp());
> 
> I am using Weblogic 12C. I have configure the weblogic.xml to take 
> The only error I am getting is 
> 
> *weblogic.wsee.jaxws.spi.WLSProvider cannot be cast to
> javax.xml.ws.spi.Provider. *
> 
> 
> if I put below code then it calles my services but JAX-WS is not working,
> non of the annotation were working and service is getting Null paramerter.
> 
> ServerFactoryBean factroy = new ServerFactoryBean();
> factroy.setBus(bus);
> factroy.setServiceBean(new ServiceImpl());
> factroy.create();
> 
> I have also tried below tutorial/example but got no success
> http://www.javatips.net/blog/2012/10/cxf-soap-without-spring
> <http://www.javatips.net/blog/2012/10/cxf-soap-without-spring>  
> 
> Doc reference <http://cxf.apache.org/docs/servlet-transport.html>  
> 
> Thanks
> Prashant Saraf
> 
> 
> 
> 
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/Weblogic12c-JAXWS-without-Spring-CXFNonSpringServlet-not-working-tp5753372.html
> Sent from the cxf-user mailing list archive at Nabble.com.

-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to