users@jersey.java.net

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

From: <hkropp_at_microlution.de>
Date: Wed, 9 Feb 2011 15:59:25 +0100

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