users@jersey.java.net

[Jersey] Re: Latest GF 3.1

From: Jakub Podlesak <jakub.podlesak_at_oracle.com>
Date: Tue, 22 Mar 2011 17:12:02 +0100

Hi Arthur,

In GlassFish 3.0.1, JAX-RS classes were shipped as a separate,
jsr311-api.jar, archive.
This jar is now missing in GFv3.1, as the JAX-RS classes are now bundled
with the jersey-core.jar.
I guess your application is a pure JAX-RS application, depending only on
the JAX-RS API,
and you used to have that jsr311-api.jar from GF installation at the
compilation class-path, right?

If that is the case, you may now want to switch to use the
jersey-core.jar instead (under glassfish/modules).

Otherwise, you should still be able to compile against [1] and run under
GlassFish 3.1.

~Jakub

[1]http://repo1.maven.org/maven2/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar

On 03/21/2011 10:58 PM, Arthur Yeo wrote:
> Hi all,
>
> Sorry for this seemingly obvious thing to, probably, most of you.
> I just upgraded to GF 3.1 (from GF 3.01) and none of my code that use
> Jersey now compile.
> NetBeans is complaining that all of the
>
> import javax.ws.rs.*
>
> do not exist.
>
>
> Is Jersey not bundled with the latest GF?
>
> Please kindly enlighten. Thanks!
>
> --
> Arthur Y.