users@jersey.java.net

[Jersey] Re: Why does Netbeans place jersey libs in straight Java EE 6 WAR?

From: Jan Algermissen <algermissen1971_at_mac.com>
Date: Thu, 26 Jan 2012 12:02:51 +0100

Thanks John! I figured that out after a while.

On Jan 24, 2012, at 5:38 PM, John Yeary wrote:

> Hello Jan,
>
> You can right-click on the project and go to Properties --> libraries and uncheck the package checkboxes to not include the jars in your war file. This will resolve to using the default EE implementation in GlassFish.

Still unintuitive, that GF is doing that by default.

Jan






> See attached image.
>
> John
> ____________________________
>
> John Yeary
> ____________________________
>
>
> ____________________________
>
> "Far better it is to dare mighty things, to win glorious triumphs, even though checkered by failure, than to take rank with those poor spirits who neither enjoy much nor suffer much, because they live in the gray twilight that knows not victory nor defeat."
> -- Theodore Roosevelt
>
>
>
> On Tue, Jan 24, 2012 at 12:10 PM, Jan Algermissen <algermissen1971_at_mac.com> wrote:
> Hi,
>
> sorry if this is slightly off-topic, but I figured that most of the knowledgeable and likely interested people are on this list.
>
> I am working on a Java EE 6 application, using JAX-RS but no Jersey specific features. However, when I build the application, Netbeans includes jersey libraries in the WAR. When I deploy that WAR to JBoss 6 there seems to be a missing library:
>
> "java.lang.ClassNotFoundException: com.sun.jersey.core.util.FeaturesAndProperties"
>
> Does anyone know, whet the Jersey libs are included in the WAR and if I can keep netbeans from doing that?
>
> Jan
>
> <PackageSelection.png>