<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 <<a href="mailto:jkinlaw@redhat.com">jkinlaw@redhat.com</a>> 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'm including resteasy-multipart-provider in my submodule'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's:<br>
<br>
resteasy-multipart-provider:<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<br>
<module xmlns="urn:jboss:module:1.3" name="org.jboss.resteasy.resteasy-multipart-provider"><br>
<br>
<resources><br>
<resource-root path="resteasy-multipart-provider-3.0.11.Final.jar"/><br>
</resources><br>
<br>
<dependencies><br>
<module name="javax.xml.bind.api"/><br>
<module name="javax.api"/><br>
<module name="javax.enterprise.api"/><br>
<module name="javax.mail.api"/><br>
<module name="javax.servlet.api"/><br>
<module name="javax.ws.rs.api"/><br>
<module name="org.apache.james.mime4j"/><br>
<module name="org.jboss.resteasy.resteasy-jaxb-provider"/><br>
<module name="org.jboss.resteasy.resteasy-jaxrs"/><br>
<module name="org.jboss.resteasy.tjws"/><br>
</dependencies><br>
</module><br>
<br>
<br>
redhat-support-lib:<br>
<br>
<module xmlns="urn:jboss:module:1.0" name="com.redhat.gss.redhat-support-lib"><br>
<resources><br>
<resource-root path="jboss-redhat-support-lib.jar"/><br>
</resources><br>
<br>
<dependencies><br>
<module name="javax.api"/><br>
<module name="javax.ws.rs.api"/><br>
<module name="javax.net.ssl"/><br>
<module name="<a href="http://org.apache.commons.net" target="_blank">org.apache.commons.net</a>"/><br>
<module name="org.apache.httpcomponents"/><br>
<module name="org.jboss.staxmapper"/><br>
<module name="org.jboss.as.controller"/><br>
<module name="org.jboss.as.server"/><br>
<module name="org.jboss.modules"/><br>
<module name="org.jboss.msc"/><br>
<module name="org.jboss.logging"/><br>
<module name="org.jboss.resteasy.resteasy-multipart-provider" services="export" export="true"/><br>
<module name="org.jboss.resteasy.resteasy-jaxrs"/><br>
<module name="org.jboss.vfs"/><br>
</dependencies><br>
</module><br>
<br>
<br>
I'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>