Received: from acsinet22.oracle.com (/141.146.126.238)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Fri, 22 Apr 2011 00:54:22 -0700
Received: from acsinet11.oracle.com (acsinet11.oracle.com [141.146.126.233])
	by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p3M7sLCJ023819
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Fri, 22 Apr 2011 07:54:21 GMT
Received: from mailout01.kenai.com (mailout01.kenai.com [192.9.171.172])
	by acsinet11.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p3M7sELi009472;
	Fri, 22 Apr 2011 07:54:15 GMT
Received: from mail01.java.net (jnxmlm02z1.network.org [192.9.171.232])
	by mailout01.kenai.com (Postfix) with ESMTP id E725A1EA834;
	Fri, 22 Apr 2011 07:54:13 +0000 (GMT)
Received: from localhost (localhost [127.0.0.1])
	by mail01.java.net (Postfix) with ESMTP id 6C449256BFA;
	Fri, 22 Apr 2011 07:54:12 +0000 (GMT)
X-Virus-Scanned: amavisd-new at network.org
Received: from mail01.java.net ([127.0.0.1])
	by localhost (jnxmlm02z1.network.org [127.0.0.1]) (amavisd-new, port 10025)
	with ESMTP id 2K0jieq2RLCO; Fri, 22 Apr 2011 07:54:12 +0000 (GMT)
Received: by mail01.java.net (Postfix, from userid 60005)
	id 6B323256BCA; Fri, 22 Apr 2011 07:54:03 +0000 (GMT)
Received: from mailin02.kenai.com (mailin02.network.org [192.9.171.174])
	by mail01.java.net (Postfix) with ESMTP id 303FB256BB2
	for <users@glassfish.java.net>; Fri, 22 Apr 2011 07:54:00 +0000 (GMT)
Received: from localhost (localhost [127.0.0.1])
	by mailin02.kenai.com (Postfix) with ESMTP id 1C1F220F74A
	for <users@glassfish.java.net>; Fri, 22 Apr 2011 07:54:00 +0000 (GMT)
X-Virus-Scanned: amavisd-new at network.org
Received: from mailin02.kenai.com ([127.0.0.1])
	by localhost (mailin02.network.org [127.0.0.1]) (amavisd-new, port 10025)
	with ESMTP id ygcA+JbMBEki for <users@glassfish.java.net>;
	Fri, 22 Apr 2011 07:53:59 +0000 (GMT)
Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121])
	by mailin02.kenai.com (Postfix) with ESMTP id 29CAD20F746
	for <users@glassfish.java.net>; Fri, 22 Apr 2011 07:53:58 +0000 (GMT)
Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237])
	by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p3M7ruZ5013675
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <users@glassfish.java.net>; Fri, 22 Apr 2011 07:53:57 GMT
Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157])
	by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p3M7rtCq021580
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <users@glassfish.java.net>; Fri, 22 Apr 2011 07:53:56 GMT
Received: from abhmt017.oracle.com (abhmt017.oracle.com [141.146.116.26])
	by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p3M7roJi019204
	for <users@glassfish.java.net>; Fri, 22 Apr 2011 02:53:50 -0500
Received: from dhcp-uk-twvpn-1-vpnpool-10-175-28-3.vpn.oracle.com (/10.175.28.3)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Fri, 22 Apr 2011 00:53:50 -0700
Message-ID: <4DB13401.4050204@oracle.com>
Date: Fri, 22 Apr 2011 09:53:37 +0200
From: Pavel Bucek <pavel.bucek@oracle.com>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 OracleBeehiveExtension/1.0.0.2-OracleInternal ObetStats/LAFCAT_1299771784204-427743025 Thunderbird/3.1.9
MIME-Version: 1.0
To: users@glassfish.java.net
Subject: Re: glassfish 3.1 with jersey 1.5 (out of the box) client issues
References: <listhandler=29&site=www.java.net&nid=794091&pid=0&cid=&uid=432427&tid=&a19b58f4093f9bbb40ce35e69c755eb7@www.java.net> <listhandler=29&site=www.java.net&nid=794091&pid=0&cid=814300&uid=432427&tid=119&6f1f5966f5d7009456304549ce1be29f@www.java.net>
In-Reply-To: <listhandler=29&site=www.java.net&nid=794091&pid=0&cid=814300&uid=432427&tid=119&6f1f5966f5d7009456304549ce1be29f@www.java.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Reply-To: users@glassfish.java.net
X-Loop: users@glassfish.java.net
X-Sequence: 1934
Errors-to: users-owner@glassfish.java.net
Precedence: list
X-no-archive: yes
List-Id: <users.glassfish.java.net>
List-Help: <mailto:sympa@glassfish.java.net?subject=help>
List-Subscribe: <mailto:sympa@glassfish.java.net?subject=subscribe%20users>
List-Unsubscribe: <mailto:sympa@glassfish.java.net?subject=unsubscribe%20users>
List-Post: <mailto:users@glassfish.java.net>
List-Owner: <mailto:users-request@glassfish.java.net>
X-Source-IP: mailout01.kenai.com [192.9.171.172]
X-CT-RefId: str=0001.0A090209.4DB13428.0096,ss=1,fgs=0

Hello,

can you please share your client code/reproducible testcase? Btw 
jersey-json needs to be on your classpath as other dependencies (looks 
like you are using jettison).

Or you can take a look at our samples which are using JSON:

http://download.java.net/maven/2/com/sun/jersey/samples/jacksonjsonprovider/1.5/jacksonjsonprovider-1.5-project.zip
http://download.java.net/maven/2/com/sun/jersey/samples/json-from-jaxb/1.5/json-from-jaxb-1.5-project.zip

Thanks,
Pavel

On 4/21/11 7:49 PM, forums@java.net wrote:
> Also, I've noticed that with respect to clients; if I add the 
> jersey-json jar
> file the exception seems to change (for the worse? or the better? I can't
> tell).
>
> SEVERE: A Message body reader for Java class java.lang.String, and 
> Java Type
> class java.lang.String, and MIME media tyep text/plain was not found ...
> ocm.sun.jersey.api.client.ClientResponse getEntity SEVERE: The registered
> message body readers compatible with the MIME media types are: */* ->
> com.sun.jersey.impl.provider.entity.JSONJAXBElementProvider$General
> com.sun.jersey.impl.provider.entity.JSONArrayProviderr$General
> com.sun.jersey.impl.provider.entity.JSONObjectProvider$General
> com.sun.jersey.impl.provider.entity.JSONRootElementProvider$General
> com.sun.jersey.impl.provider.entity.JSONListElementProvider$General 
> Caused
> by: com.sun.jersey.api.client.ClientHandlerException: 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 Thanks again.
>
> -- 
>
> [Message sent by forum member 'hoffman462']
>
> View Post: http://forums.java.net/node/794091
>
>
>