Hi
thanks for confirming it, great stuff !
Sergey
----- Original Message -----
From: "SaravananRamamoorthy" <[email protected]>
To: <[email protected]>
Sent: Thursday, January 28, 2010 2:31 PM
Subject: Re: JAX RS - how to publish endpoint using cxf
Hi Sergey,
Thanks for your continous support. Its works fine for me.
Now I can able to run JAX RS through the endpoint. Also able to create
webservice client and call throiugh JAX RS.
Thank you once again for your support.
Regards
Saravanan R
Sergey Beryozkin-2 wrote:
Hi,
Hi Sergey ,
I think the problem is with my web.xml
Could you please verify my web.xml
<servlet>
<servlet-name>CXFServlet</servlet-name>
<servlet-class>org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet</servlet-class>
<init-param>
<param-name>javax.ws.rs.Application</param-name>
<param-value>com.nsn.test.MyRest</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
Is it necessary to add servlet-mapping?
you definitely need to add it...
I have tried to add the servlet mappping with the above web.xml as
<servlet-mapping>
<servlet-name>CXFServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
It throws the following error:
java.lang.NoClassDefFoundError: javax/wsdl/WSDLException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.cxf.bus.extension.Extension.load(Extension.java:98)
at
org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:166)
at
org.apache.cxf.bus.extension.ExtensionManagerImpl.processExtension(ExtensionManagerImpl.java:142)
at
org.apache.cxf.bus.extension.ExtensionManagerImpl.loadFragment(ExtensionManagerImpl.java:135)
at
org.apache.cxf.bus.extension.ExtensionManagerImpl.load(ExtensionManagerImpl.java:127)
at
org.apache.cxf.bus.extension.ExtensionManagerImpl.<init>(ExtensionManagerImpl.java:84)
at
org.apache.cxf.bus.extension.ExtensionManagerImpl.<init>(ExtensionManagerImpl.java:58)
at
org.apache.cxf.bus.extension.ExtensionManagerBus.<init>(ExtensionManagerBus.java:91)
at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:41)
at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:37)
at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:33)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.loadBusNoConfig(CXFNonSpringServlet.java:45)
at
I have added all the neccessary jar files including wsdl4j.
This is that 'little' issue we have at the moment which Dan discussed
recently, namely CXF JAXRS still indirectly depending on
wsdl4j. There were a lot of fixes done for 2.3 to minimize the numbwr of
dependencies, this is the last one. The CXF WSDLManager api
will likely to stay in case even CXF JAXRS needs it in the future, but we
hope we can do something for user not to include a wsdl4j.
You said you added it, where did you put it ? It should go into the folder
containg other cxf libs, if you drop it into you war/lib
then CXF loader may not see it
Dan - is it possible somehow to modify
at org.apache.cxf.bus.extension.Extension.load(Extension.java:98)
and if no class is available then may be warn a user but not exit ?
cheers, Sergey
Please guide me.
Regards
Saravanan Ramamoorthy
Regards
Saravanan Ramamoorthy
Sergey Beryozkin-2 wrote:
Hi
Please try CXFJaxrsNonSpringServlet :
http://cwiki.apache.org/CXF20DOC/jax-rs.html#JAX-RS-ConfiguringJAXRSservicesincontainerwithoutSpring
cheers, Sergey
Hi Experts,
Could anyone please explain how to publish JAX RS endpoint using cxf
without
spring.
I can able to run the application using JAXRSServerFactoryBean using
cxf
in
java.
Please suggest me when deploying as a war file , how to publish these
JAX-RS
files when load on start up.
Regards
Saravanan Ramamoorthy
--
View this message in context:
http://old.nabble.com/JAX-RS---how-to-publish-endpoint-using-cxf-tp27334669p27334669.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
View this message in context:
http://old.nabble.com/JAX-RS---how-to-publish-endpoint-using-cxf-tp27334669p27341707.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
View this message in context:
http://old.nabble.com/JAX-RS---how-to-publish-endpoint-using-cxf-tp27334669p27356863.html
Sent from the cxf-user mailing list archive at Nabble.com.