Regression in 1.1.3-ea registering provider classed in the Application/ResourceConfig

6 messages Options
Embed this post
Permalink
Paul Sandoz

Regression in 1.1.3-ea registering provider classed in the Application/ResourceConfig

Reply Threaded More More options
Print post
Permalink
Hi

Juergen Zimmermann found a fairly serious regression in Jersey 1.1.3-
ea that will not result in the registration of any providers declared  
as classes or singletons declared in an Application/ResourceConfig.

   https://jersey.dev.java.net/issues/show_bug.cgi?id=392

This regression was caused by fixing issue 336:

   https://jersey.dev.java.net/issues/show_bug.cgi?id=336

but also affects any declared ResourceConfigurator instances that add  
providers.

This is fixed in 1.1.4-ea-SNAPSHOT branch and the trunk.

Paul.




---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Viktor Klang

Re: Regression in 1.1.3-ea registering provider classed in the Application/ResourceConfig

Reply Threaded More More options
Print post
Permalink
Greetings,

thanks for the heads up, Paul.

On Mon, Oct 19, 2009 at 12:46 PM, Paul Sandoz <[hidden email]> wrote:
Hi

Juergen Zimmermann found a fairly serious regression in Jersey 1.1.3-ea that will not result in the registration of any providers declared as classes or singletons declared in an Application/ResourceConfig.

 https://jersey.dev.java.net/issues/show_bug.cgi?id=392

This regression was caused by fixing issue 336:

 https://jersey.dev.java.net/issues/show_bug.cgi?id=336

but also affects any declared ResourceConfigurator instances that add providers.

This is fixed in 1.1.4-ea-SNAPSHOT branch and the trunk.

Paul.




---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




--
Viktor Klang

Blog: klangism.blogspot.com
Twttr: viktorklang
Wave: [hidden email]
Code: github.com/viktorklang

AKKA Committer - akkasource.org
Lift Committer - liftweb.com
Atmosphere Committer - atmosphere.dev.java.net
SoftPub founder: http://groups.google.com/group/softpub
Á. Eduardo García

Re: Regression in 1.1.3-ea registering provider classed in the Application/ResourceConfig

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hi, and thanks Paul.

However, I'm seeing the modified file being 1.1.5 instead of 1.1.4. Is that version what you mean? It's ok for me, that's the one I'm using anyway :)

Bye!

On 19 Oct 2009, at 12:58, Viktor Klang (via Nabble) wrote:

Greetings,

thanks for the heads up, Paul.

On Mon, Oct 19, 2009 at 12:46 PM, Paul Sandoz <[hidden email]> wrote:
Hi

Juergen Zimmermann found a fairly serious regression in Jersey 1.1.3-ea that will not result in the registration of any providers declared as classes or singletons declared in an Application/ResourceConfig.

 https://jersey.dev.java.net/issues/show_bug.cgi?id=392

This regression was caused by fixing issue 336:

 https://jersey.dev.java.net/issues/show_bug.cgi?id=336

but also affects any declared ResourceConfigurator instances that add providers.

This is fixed in 1.1.4-ea-SNAPSHOT branch and the trunk.

Paul.




---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




--
Viktor Klang

Blog: klangism.blogspot.com
Twttr: viktorklang
Wave: [hidden email]
Code: github.com/viktorklang

AKKA Committer - akkasource.org
Lift Committer - liftweb.com
Atmosphere Committer - atmosphere.dev.java.net
SoftPub founder: http://groups.google.com/group/softpub

Ángel Eduardo García Hernández




Paul Sandoz

Re: Regression in 1.1.3-ea registering provider classed in the Application/ResourceConfig

Reply Threaded More More options
Print post
Permalink

On Oct 19, 2009, at 1:00 PM, Á. Eduardo García wrote:

> Hi, and thanks Paul.
>
> However, I'm seeing the modified file being 1.1.5 instead of 1.1.4.  
> Is that version what you mean? It's ok for me, that's the one I'm  
> using anyway :)

I committed the fix to:

   branches/jersey-1.1.4-ea-SNAPSHOT/

   trunk/jersey/

We are currently maintaining a 1.1.4-ea-SNAPSHOT branch for the  
version of Jersey that will be distributed with the final release of  
GlassFish v3. The trunk is at 1.1.5-ea so we can include additional  
features since 1.1.4-ea will only include changes for bug fixes.


In another email you stated:

> I've used Jersey 1.1.5 (but I don't know if it's in use, because  
> Glassfish itself has Jersey 1.1.3 in it's own libraries, and when I  
> start the server it says something like:
>
> INFO: Initiating Jersey application, version 'Jersey: 1.1.3-ea  
> 10/06/2009 05:16 PM'


