users@jersey.java.net

[Jersey] Re: jersey with jetty - runnable jar

From: avner.eizner <avner.eizner_at_gmail.com>
Date: Mon, 5 Sep 2011 02:21:14 -0700 (PDT)

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.