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:
https://maven.java.net/content/repositories/releases/com/sun/jersey/jersey-bundle/1.9/jersey-bundle-1.9.jar
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
META-INF/services/*).
Pavel
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: http://jersey.576304.n2.nabble.com/jersey-with-jetty-runnable-jar-tp6753636p6760278.html
> Sent from the Jersey mailing list archive at Nabble.com.
>