8 Replies Latest reply on Nov 25, 2011 2:40 PM by badr elhouari

    java.lang.ClassNotFoundException: org.apache.commons.httpclient.HttpMethod from [Module "org.jboss.resteasy.resteasy-jaxrs:main"

    kumaran d Newbie

      I am using RestEasy's clientRequest class to invoke an REST Service  when i deploy the application in JBoss 7 AS i am getting the following Exception.

       

       

      15:16:03,587 INFO  [stdout] (Camel (dcCamelContext) thread #1 - JmsConsumer[rwsdk-extd844)  ... 100 more

      15:16:03,587 INFO  [stdout] (Camel (dcCamelContext) thread #1 - JmsConsumer[rwsdk-extd844) Caused by: java.lang.ClassNotFoundException: org.apache.commons.httpclient.HttpMethod from [Module "org.jboss.resteasy.resteasy-jaxrs:main" from local module loader @ba5bdb (roots: D:\Project\jboss-as-7.0.0.Final\modules)]

      15:16:03,587 INFO  [stdout] (Camel (dcCamelContext) thread #1 - JmsConsumer[rwsdk-extd844)  at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
      15:16:03,587 INFO  [stdout] (Camel (dcCamelContext) thread #1 - JmsConsumer[rwsdk-extd844)  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
      15:16:03,587 INFO  [stdout] (Camel (dcCamelContext) thread #1 - JmsConsumer[rwsdk-extd844)  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
      15:16:03,587 INFO  [stdout] (Camel (dcCamelContext) thread #1 - JmsConsumer[rwsdk-extd844)  at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
      15:16:03,587 INFO  [stdout] (Camel (dcCamelContext) thread #1 - JmsConsumer[rwsdk-extd844)  at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
      15:16:03,587 INFO  [stdout] (Camel (dcCamelContext) thread #1 - JmsConsumer[rwsdk-extd844)  ... 114 more

       

      in my application war i have the httpclient-4.1.jar

       

      Is it a bug in JBoss 7 AS ?? is there any work around to overcome the issue.