-
Bug
-
Resolution: Done
-
Major
-
None
-
2.1.0.GA, 2.2.1
-
-
Compatibility/Configuration
-
When trying to use the org.jboss.resteasy.client.ClientRequest object in a Servlet client running on JBossAS 6.0.0.Final I am getting the following exception:
14:41:53,964 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/rjbRSClient].[CustomerAtomResourceClient]] Servlet.service() for servlet CustomerAtomResourceClient threw exception: java.lang.ClassNotFoundException: org.apache.commons.httpclient.HttpMethod from BaseClassLoader@16999c8
{vfs:///C:/jboss-6.0.0.GA_WS-native/server/default/deployers/resteasy.deployer} at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:480) [jboss-classloader.jar:2.2.0.GA]
at java.lang.ClassLoader.loadClass(Unknown Source) [:1.6.0_21]
at java.lang.Class.getDeclaredConstructors0(Native Method) [:1.6.0_21]
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) [:1.6.0_21]
at java.lang.Class.getConstructor0(Unknown Source) [:1.6.0_21]
at java.lang.Class.newInstance0(Unknown Source) [:1.6.0_21]
at java.lang.Class.newInstance(Unknown Source) [:1.6.0_21]
at org.jboss.resteasy.client.ClientRequest.createDefaultExecutorInstance(ClientRequest.java:115) [:6.0.0.Final]
at org.jboss.resteasy.client.ClientRequest.getDefaultExecutor(ClientRequest.java:94) [:6.0.0.Final]
at org.jboss.resteasy.client.ClientRequest.<init>(ClientRequest.java:125) [:6.0.0.Final]
at rjb.rest.client.resteasy.CustomerAtomResourceClient.doPost(CustomerAtomResourceClient.java:47) [:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]
at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]
at java.lang.Thread.run(Unknown Source) [:1.6.0_21]
I believe this has to do with a dependence that exists in the resteasy-jaxrs-2.1.0.GA.jar that ships in the JBossAS 6.0.0.Final server.