users@jersey.java.net

Re: [Jersey] Jersey in Glassfish V3 Prelude

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 16 Mar 2009 12:55:02 +0100

On Mar 16, 2009, at 12:30 PM, Erdinc Yilmazel wrote:

> Hi,
>
> I am using zip distribution of glassfish on Mac OS X Leopard.
> I am not sure what is the built in jersey implementation.
>
> When I run "find . -name *jersey*" on gf3 installation directory all
> I get is
> ./.org.opensolaris,pkg/pkg/jersey
>
> From this, I am assuming that updatetool made its job correctly.
>
> I am using Intellij idea 8.1. I can debug everything under glassfish
> v3 but jersey. My application works fine under both jetty and
> glassfish v2.1, but I can not deploy it under gf3 since it throws a
> null pointer exception somewhere during deployment.
>

Can you send the server log?


> My WEB-INF/lib directory contains the following jars: (I am using
> maven dependencies, there are some other jars too)
> jersey-client-1.0.2.jar jersey-core-1.0.2.jar
> jersey-json-1.0.2.jar jersey-multipart-1.0.2.jar
> jersey-server-1.0.2.jar
>
> I was using Glassfish v3 without any problems until I tried to add a
> custom ResourceFilter.
>
> When I add this to my web.xml file:
>
> <init-param>
> <param-name>com.sun.jersey.spi.container.ResourceFilters</param-
> name>
> <param-value>codegen.LoginResourceFilterFactory</param-value>
> </init-param>
>
> it stops working.

And if you do not add the following? does your application work?

Paul.




> Becase these features were introduces in jersey
> 1.0.2 I assumed that it was trying to use an old version of jersey.
>
> Finally, I can't see jersey 1.0.2 under available packages if I run
> updatetool under glassfish v3 prelude. It displays version 1.0.1. (It
> is 1.0.2 if I use glassfish v2.1 updatetool)
>
> Thank you.
>
> On Mon, Mar 16, 2009 at 9:47 AM, Paul Sandoz <Paul.Sandoz_at_sun.com>
> wrote:
>> Hi Eric,
>>
>> I am wondering which is the "built in Jersey implementation" if you
>> removed
>> 1.0.1 from GF.
>>
>> Could you send me the contents of the GF v3 directory as i would
>> like to
>> know if Jersey was correctly removed or not.
>>
>> Are you using NetBeans? if so i am wondering if NetBeans is adding
>> version
>> 1.0 jars to the war. What are the jar files in your WEB-INF/lib of
>> your war
>> file?
>>
>> Did you try installing 1.0.2 from the update center?
>>
>> Paul.
>>
>> On Mar 14, 2009, at 8:39 PM, Erdinc Yilmazel wrote:
>>
>>> Even though I removed Jersey 1.0.1 from my glassfish v3 prelude
>>> installation using the updatetool, It seems to ignore Jersey 1.0.2
>>> jars that is in my war file and uses the built in jersey
>>> implementation. I ended up with this conclusion because attached
>>> debugger does not stop on any breakpoints on classes that are in
>>> jersey-server-1.0.2.jar. I can not make jersey 1.0.2 specific
>>> features
>>> like resource method specific filters work using GF3 Prelude.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>