1 Reply Latest reply on Aug 20, 2008 3:58 AM by Thomas Peeters

    NoClassDefFoundError : Hostconfiguration (httpclient)

    Thomas Peeters Newbie

      Hey everyone,

      While trying to get my first JSFUnit testclass to work I encountered this problem. This is the 2nd noClassDefError in a row, the first one proved to have a simple solution, downloading commons-httpclient. The missing class was one of those.
      But now one of the missing classes is also one that belongs in that package, but it is not there. Does anyone know where I can find it?

      These are my Maven2 dependencies, note that for httpunit I originally had a different one which misses HostConfiguration.java

      I included the stacktrace from the cactus-report.

      Thanks :)

      <dependency>
       <groupId>aspectj</groupId>
       <artifactId>aspectjrt</artifactId>
       <version>1.5.4</version>
       </dependency>
       <dependency>
       <groupId>cactus</groupId>
       <artifactId>cactus-maven</artifactId>
       <version>1.7dev-20040815</version>
       </dependency>
       <dependency>
       <groupId>cactus</groupId>
       <artifactId>cactus</artifactId>
       <version>13-1.7.2</version>
       </dependency>
       <dependency>
       <groupId>jtidy</groupId>
       <artifactId>jtidy</artifactId>
       <version>4aug2000r7-dev</version>
       </dependency>
       <dependency>
       <groupId>org.jboss.jsfunit</groupId>
       <artifactId>jboss-jsfunit-core</artifactId>
       <version>1.0.0.Beta2</version>
       </dependency>
       <dependency>
       <groupId>org.apache.httpcomponents</groupId>
       <artifactId>jakarta-httpcore</artifactId>
       <version>4.0-alpha4</version>
       </dependency>
      <dependency> (note: this one does not contain HostConfiguration.java)
       <groupId>commons-httpclient</groupId>
       <artifactId>commons-httpclient</artifactId>
       <version>20020423</version>
      </dependency>
      
      


      org/apache/commons/httpclient/HostConfiguration

      java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HostConfiguration
      at org.apache.cactus.internal.client.connector.http.HttpClientConnectionHelper.connect_aroundBody0(HttpClientConnectionHelper.java:138)
      at org.apache.cactus.internal.client.connector.http.HttpClientConnectionHelper.connect_aroundBody1$advice(HttpClientConnectionHelper.java:306)
      at org.apache.cactus.internal.client.connector.http.HttpClientConnectionHelper.connect(Lorg.apache.cactus.WebRequest;Lorg.apache.cactus.internal.configuration.Configuration;)Ljava.net.HttpURLConnection;(HttpClientConnectionHelper.java:???)
      at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.callRunTest(DefaultHttpClient.java:162)
      at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHttpClient.java:80)
      at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultHttpClient.java:306)
      at org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest(Lorg.apache.cactus.WebRequest;)Ljava.net.HttpURLConnection;(DefaultHttpClient.java:???)
      at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runWebTest(HttpProtocolHandler.java:159)
      at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody0(HttpProtocolHandler.java:80)
      at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest_aroundBody1$advice(HttpProtocolHandler.java:306)
      at org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTest(Ljunit.framework.Test;Ljunit.framework.Test;Lorg.apache.cactus.Request;)Lorg.apache.cactus.spi.client.connector.ProtocolState;(HttpProtocolHandler.java:???)
      at org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestCaseCaller.java:144)
      at org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCactusTestCase.java:215)
      at org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTestCase.java:133)
      at org.apache.cactus.server.runner.ServletTestRunner.run(ServletTestRunner.java:308)
      at org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody0(ServletTestRunner.java:186)
      at org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody1$advice(ServletTestRunner.java:224)
      at org.apache.cactus.server.runner.ServletTestRunner.doGet(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(ServletTestRunner.java:???)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      at org.jboss.jsfunit.framework.JSFUnitFilter.doFilter(JSFUnitFilter.java:122)