Hi,
I am trying to use Jersey under Netbeans 6.10 + Tomcat 6 + Maven. I am
constantly getting the following error:
java.lang.ClassNotFoundException:
com.sun.ws.rest.spi.container.servlet.ServletContainer
I made many attempts with no positive result, with both following servlet
parameters:
(A)
<init-param>
<param-name>com.sun.jersey.config.property.packages</param-name>
<param-value>net.cbsolution.x2p.ezrest</param-value>
</init-param>
(B)
<init-param>
<param-name>javax.ws.rs.Application</param-name>
<param-value>net.cbsolution.x2p.ezrest.RestApplication</param-value>
</init-param>
What I really can't understand is the message case (B). If I provide an
application that defines which classes to use, why the message? Seems Jersey is
making a scan anyway.
What I would like to know is if there is some way to fine log Jersey to
understand what is going wrong. Also seems my resource paths are not recognized.
I suppose there shall be some way to trace how Jersey perform routing but I
found no documentation about it.
Thanks a lot for any kind of help.