users@jersey.java.net

Re: [Jersey] help configuring the minimal set of jars to each media type

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 14 Apr 2010 16:33:33 +0200

On Apr 14, 2010, at 4:26 PM, Leonardo wrote:

> Thanks a lot, actually due to proxy issues i'm unable to download
> anythig with "ownload" in the name but got some tests at home;
>

!! gosh that seems really restrictive.

> my classpath have those jars:
>
> * jersey-core-1.1.5.1.jar
> * jersey-server-1.1.5.1.jar
> * jsr311-api-1.1.jar
> * asm-3.1.jar
>
> and the entities must be annotated as you pointed out. also if i want
> to produce json i need the jersey-json-1.1.5.1.jar as well, and if
> java isn't 6 the jaxb becomes a dependency.
>

Yes.


> thanks for reply, i'll continue to test.
>
> it's good to see that jersey have a quite small set of dependencies.
>

You can remove the dependency on asm-3.1.jar if you are not using any
scanning mechanism to register root resource and provider classes
(i.e. if you do that explicitly).

Paul.