users@jersey.java.net

[Jersey] Re: Trouble with Jersey MIME Type “text/xml;charset=UTF-8 was not found”

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Wed, 09 Feb 2011 16:09:10 +0100

Hello hkropp!

you might have problem with correct META-INF/services propagation in
your jar bundle.

please see
http://jersey.576304.n2.nabble.com/issue-with-POST-when-packaging-into-jar-td5460103.html

Regards,
Pavel

On 02/09/2011 03:59 PM, hkropp_at_microlution.de wrote:
> Hi List!
>
> I experience some strange trouble and extensive search could not help me.
>
> Why do I get the following Exception when running the program within a jar
> bundle, but not getting this Exception when executing it within netbeans?
>
> com.sun.jersey.api.client.ClientHandlerException: A message body reader
> for Java class javax.xml.bind.JAXBElement, and Java type
> javax.xml.bind.JAXBElement, and MIME media type text/xml;charset=UTF-8 was
> not found
>
> I am building my program with maven and the assembly plugin.
>
> mvn assembly:assembly
>
> What does netbeans do different when I am running "Run File"? How to make
> the detailed execution of netbeans visible?
>
> I do have the right dependencies for the mime type set in pom.xml, as
>
> Kind regards and many thanks in advanced
>
> PS: I have asked the question at stackoverflow as well, so feel free to
> answer there as well http://stackoverflow.com/questions/4945944
>
>
>