users@jersey.java.net

Jersey client problem with mvn assembly

From: Jose Javier García Zornoza <josejavier.garcia.zornoza_at_gmail.com>
Date: Tue, 08 Dec 2009 01:36:51 +0100

Hello.
When I run this code within a Maven project running on Netbeans there's
no problem:

            webResource = Client.create().resource(postURL);
            clientResponse = webResource.type(MediaType.TEXT_PLAIN)
                    .accept(MediaType.TEXT_PLAIN).post(
                    ClientResponse.class, "blimblimblim");

But when I try to run that code with the executable jar I get with mvn
assembly then:
'com.sun.jersey.api.client.ClientHandlerException: A message body writer
for Java type, class java.lang.String, and MIME media type, text/plain,
was not found'

Any clue with this?