users@jersey.java.net

Re: [Jersey] Re: deployment issues with latest glassfish build

From: Paul Sandoz <Paul.Sandoz_at_oracle.com>
Date: Fri, 10 Sep 2010 09:29:04 +0200

Hi John,

What version of GlassFish are you using?

Can you provide more details on your application, preferably attaching
a reproducible test case to the bug?

There are some fundamental errors going on here which makes me think
there is a conflict between the version of Jersey deployed in the war
and the version of Jersey distributed with GlassFish.


On Sep 10, 2010, at 1:27 AM, John Lister wrote:

> Oops forgot to attach the exception stacks. I've filled a bug https://jersey.dev.java.net/issues/show_bug.cgi?id=582
> with them in rather than clutter up the list.
> Which reminds me, is it preferable to just file a bug or report on
> the list first?
>

Either/or it is your preference. I like the fact the the issue is also
reported on the user list as not everyone monitors the issues.

Paul.

> Thanks
>
> John
>
> On 10/09/2010 00:14, John Lister wrote:
>> Hi, using the latest dev release (1.4.04 31/08/2010) in glassfish
>> of jersey I get 2 issues around deployment.
>>
>> Firstly when I deploy, all seems to go well except I get a number
>> of warnings of the form
>> WARNING: WEB9052: Unable to load class getAbout, reason:
>> java.lang.ClassNotFoundException: getAbout
>> (where getAbout is a resource method) for each method within my
>> resources.
>>
>> Secondly when I try and run my application, I get a sequence of
>> Null Pointer errors listed below. This seems to be caused by an
>> error initialising a CDIComponentProviderFactory, calling
>> getInitializedExtension returns null (as no extension is assigned
>> to the threadlocal variable) which causes a NullPointerException
>> when it tries to assign the application. Then in the
>> ContainerRequest constructor another NullPointerException results
>> when trying to enable the tracing because the application hasn't
>> been assigned.
>>
>> This looks to be caused by the work around for the weld proxying
>> bug as previously getInitialisedExtensions wasn't called.
>>
>> Thanks
>>
>> John
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>