[Jersey] Re: jersey with jetty - runnable jar

From: Pavel Bucek <>
Date: Mon, 05 Sep 2011 14:17:29 +0200

Yeah. You need to do it for all META-INF/services/* files and the
easiest way to do it should be just take jersey-bundle.jar and unpack it
(or use some Eclipse feature which could automatically merge them - I
don't use Eclipse so I'm not very familiar with that).

jersey-bundle.jar is available at:

unpack it manually and explore META-INF/services dir (or just take it
from there). You should be able to do it "automatically" by depending on
jersey-bundle only (my guess is that you are depending on jersey-server
(and other transitive dependencies) and "unpack" process just rewrites


On 9/5/11 11:21 AM, avner.eizner wrote:
> Hurrah! It works!
> But now I have the problem in MessageBodyReader..
> the output:
> SEVERE: A message body reader for Java class java.lang.String, and Java type
> class java.lang.String, and MIME media type text/plain was not found.
> The registered message body readers compatible with the MIME media type are:
> */* ->
> com.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$General
> com.sun.jersey.json.impl.provider.entity.JSONArrayProvider$General
> com.sun.jersey.json.impl.provider.entity.JSONObjectProvider$General
> com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$General
> com.sun.jersey.json.impl.provider.entity.JSONListElementProvider$General
> com.sun.jersey.json.impl.provider.entity.JacksonProviderProxy
> How do I handle this automatically?
> Or how i can extract only jersey-bundle?
> Is it possible to use with "Package", and fix it by use of jetty context
> setClassLoader ?
> --
> View this message in context:
> Sent from the Jersey mailing list archive at