Hi Tom, IIRC the demo didn't illustrate jax-rs in a servlet with spring. I'll forward the demo I sent to priya to you off list. When I get a chance I will also open a jira & submit this demo back as a patch. regards, --Frank
On Wed, 2008-03-12 at 13:32 -0700, Tom Purcell wrote: > Frank > > I'm having the exact same problem. Would it be possible to post your > configuration or some information on how your implementation is different > from the jax-rs demo? > > Thanks > Tom > > > Frank Lynch-3 wrote: > > > > Hello Priya, > > I will email you a zip file containing a modified version of the basic > > jax-rs demo using spring off-list (using maven & jetty). It should give > > you an idea of how to use jax-rs along with spring in a webapp. > > You will of course need to modify your tomcat configuration to enable > > https. > > regards, > > --Frank > > > > On Fri, 2008-01-18 at 01:31 -0800, priya j wrote: > >> Hi All, > >> > >> I am using JAX-RS for my RESTful web service with security. > >> I am able to execute the sample in 2.1 snapshot when i try for the spring > >> configuration it fail. > >> > >> Can anyone tell me whats wrong or is that any configuration needs to be > >> done. > >> > >> I use the application level tomcat.( Do i need to do any changes to my > >> server.xml in tomcat for https configuration.) > >> > >> *my web.xml and bean.xml and the service class are same as in sample. > >> > >> ERROR: > >> > >> Jan 18, 2008 3:58:57 PM org.apache.catalina.core.AprLifecycleListener > >> init > >> INFO: The Apache Tomcat Native library which allows optimal performance > >> in > >> production environments was not found on the java.library.path: > >> C:\Program > >> Files\Java\jre1.6.0_04\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program > >> Files\eclipse\jdk1.6.0_04\jre\bin > >> Jan 18, 2008 3:58:57 PM org.apache.coyote.http11.Http11Protocol init > >> INFO: Initializing Coyote HTTP/1.1 on http-8080 > >> Jan 18, 2008 3:58:57 PM org.apache.catalina.startup.Catalina load > >> INFO: Initialization processed in 1155 ms > >> Jan 18, 2008 3:58:57 PM org.apache.catalina.core.StandardService start > >> INFO: Starting service Catalina > >> Jan 18, 2008 3:58:57 PM org.apache.catalina.core.StandardEngine start > >> INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 > >> Jan 18, 2008 3:58:57 PM org.apache.catalina.loader.WebappClassLoader > >> validateJarFile > >> INFO: validateJarFile(C:\Documents and Settings\sspriya\REST - CXF\final > >> with news\back-up_07\With > >> drools\back-up\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\sfe-wss\WEB-INF\lib\geronimo-servlet_2.5_spec- > >> 1.1-M1.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. > >> Offending > >> class: javax/servlet/Servlet.class > >> Jan 18, 2008 3:58:58 PM org.apache.catalina.loader.WebappClassLoader > >> validateJarFile > >> INFO: validateJarFile(C:\Documents and Settings\sspriya\REST - CXF\final > >> with news\back-up_07\With > >> drools\back-up\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\sfe-wss\WEB-INF\lib\servlet- > >> api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. > >> Offending class: javax/servlet/Servlet.class > >> Jan 18, 2008 3:58:59 PM org.apache.catalina.core.ApplicationContext log > >> INFO: Initializing Spring root WebApplicationContext > >> Jan 18, 2008 3:59:03 PM org.apache.cxf.endpoint.ServerImpl > >> initDestination > >> INFO: Setting the server's publish address to be / > >> Jan 18, 2008 3:59:03 PM org.apache.cxf.transport.servlet.CXFServlet > >> loadSpringBus > >> INFO: Load the bus with application context > >> Jan 18, 2008 3:59:03 PM org.apache.cxf.bus.spring.BusApplicationContext > >> getConfigResources > >> INFO: Could not find the configuration file C:\Documents and > >> Settings\sspriya\REST - CXF\final with news\back-up_07\With > >> drools\back-up\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\sfe-wss\WEB-INF\classes\CherryServer.cxf > >> on the classpath. > >> Jan 18, 2008 3:59:03 PM > >> org.apache.cxf.transport.servlet.AbstractCXFServlet > >> replaceDestinationFactory > >> INFO: Servlet transport factory already registered > >> Jan 18, 2008 3:59:03 PM org.apache.coyote.http11.Http11Protocol start > >> INFO: Starting Coyote HTTP/1.1 on http-8080 > >> Jan 18, 2008 3:59:03 PM org.apache.jk.common.ChannelSocket init > >> INFO: JK: ajp13 listening on /0.0.0.0:8009 > >> Jan 18, 2008 3:59:03 PM org.apache.jk.server.JkMain start > >> INFO: Jk running ID=0 time=0/63 config=null > >> Jan 18, 2008 3:59:03 PM org.apache.catalina.startup.Catalina start > >> INFO: Server startup in 6739 ms > >> Jan 18, 2008 3:59:04 PM > >> org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor > >> handleMessage > >> INFO: Request path is: / > >> Jan 18, 2008 3:59:04 PM > >> org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor > >> handleMessage > >> INFO: Request HTTP method is: GET > >> Jan 18, 2008 3:59:04 PM > >> org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor > >> handleMessage > >> INFO: Request contentType is: */* > >> Jan 18, 2008 3:59:04 PM > >> org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor > >> handleMessage > >> INFO: Accept contentType is: */* > >> Jan 18, 2008 3:59:04 PM > >> org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor > >> handleMessage > >> SEVERE: No operation found for path: /, contentType: */*, Accept > >> contentType: */* > >> Jan 18, 2008 3:59:04 PM org.apache.cxf.phase.PhaseInterceptorChain > >> doIntercept > >> INFO: Interceptor has thrown exception, unwinding now > >> java.lang.NullPointerException > >> at > >> org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:102) > >> at > >> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java > >> :207) > >> at > >> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78) > >> > >> at > >> org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletDestination.java:79) > >> at > >> org.apache.cxf.transport.servlet.ServletController.invokeDestination > >> (ServletController.java:264) > >> > >> at > >> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) > >> at > >> org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:170) > >> at > >> org.apache.cxf.transport.servlet.AbstractCXFServlet.doGet(AbstractCXFServlet.java:152) > >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) > >> at javax.servlet.http.HttpServlet.service(HttpServlet.java :803) > >> at > >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > >> at > >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > >> at > >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > >> at > >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) > >> at org.apache.catalina.core.StandardHostValve.invoke > >> (StandardHostValve.java:128) > >> at > >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > >> at > >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > >> at org.apache.catalina.connector.CoyoteAdapter.service > >> (CoyoteAdapter.java:263) > >> at > >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) > >> at > >> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) > >> at > >> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) > >> at java.lang.Thread.run(Unknown Source) > >> > >> > >> Thanks inadvance. Its kind of very urgent. > >> Please do reply ASAP. > >> Regards, > >> Priya > > > > >
