I understand that Glassfish 3 is compatible with JEE6 and jax-rs, and therefore I should not include the jersey servlet container and display in my web.xml file. Here I was hoping my web.xml might look like
<webapp>
</webapp>
This does not work, although I get 404 when I try to hit my jax-rs dependent resources. It works fine when I enable the servlet adapter, for example:
<webapp>
<servlet>
<servlet-name>ServletAdaptor</servlet-name>
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servle
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>ServletAdaptor</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</webapp>
Is it possible to have an empty webapp element using glass fish jersey 3.0.1?
source
share