I am using NetBeans 6.1 strictly as an IDE. I am not using any special
support for Jersey in NB. I have a straight maven project to which I
added a Jersey resource class and added to pom.xml and web.xml and that
is that. In other words I do not believe this is an NB related issue
AFAIK. Thanks.
Craig McClanahan wrote:
> Are you using NetBeans 6.1's support for Jersey? And if so, are you
> using the built in support from 6.1 for building REST-based webapps?
> If so, you are possibly running into one of a couple of different
> problems alluded to in the message thread.
>
> * Check your web.xml to see if NB added a <servlet> entry for class
> "com.sun.ws.rest.impl.container.servlet.ServletAdaptor", and a
> corresponding <servlet-mapping> for pattern "/resources/*". If they
> are there, try removing them and running your app again.
>
> * Check the library dependencies of your project (right click on
> "Libraries" in the project window), and see if there are two sets
> of Jersey libraries there ... the 0.8 ones built into NB 6.1, and the
> 1.0 or later ones that you added. If they are, remove the 0.8 ones.
>
> Beware that, if either of these things is happening to you, it will
> probably keep happening. What I ended up doing was rebuilding my
> webapp projects *without* using any of the RESTful Web Services
> support in NB, and just added the right jersey jar files as library
> dependencies manually. That way, NB won't interfere with my
> configuration by trying to be "helpful" like this.
>
--
Regards,
Farrukh Najmi
Web: http://www.wellfleetsoftware.com