3 Replies Latest reply on Aug 24, 2011 12:17 AM by jaikiran

    apache commons httpclient and logging

    michael.degols

      Hi all,

       

      Why apache commons httpclient and logging (only module.xml file) libraries are not bundled with JBoss AS 7 ?

      These libraries are dependencies of Resteasy.

       

      Thanks

      Michael

        • 1. Re: apache commons httpclient and logging
          gonne

          Hi Michael,

           

          I am not sure if I understand your question right. I have not used resteasy so far, but if I look in the modules folders and the module.xml for resteasy I can see the httpclient-4.1.1.jar and a dependency to commons-logging implemented by jcl-over-slf4j.

          What exactly is your problem?

           

          Kind regards,

          Gonne

          • 2. Re: apache commons httpclient and logging
            michael.degols

            Hi Gonne and thanks for the answer.

            I have a java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMethodBase with JBoss AS 7.0.1.

            Apparently JBoss is bundled with the new version of apache httpclient (org.apache.httpcomponents.httpclient) but it looks like Resteasy is still using the old apache commons httpclient library which is not bundled in AS 7...

             

            Kind Regards,

            Michael

            • 3. Re: apache commons httpclient and logging
              jaikiran

              Can you please post the entire exception stacktrace and more details about when the exception occurs?