I guess you are using something like build 66 or greater of GlassFish?

If you set the class loader delegation to false in the sun-web.xml  
things should work. Note that you might get some additional exceptions  
logged, which should be harmless.

The general problem is because Jersey uses META-INF/services it is  
hard to isolate the version of Jersey distributed in GlassFish and the  
version of Jersey distributed in the war. There is a potential fix  
using a special OSGi web deployment feature of GlassFish but that  
solution requires more work from GlassFish.

If you like you could try to remove Jersey from GlassFish using the  
update center tool. Note that for every stable release of Jersey we do  
distribute it to the update center so it should be possible to upgrade  
via GlassFish.

Hth,
Paul.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Á. Eduardo García

Re: Regression in 1.1.3-ea registering provider classed in the Application/ResourceConfig

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
On 19 Oct 2009, at 13:20, Paul Sandoz (via Nabble) wrote:


On Oct 19, 2009, at 1:00 PM, Á. Eduardo García wrote:

> Hi, and thanks Paul.
>
> However, I'm seeing the modified file being 1.1.5 instead of 1.1.4.  
> Is that version what you mean? It's ok for me, that's the one I'm  
> using anyway :)

I committed the fix to:

   branches/jersey-1.1.4-ea-SNAPSHOT/

   trunk/jersey/

We are currently maintaining a 1.1.4-ea-SNAPSHOT branch for the  
version of Jersey that will be distributed with the final release of  
GlassFish v3. The trunk is at 1.1.5-ea so we can include additional  
features since 1.1.4-ea will only include changes for bug fixes.


Yeah, maybe the file was a little slow to show up in the download page, but now I see the modified files with the correct timestamp also in 1.1.4.


In another email you stated:

> I've used Jersey 1.1.5 (but I don't know if it's in use, because  
> Glassfish itself has Jersey 1.1.3 in it's own libraries, and when I  
> start the server it says something like:
>
> INFO: Initiating Jersey application, version 'Jersey: 1.1.3-ea  
> 10/06/2009 05:16 PM'


I guess you are using something like build 66 or greater of GlassFish?

I'm using b68 of Glassfish, yes.


If you set the class loader delegation to false in the sun-web.xml  
things should work. Note that you might get some additional exceptions  
logged, which should be harmless.

The general problem is because Jersey uses META-INF/services it is  
hard to isolate the version of Jersey distributed in GlassFish and the  
version of Jersey distributed in the war. There is a potential fix  
using a special OSGi web deployment feature of GlassFish but that  
solution requires more work from GlassFish.

If you like you could try to remove Jersey from GlassFish using the  
update center tool. Note that for every stable release of Jersey we do  
distribute it to the update center so it should be possible to upgrade  
via GlassFish.


Thanks for the info. I'll try this ASAP. I tried to remove Jersey using the update center a few days ago, but there are some dependencies of this package, so I didn't removed it just in case I broke anything. My main concerns for updating is fixing the issues I was having with Atmosphere and Jersey, and I had some success, but not entirely.

Anyway, lot of thanks!

Hth,
Paul.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


Ángel Eduardo García Hernández




Paul Sandoz

Re: Regression in 1.1.3-ea registering provider classed in the Application/ResourceConfig

Reply Threaded More More options
Print post
Permalink
On Oct 19, 2009, at 1:38 PM, Á. Eduardo García wrote:

>> If you like you could try to remove Jersey from GlassFish using the
>
>> update center tool. Note that for every stable release of Jersey we  
>> do
>> distribute it to the update center so it should be possible to  
>> upgrade
>> via GlassFish.
>>
>
> Thanks for the info. I'll try this ASAP. I tried to remove Jersey  
> using the update center a few days ago, but there are some  
> dependencies of this package, so I didn't removed it just in case I  
> broke anything.

Ah yes, there is a dependency on the admin console. It uses Jersey for  
RESTful access to admin and monitoring. I am actually not sure of the  
implications of removal in this respect.

If you are feeling brave you can build the Jersey GF module yourself  
and copy the relevant jars to the glassfish/modules area. See:

   trunk/jersey/glassfish/v3-packages

unfortunately IPS requires that packages be located at an IPS server.  
I really do hope the IPS team are going to solve that issue so one can  
install/upgrade from a file-based location.


> My main concerns for updating is fixing the issues I was having with  
> Atmosphere and Jersey, and I had some success, but not entirely.
>

OK. I am not sure if you got affected or not by the regression in  
1.1.3-ea.

Paul.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]