<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: JAX-RS Multipart support with RESTEasy</title>
	<atom:link href="http://bill.burkecentral.com/2008/10/23/jax-rs-multipart-support-with-resteasy/feed/" rel="self" type="application/rss+xml" />
	<link>http://bill.burkecentral.com/2008/10/23/jax-rs-multipart-support-with-resteasy/</link>
	<description>Software plumbing using middleware wrenches</description>
	<lastBuildDate>Thu, 09 Feb 2012 19:51:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Cristian</title>
		<link>http://bill.burkecentral.com/2008/10/23/jax-rs-multipart-support-with-resteasy/#comment-3382</link>
		<dc:creator><![CDATA[Cristian]]></dc:creator>
		<pubDate>Fri, 12 Mar 2010 17:34:25 +0000</pubDate>
		<guid isPermaLink="false">http://billburke.wordpress.com/?p=148#comment-3382</guid>
		<description><![CDATA[Hi,
I also have a strange problem with MessageBodyReader.

I want to test a client which is defined like:

    @POST
    @Path(&quot;{membershipExternalId}/query&quot;)
    @Consumes(MediaType.APPLICATION_XML)
    @Produces(&quot;multipart/mixed&quot;)
    public MultipartOutput query(@PathParam(&quot;membershipExternalId&quot;) final String membershipExternalId,
                             //others param ){
    //code}

I receive this strange error:

org.jboss.resteasy.client.ClientResponseFailure: Unable to find a MessageBodyReader of content-type multipart/mixed;boundary=&quot;8265ccfc-6ff2-49b7-ba57-6a8149020e4d&quot; and type class org.jboss.resteasy.plugins.providers.multipart.MultipartOutput

when i try to take the response in a MultipartOutput variable.

Any help will be higly appreciate.

Thanks.]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
I also have a strange problem with MessageBodyReader.</p>
<p>I want to test a client which is defined like:</p>
<p>    @POST<br />
    @Path(&#8220;{membershipExternalId}/query&#8221;)<br />
    @Consumes(MediaType.APPLICATION_XML)<br />
    @Produces(&#8220;multipart/mixed&#8221;)<br />
    public MultipartOutput query(@PathParam(&#8220;membershipExternalId&#8221;) final String membershipExternalId,<br />
                             //others param ){<br />
    //code}</p>
<p>I receive this strange error:</p>
<p>org.jboss.resteasy.client.ClientResponseFailure: Unable to find a MessageBodyReader of content-type multipart/mixed;boundary=&#8221;8265ccfc-6ff2-49b7-ba57-6a8149020e4d&#8221; and type class org.jboss.resteasy.plugins.providers.multipart.MultipartOutput</p>
<p>when i try to take the response in a MultipartOutput variable.</p>
<p>Any help will be higly appreciate.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: landgar</title>
		<link>http://bill.burkecentral.com/2008/10/23/jax-rs-multipart-support-with-resteasy/#comment-3364</link>
		<dc:creator><![CDATA[landgar]]></dc:creator>
		<pubDate>Fri, 26 Feb 2010 07:54:50 +0000</pubDate>
		<guid isPermaLink="false">http://billburke.wordpress.com/?p=148#comment-3364</guid>
		<description><![CDATA[org.jboss.resteasy.client.ClientResponseFailure: Unable to find a MessageBodyReader of content-type text/html;charset=utf-8 and type java.util.List

You have to create a message body reader, like in this example (this solved that problem):

ClientResponse response = request.get(String.class);
ResteasyProviderFactory.getInstance().addBuiltInMessageBodyReader(new DefaultTextPlain());			
			
			if (response.getStatus() == 200) {// OK!
				String str = response.getEntity();
				System.out.println(str);
			}]]></description>
		<content:encoded><![CDATA[<p>org.jboss.resteasy.client.ClientResponseFailure: Unable to find a MessageBodyReader of content-type text/html;charset=utf-8 and type java.util.List</p>
<p>You have to create a message body reader, like in this example (this solved that problem):</p>
<p>ClientResponse response = request.get(String.class);<br />
ResteasyProviderFactory.getInstance().addBuiltInMessageBodyReader(new DefaultTextPlain());			</p>
<p>			if (response.getStatus() == 200) {// OK!<br />
				String str = response.getEntity();<br />
				System.out.println(str);<br />
			}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: billburke</title>
		<link>http://bill.burkecentral.com/2008/10/23/jax-rs-multipart-support-with-resteasy/#comment-2990</link>
		<dc:creator><![CDATA[billburke]]></dc:creator>
		<pubDate>Wed, 09 Sep 2009 17:50:29 +0000</pubDate>
		<guid isPermaLink="false">http://billburke.wordpress.com/?p=148#comment-2990</guid>
		<description><![CDATA[A blog isn&#039;t a place to post user questsions.  Please see the developer list at jboss.org/resteasy.]]></description>
		<content:encoded><![CDATA[<p>A blog isn&#8217;t a place to post user questsions.  Please see the developer list at jboss.org/resteasy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fieran Mason-Blakley</title>
		<link>http://bill.burkecentral.com/2008/10/23/jax-rs-multipart-support-with-resteasy/#comment-2989</link>
		<dc:creator><![CDATA[Fieran Mason-Blakley]]></dc:creator>
		<pubDate>Wed, 09 Sep 2009 15:39:53 +0000</pubDate>
		<guid isPermaLink="false">http://billburke.wordpress.com/?p=148#comment-2989</guid>
		<description><![CDATA[Hi there.

I&#039;ve been working away with the RestEasy Library for a while now and have run into a problem with unmarshalling vanilla java.util.list.  I used the RestEasy documentation as my source of examples, but have apparently misunderstood something.  I have dropped my code below in hopes that you might be able to inform me as to what I have done wrong.    


this is the driving code:

public List getSearchResults( String searchType, String uriParam )
{
    List concepts = null;
    
    try
    {
        ListInterface proxy = 
            ProxyFactory.create( ListInterface.class, uriRoot + &quot;/exactmatch&quot; + &quot;/skin&quot;);
        ClientResponse&lt;List&gt; response = (ClientResponse) proxy.getList();
        concepts = 
            (List) 
            response.getEntity( new GenericType&lt;List&gt;(){} );
    }
    catch( Exception e )
    {
        e.printStackTrace();
    }
    
    return concepts;
}

this is the interface

public interface ListInterface
{
	@GET
	@Produces(&quot;multipart/*&quot;)
	@PartType(&quot;application/xml&quot;)
	public Response getList();
}

What I feel are the two most significant elements of the output

110 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.providers.multipart.ListMultipartReader

org.jboss.resteasy.client.ClientResponseFailure: Unable to find a MessageBodyReader of content-type text/html;charset=utf-8 and type java.util.List]]></description>
		<content:encoded><![CDATA[<p>Hi there.</p>
<p>I&#8217;ve been working away with the RestEasy Library for a while now and have run into a problem with unmarshalling vanilla java.util.list.  I used the RestEasy documentation as my source of examples, but have apparently misunderstood something.  I have dropped my code below in hopes that you might be able to inform me as to what I have done wrong.    </p>
<p>this is the driving code:</p>
<p>public List getSearchResults( String searchType, String uriParam )<br />
{<br />
    List concepts = null;</p>
<p>    try<br />
    {<br />
        ListInterface proxy =<br />
            ProxyFactory.create( ListInterface.class, uriRoot + &#8220;/exactmatch&#8221; + &#8220;/skin&#8221;);<br />
        ClientResponse&lt;List&gt; response = (ClientResponse) proxy.getList();<br />
        concepts =<br />
            (List)<br />
            response.getEntity( new GenericType&lt;List&gt;(){} );<br />
    }<br />
    catch( Exception e )<br />
    {<br />
        e.printStackTrace();<br />
    }</p>
<p>    return concepts;<br />
}</p>
<p>this is the interface</p>
<p>public interface ListInterface<br />
{<br />
	@GET<br />
	@Produces(&#8220;multipart/*&#8221;)<br />
	@PartType(&#8220;application/xml&#8221;)<br />
	public Response getList();<br />
}</p>
<p>What I feel are the two most significant elements of the output</p>
<p>110 [main] INFO org.jboss.resteasy.plugins.providers &#8211; Adding built in provider org.jboss.resteasy.plugins.providers.multipart.ListMultipartReader</p>
<p>org.jboss.resteasy.client.ClientResponseFailure: Unable to find a MessageBodyReader of content-type text/html;charset=utf-8 and type java.util.List</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: billburke</title>
		<link>http://bill.burkecentral.com/2008/10/23/jax-rs-multipart-support-with-resteasy/#comment-2198</link>
		<dc:creator><![CDATA[billburke]]></dc:creator>
		<pubDate>Mon, 03 Nov 2008 13:11:11 +0000</pubDate>
		<guid isPermaLink="false">http://billburke.wordpress.com/?p=148#comment-2198</guid>
		<description><![CDATA[Porter, those are the built-in providers.  You can turn them off with by setting this context param to false:

resteasy.use.builtin.providers

As for your 1st problem, yup there is no javassist jar provided with distribution.  So much for trusting maven to pull in transitive dependencies.  I can&#039;t believe I missed that, not sure what changed because it used to pull in the dependencies.]]></description>
		<content:encoded><![CDATA[<p>Porter, those are the built-in providers.  You can turn them off with by setting this context param to false:</p>
<p>resteasy.use.builtin.providers</p>
<p>As for your 1st problem, yup there is no javassist jar provided with distribution.  So much for trusting maven to pull in transitive dependencies.  I can&#8217;t believe I missed that, not sure what changed because it used to pull in the dependencies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Porter</title>
		<link>http://bill.burkecentral.com/2008/10/23/jax-rs-multipart-support-with-resteasy/#comment-2195</link>
		<dc:creator><![CDATA[Porter]]></dc:creator>
		<pubDate>Fri, 31 Oct 2008 20:58:49 +0000</pubDate>
		<guid isPermaLink="false">http://billburke.wordpress.com/?p=148#comment-2195</guid>
		<description><![CDATA[Also it seems to ignore at least one of the context-parameters..

	
		resteasy.scan.providers
		false
	

And, yet I still see the following emitted to the console when starting Tomcat.

Oct 31, 2008 5:02:05 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
47 [main] INFO org.jboss.resteasy.plugins.providers - Added DataSourceProvider
47 [main] INFO org.jboss.resteasy.plugins.providers - Added DefaultTextPlain
78 [main] INFO org.jboss.resteasy.plugins.providers - Added JAXBXmlRootElementProvider
78 [main] INFO org.jboss.resteasy.plugins.providers - Added JAXBElementProvider
94 [main] INFO org.jboss.resteasy.plugins.providers - Added JAXBXmlTypeProvider
94 [main] INFO org.jboss.resteasy.plugins.providers - Adding org.jboss.resteasy.plugins.providers.IIOImageProvider
94 [main] INFO org.jboss.resteasy.plugins.providers - Adding org.jboss.resteasy.plugins.providers.jaxb.json.JsonJAXBElementProvider
109 [main] INFO org.jboss.resteasy.plugins.providers - Adding org.jboss.resteasy.plugins.providers.jaxb.json.JsonXmlTypeProvider
109 [main] INFO org.jboss.resteasy.plugins.providers - Adding org.jboss.resteasy.plugins.providers.jaxb.json.JsonXmlRootElementProvider
172 [main] INFO org.jboss.resteasy.plugins.providers - Adding org.jboss.resteasy.plugins.providers.MimeMultipartProvider
172 [main] INFO org.jboss.resteasy.plugins.providers - Adding org.jboss.resteasy.plugins.providers.YamlProvider
187 [main] INFO org.jboss.resteasy.plugins.providers - Adding org.jboss.resteasy.plugins.providers.jaxb.fastinfoset.FastinfoSetXmlRootElementProvider
187 [main] INFO org.jboss.resteasy.plugins.providers - Adding org.jboss.resteasy.plugins.providers.jaxb.fastinfoset.FastinfoSetJAXBElementProvider
187 [main] INFO org.jboss.resteasy.plugins.providers - Adding org.jboss.resteasy.plugins.providers.jaxb.fastinfoset.FastinfoSetXmlTypeProvider]]></description>
		<content:encoded><![CDATA[<p>Also it seems to ignore at least one of the context-parameters..</p>
<p>		resteasy.scan.providers<br />
		false</p>
<p>And, yet I still see the following emitted to the console when starting Tomcat.</p>
<p>Oct 31, 2008 5:02:05 PM org.apache.catalina.core.StandardEngine start<br />
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14<br />
47 [main] INFO org.jboss.resteasy.plugins.providers &#8211; Added DataSourceProvider<br />
47 [main] INFO org.jboss.resteasy.plugins.providers &#8211; Added DefaultTextPlain<br />
78 [main] INFO org.jboss.resteasy.plugins.providers &#8211; Added JAXBXmlRootElementProvider<br />
78 [main] INFO org.jboss.resteasy.plugins.providers &#8211; Added JAXBElementProvider<br />
94 [main] INFO org.jboss.resteasy.plugins.providers &#8211; Added JAXBXmlTypeProvider<br />
94 [main] INFO org.jboss.resteasy.plugins.providers &#8211; Adding org.jboss.resteasy.plugins.providers.IIOImageProvider<br />
94 [main] INFO org.jboss.resteasy.plugins.providers &#8211; Adding org.jboss.resteasy.plugins.providers.jaxb.json.JsonJAXBElementProvider<br />
109 [main] INFO org.jboss.resteasy.plugins.providers &#8211; Adding org.jboss.resteasy.plugins.providers.jaxb.json.JsonXmlTypeProvider<br />
109 [main] INFO org.jboss.resteasy.plugins.providers &#8211; Adding org.jboss.resteasy.plugins.providers.jaxb.json.JsonXmlRootElementProvider<br />
172 [main] INFO org.jboss.resteasy.plugins.providers &#8211; Adding org.jboss.resteasy.plugins.providers.MimeMultipartProvider<br />
172 [main] INFO org.jboss.resteasy.plugins.providers &#8211; Adding org.jboss.resteasy.plugins.providers.YamlProvider<br />
187 [main] INFO org.jboss.resteasy.plugins.providers &#8211; Adding org.jboss.resteasy.plugins.providers.jaxb.fastinfoset.FastinfoSetXmlRootElementProvider<br />
187 [main] INFO org.jboss.resteasy.plugins.providers &#8211; Adding org.jboss.resteasy.plugins.providers.jaxb.fastinfoset.FastinfoSetJAXBElementProvider<br />
187 [main] INFO org.jboss.resteasy.plugins.providers &#8211; Adding org.jboss.resteasy.plugins.providers.jaxb.fastinfoset.FastinfoSetXmlTypeProvider</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Porter</title>
		<link>http://bill.burkecentral.com/2008/10/23/jax-rs-multipart-support-with-resteasy/#comment-2194</link>
		<dc:creator><![CDATA[Porter]]></dc:creator>
		<pubDate>Fri, 31 Oct 2008 20:37:48 +0000</pubDate>
		<guid isPermaLink="false">http://billburke.wordpress.com/?p=148#comment-2194</guid>
		<description><![CDATA[Since the registration at JBoss.com is onerous, and required for access to Jira for submitting bugs...  I figured I&#039;d stop by here and let you know about a couple I encountered with RESTeasy while I was evaluating the resteasy-jaxrs-1.0-beta-8 download.

I&#039;m deploying into a Tomcat 6.0.14 container.

1.  When I set the following in the web.xml deployment descriptor:

	
		resteasy.scan
		true
	

Upon starting the server I get the following error:

Oct 31, 2008 4:09:31 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
java.lang.RuntimeException: java.lang.ClassNotFoundException: org.jboss.resteasy.test.smoke.SimpleResource

Looks like a smoke test class is somehow being looked for - and not found by the bootstrapper.

2.  The download appears to be missing a required .jar file.  When starting up - RESTeasy looks for the javassist.jar;  I went ahead and downloaded a copy and dropped into the WEB-INF/lib directory of my project and everything worked fine.

In general though - things are looking pretty good - I&#039;m liking the JAX-RS specification (annotations) in general, and RESTeasy in particular.  Looking at Jersey and CXF as well;  both seem to be pushing EJB/JEE and/or Spring heavily.  I&#039;m still one of those people who likes to use the API separately - get comfy with it - and then see how I want to work persistence, and dependency injection into the mix.]]></description>
		<content:encoded><![CDATA[<p>Since the registration at JBoss.com is onerous, and required for access to Jira for submitting bugs&#8230;  I figured I&#8217;d stop by here and let you know about a couple I encountered with RESTeasy while I was evaluating the resteasy-jaxrs-1.0-beta-8 download.</p>
<p>I&#8217;m deploying into a Tomcat 6.0.14 container.</p>
<p>1.  When I set the following in the web.xml deployment descriptor:</p>
<p>		resteasy.scan<br />
		true</p>
<p>Upon starting the server I get the following error:</p>
<p>Oct 31, 2008 4:09:31 PM org.apache.catalina.core.StandardContext listenerStart<br />
SEVERE: Exception sending context initialized event to listener instance of class org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap<br />
java.lang.RuntimeException: java.lang.ClassNotFoundException: org.jboss.resteasy.test.smoke.SimpleResource</p>
<p>Looks like a smoke test class is somehow being looked for &#8211; and not found by the bootstrapper.</p>
<p>2.  The download appears to be missing a required .jar file.  When starting up &#8211; RESTeasy looks for the javassist.jar;  I went ahead and downloaded a copy and dropped into the WEB-INF/lib directory of my project and everything worked fine.</p>
<p>In general though &#8211; things are looking pretty good &#8211; I&#8217;m liking the JAX-RS specification (annotations) in general, and RESTeasy in particular.  Looking at Jersey and CXF as well;  both seem to be pushing EJB/JEE and/or Spring heavily.  I&#8217;m still one of those people who likes to use the API separately &#8211; get comfy with it &#8211; and then see how I want to work persistence, and dependency injection into the mix.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

