dev@jersey.java.net

Re: Testing Jersey 2.x development

From: Paul Moore <paulkmoore_at_gmail.com>
Date: Wed, 24 Jul 2013 14:22:00 +0100

Thanks Marek - will give that a go

Paul

On 24 July 2013 14:11, Marek Potociar <marek.potociar_at_oracle.com> wrote:

>
> On Jul 23, 2013, at 10:06 PM, Paul Moore <paulkmoore_at_gmail.com> wrote:
>
> > Hi all,
> >
> > I am implementing a fix for (self created) JERSEY-1988, and have
> successfully built the Jersey libs (with my changes).
> >
> > The question is this: what is the general approach for *upgrading*
> Glassfish 4.x to use these new libs, so that I can test my application with
> them?
>
> You need to provide a module with proper OSGi headers (importing/exporting
> necessary packages etc.) and then you put the module jar into the
> <gf-install-root>/glassfish/modules dir.
>
> >
> > Does this require a rebuild of Glassfish with updated (local)
> dependencies or is there some better way?
>
> GF installation modified as instructed above requires typically a restart,
> as well as cleaning the OSGi cache (remove the content of
> <gf-install-root>/domains/domain1/osgi-cache dir while GF instance is
> stopped).
>
> HTH,
> Marek
>
> >
> > I saw some references in the Glassfish docs about updating from local
> repos, but it seemed like a sledgehammer to crack a nut!
> >
> > Thanks
> >
> > Paul
>
>