users@glassfish.java.net

[gf-users] Re: Fwd: [Jersey] Instructions to upgrade current Glassfish 4.1 stable

From: Romain Grecourt <romain.grecourt_at_oracle.com>
Date: Wed, 24 Jun 2015 19:42:48 -0700

On 6/24/15 6:55 PM, Romain Grecourt wrote:
> Here is how you can perform an in-place upgrade of jersey 2.18:
>
> 1- Unpack the content of the following zip files into your GlassFish
> installation:
>
> https://maven.java.net/service/local/repositories/snapshots/content/org/glassfish/main/packager/jersey/4.2-SNAPSHOT/jersey-4.2-20150624.182310-194.zip
You may actually run into some issues as weld has been upgraded since
4.1 was released.
Upgrading weld would result into a full upgrade, which apparently you're
trying to avoid.

You could try this instead:
https://maven.java.net/service/local/repositories/snapshots/content/org/glassfish/main/packager/nucleus-jersey/4.2-SNAPSHOT/nucleus-jersey-4.2-20150624.180446-201.zip

Note that JERSEY_2661 is said to be caused by HK2_233, which has been
fixed in HK2 2.4.0-b03.
The glassfish-hk2 package I referenced contains HK2 2.4.0-b12.
<https://java.net/jira/browse/JERSEY-2661>
> https://maven.java.net/service/local/repositories/snapshots/content/org/glassfish/main/packager/glassfish-hk2/4.2-SNAPSHOT/glassfish-hk2-4.2-20150624.182113-194.zip
>
> unzip -o jersey-4.2-20150624.182310-194.zip
> unzip -o glassfish-hk2-4.2-20150624.182113-194.zip
>
> 2- Remove the OSGi cache.
>
> rm -rf domain_dir/osgi-cache/*
>
> Thanks,
> Romain
>
> On 6/24/15 6:32 PM, Marek Potociar wrote:
>> Forwarding to GlassFish mailing list.
>>
>> Marek
>>
>>> Begin forwarded message:
>>>
>>> *From: *Lenny Primak <lprimak_at_hope.nyc.ny.us
>>> <mailto:lprimak_at_hope.nyc.ny.us>>
>>> *Subject: **[Jersey] Instructions to upgrade current Glassfish 4.1
>>> stable*
>>> *Date: *23 Jun 2015 18:27:28 GMT-7
>>> *To: *"users_at_jersey.java.net <mailto:users_at_jersey.java.net>"
>>> <users_at_jersey.java.net <mailto:users_at_jersey.java.net>>
>>> *Reply-To: *users_at_jersey.java.net <mailto:users_at_jersey.java.net>
>>>
>>> Hi,
>>>
>>> I am trying to get Jersey 2.18 working with Glassfish. I tried the
>>> nightly build, but
>>> it fails due to other bugs.
>>> Can someone let me know what the steps are to upgrade the stable GF
>>> 4.1 release to Jersey 2.18?
>>>
>>> Specifically, I am interested in a fix for this bug:
>>> https://java.net/jira/browse/JERSEY-2661
>>> which was fixed since Jersey 2.13
>>>
>>> Thank you
>>
>