users@jersey.java.net

Re: [Jersey] Classloader Issues

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 14 Dec 2009 17:18:29 +0100

On Dec 14, 2009, at 5:04 PM, Cemo Koc wrote:

>
> Hi Paul,
>
> Again I am trying to make it work properly with 1.1.5-ea-SNAPHOT...
> From
> your explanations the easiest way will be replacing the jars bundled
> with
> Glassfish.
>
> Now I replaced jersey-gf-bundle.jar with latest-bundle
>
> http://download.java.net/maven/2/com/sun/jersey/jersey-bundle/1.1.5-ea-SNAPSHOT/
>

That is the wrong one, you need to use:

http://download.java.net/maven/2/com/sun/jersey/glassfish/v3/osgi/jersey-gf-bundle/1.1.5-ea-SNAPSHOT/jersey-gf-bundle-1.1.5-ea-SNAPSHOT.jar

which contains the appropriate OSGi related information for GlassFish.


> I deployed my application my application. But I could not see any
> error.
> However I could not see any log about 1.1.5-ea-SNAPSHOT too. This is
> weird
> because I have always seen that when I am deploying my application I
> could
> see this log entry in my server log.
>
> After first request to application. (You can check times)
>
> I can see scanned resources, some errors and loaded 1.1.5-ea-
> SNAPSHOT log
> entry.
>
>
> Here is the related log file :
>
> http://n2.nabble.com/file/n4164945/server.log server.log
>
>
> What should I do to work with new SNAPHOT without any problem.
>

Replace the glassfish/modules/jersey-gf-bundle.jar with the one in the
link above. Note that we do continuously test GF with the snapshot
bundle.

Paul.