<div dir="ltr">What TCCL is set when you are creating the client/client builder ? AFAIK Resteasy will use the TCCL to look for providers in this case, so if it is not set to your modules TCCL you may have problems.<br><div><br></div><div>Stuart</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 8 Jun 2015 at 19:41 Josh Kinlaw &lt;<a href="mailto:jkinlaw@redhat.com">jkinlaw@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Wildfly,<br>
<br>
I am running into what appears to be a module.xml issue. I am using resteasy to post a multipart/form-data entity but am running into the following exception at runtime:<br>
<br>
12:56:34,869 ERROR [stderr] (Thread-91) <a href="http://javax.ws.rs" target="_blank">javax.ws.rs</a>.ProcessingException: Unable to invoke request<br>
12:56:34,869 ERROR [stderr] (Thread-91)         at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:287)<br>
12:56:34,870 ERROR [stderr] (Thread-91)         at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:407)<br>
12:56:34,870 ERROR [stderr] (Thread-91)         at org.jboss.resteasy.client.jaxrs.internal.ClientInvocationBuilder.post(ClientInvocationBuilder.java:195)<br>
12:56:34,870 ERROR [stderr] (Thread-91)         at com.redhat.gss.redhat_support_lib.infrastructure.BaseQuery.upload(BaseQuery.java:169)<br>
12:56:34,870 ERROR [stderr] (Thread-91)         at org.jboss.as.telemetry.extension.TelemetryService.sendJdr(TelemetryService.java:354)<br>
12:56:34,870 ERROR [stderr] (Thread-91)         at org.jboss.as.telemetry.extension.TelemetryService.access$300(TelemetryService.java:34)<br>
12:56:34,871 ERROR [stderr] (Thread-91)         at org.jboss.as.telemetry.extension.TelemetryService$1.run(TelemetryService.java:120)<br>
12:56:34,871 ERROR [stderr] (Thread-91) Caused by: <a href="http://javax.ws.rs" target="_blank">javax.ws.rs</a>.ProcessingException: could not find writer for content-type multipart/form-data type: org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataOutput<br>
12:56:34,871 ERROR [stderr] (Thread-91)         at org.jboss.resteasy.core.interception.ClientWriterInterceptorContext.throwWriterNotFoundException(ClientWriterInterceptorContext.java:40)<br>
12:56:34,871 ERROR [stderr] (Thread-91)         at org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.getWriter(AbstractWriterInterceptorContext.java:138)<br>
12:56:34,871 ERROR [stderr] (Thread-91)         at org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.proceed(AbstractWriterInterceptorContext.java:117)<br>
12:56:34,871 ERROR [stderr] (Thread-91)         at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.writeRequestBody(ClientInvocation.java:341)<br>
12:56:34,872 ERROR [stderr] (Thread-91)         at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.writeRequestBodyToOutputStream(ApacheHttpClient4Engine.java:558)<br>
12:56:34,872 ERROR [stderr] (Thread-91)         at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.buildEntity(ApacheHttpClient4Engine.java:524)<br>
12:56:34,872 ERROR [stderr] (Thread-91)         at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.loadHttpMethod(ApacheHttpClient4Engine.java:423)<br>
12:56:34,872 ERROR [stderr] (Thread-91)         at org.jboss.resteasy.client.jaxrs.engines.ApacheHttpClient4Engine.invoke(ApacheHttpClient4Engine.java:281)<br>
12:56:34,872 ERROR [stderr] (Thread-91)         ... 6 more<br>
<br>
I&#39;m including resteasy-multipart-provider in my submodule&#39;s pom and module.xml and if I run the unit tests for the submodule (redhat-support-lib) everything passes. This leads me to believe it is an issue with the module.xml of either resteasy-multipart-provider or redhat-support-lib. Below are the module.xml&#39;s:<br>
<br>
resteasy-multipart-provider:<br>
<br>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
<br>
&lt;module xmlns=&quot;urn:jboss:module:1.3&quot; name=&quot;org.jboss.resteasy.resteasy-multipart-provider&quot;&gt;<br>
<br>
    &lt;resources&gt;<br>
        &lt;resource-root path=&quot;resteasy-multipart-provider-3.0.11.Final.jar&quot;/&gt;<br>
    &lt;/resources&gt;<br>
<br>
    &lt;dependencies&gt;<br>
        &lt;module name=&quot;javax.xml.bind.api&quot;/&gt;<br>
        &lt;module name=&quot;javax.api&quot;/&gt;<br>
        &lt;module name=&quot;javax.enterprise.api&quot;/&gt;<br>
        &lt;module name=&quot;javax.mail.api&quot;/&gt;<br>
        &lt;module name=&quot;javax.servlet.api&quot;/&gt;<br>
        &lt;module name=&quot;javax.ws.rs.api&quot;/&gt;<br>
        &lt;module name=&quot;org.apache.james.mime4j&quot;/&gt;<br>
        &lt;module name=&quot;org.jboss.resteasy.resteasy-jaxb-provider&quot;/&gt;<br>
        &lt;module name=&quot;org.jboss.resteasy.resteasy-jaxrs&quot;/&gt;<br>
        &lt;module name=&quot;org.jboss.resteasy.tjws&quot;/&gt;<br>
    &lt;/dependencies&gt;<br>
&lt;/module&gt;<br>
<br>
<br>
redhat-support-lib:<br>
<br>
&lt;module xmlns=&quot;urn:jboss:module:1.0&quot; name=&quot;com.redhat.gss.redhat-support-lib&quot;&gt;<br>
    &lt;resources&gt;<br>
        &lt;resource-root path=&quot;jboss-redhat-support-lib.jar&quot;/&gt;<br>
    &lt;/resources&gt;<br>
<br>
    &lt;dependencies&gt;<br>
        &lt;module name=&quot;javax.api&quot;/&gt;<br>
        &lt;module name=&quot;javax.ws.rs.api&quot;/&gt;<br>
        &lt;module name=&quot;javax.net.ssl&quot;/&gt;<br>
        &lt;module name=&quot;<a href="http://org.apache.commons.net" target="_blank">org.apache.commons.net</a>&quot;/&gt;<br>
        &lt;module name=&quot;org.apache.httpcomponents&quot;/&gt;<br>
        &lt;module name=&quot;org.jboss.staxmapper&quot;/&gt;<br>
        &lt;module name=&quot;org.jboss.as.controller&quot;/&gt;<br>
        &lt;module name=&quot;org.jboss.as.server&quot;/&gt;<br>
        &lt;module name=&quot;org.jboss.modules&quot;/&gt;<br>
        &lt;module name=&quot;org.jboss.msc&quot;/&gt;<br>
        &lt;module name=&quot;org.jboss.logging&quot;/&gt;<br>
        &lt;module name=&quot;org.jboss.resteasy.resteasy-multipart-provider&quot; services=&quot;export&quot; export=&quot;true&quot;/&gt;<br>
        &lt;module name=&quot;org.jboss.resteasy.resteasy-jaxrs&quot;/&gt;<br>
        &lt;module name=&quot;org.jboss.vfs&quot;/&gt;<br>
    &lt;/dependencies&gt;<br>
&lt;/module&gt;<br>
<br>
<br>
I&#39;m a little stuck at this point. Does anyone have any ideas? My git repo is at <a href="https://github.com/Kinlaw/wildfly/tree/telemetry" target="_blank">https://github.com/Kinlaw/wildfly/tree/telemetry</a>.<br>
<br>
Josh Kinlaw<br>
<br>
<br>
_______________________________________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
</blockquote></div>