users@jersey.java.net

[Jersey] Re: jersey with jetty - runnable jar

From: avner.eizner <avner.eizner_at_gmail.com>
Date: Tue, 6 Sep 2011 01:39:09 -0700 (PDT)

Thanks, it is work!

2011/9/5 Pavel Bucek-2 [via Jersey] <
ml-node+6761089-541828925-354395_at_n2.nabble.com>

> 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.
> >
>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://jersey.576304.n2.nabble.com/jersey-with-jetty-runnable-jar-tp6753636p6761089.html
> To unsubscribe from jersey with jetty - runnable jar, click here<http://jersey.576304.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=6753636&code=YXZuZXIuZWl6bmVyQGdtYWlsLmNvbXw2NzUzNjM2fDczNzc5MzA1NA==>.
>
>


-- 
אבנר אייזנר
avner.eizner_at_gmail.com
--
View this message in context: http://jersey.576304.n2.nabble.com/jersey-with-jetty-runnable-jar-tp6753636p6763078.html
Sent from the Jersey mailing list archive at Nabble.com.