users@jersey.java.net

Re: [Jersey] Jersey/JAX-RS integration with Servlet 3.0

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 07 Sep 2009 13:20:18 +0200

On Sep 7, 2009, at 12:10 PM, Naresh wrote:

> Paul Sandoz wrote:
>> Hi,
>>
>> This may be an installation problem.
>>
>> Did you modify the pom.xml of the samples so that jersey
>> dependencies are in the scope of provided?
> I did not see that the jersey dependency was in the default scope,
> modifying the scope to "provided" did the trick. It works now.
>>
>> The latter exception is a fundamental error implying something is
>> wrong with the installation. Do you also get such a
>> ClassCastException for OneApplication as well, before the
>> NullPointerException when that application is serviced?
> Yes, the ClassCastException came before the NullPointerException.
> However, it works fine now, upon correcting the scope.
>

OK.

Such errors are going to become more common as users deploy their apps
(with Jersey contained) while Jersey is also installed in GF.

We are looking at ways to deploy such apps in isolation of Jersey
installed in GF using the webbundle deployment feature.

Paul.