users@jersey.java.net

JAX-RS Resource in OSGi bundle

From: Arun Gupta <Arun.Gupta_at_Sun.COM>
Date: Thu, 11 Mar 2010 10:09:05 -0800

I converted a trivial JAX-RS web app [1] into an OSGi bundle and
deployed on 3.1 nightly build. The resource is accessible correctly in
web app but gives the following error in OSGi bundle:

-- cut here --
javax.ws.rs.WebApplicationException
     at
com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:268)

     at
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1029)

     at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:941)

     at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:932)

     at
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:384)

     at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:451)

     at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:632)

     at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
-- cut here --

Any idea ?

[1] http://blogs.sun.com/arungupta/entry/totd_124_using_cdi_jpa

Thanks,
-Arun

-- 
Blog: http://blogs.sun.com/arungupta
Twitter: http://twitter.com/arungupta