jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alderman, Rachel" <rgronh...@netperceptions.com>
Subject NoClassDefFoundError httpclient
Date Wed, 20 Mar 2002 18:50:39 GMT
I'm trying to get my testcases that use cactus to run on tomcat 4.0 using
ant.  I create a warfile for my test classes.  In its WEB-INF/lib directory,
I include the cactus, junit and httpclient jars.

This is my tests target in my build file:
  <target name="tests">
    <junit printsummary="yes" haltonfailure="yes" fork="yes">
      <classpath>
        <pathelement location="${third.party.dir}/lib/servlet.jar"/>
        <pathelement location="${third.party.dir}/lib/cactus.jar"/>
        <pathelement location="${third.party.dir}/lib/junit.jar}"/>
        <pathelement location="${third.party.dir}/lib/httpclient.jar}"/>
        <pathelement location="${build.classes.test}"/>
        <pathelement path="${java.class.path}"/>
      </classpath>
      <formatter type="plain" usefile="false"/>
      <test
name="com.netperceptions.gui.account.test.AccountControllerTest"/>
    </junit>
  </target>

This is my error when building:
    [junit] org/apache/commons/httpclient/NameValuePair
    [junit] java.lang.NoClassDefFoundError:
org/apache/commons/httpclient/NameValuePair
    [junit]     at
org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.java:1
23)
    [junit]     at
org.apache.cactus.AbstractTestCase.runGenericTest(AbstractTestCase.java:422)
    [junit]     at
org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:130)
    [junit]     at
org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:371)
    [junit]     at junit.framework.TestResult$1.protect(TestResult.java:106)
    [junit]     at
junit.framework.TestResult.runProtected(TestResult.java:124)
    [junit]     at junit.framework.TestResult.run(TestResult.java:109)
    [junit]     at junit.framework.TestCase.run(TestCase.java:131)
    [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:173)
    [junit]     at junit.framework.TestSuite.run(TestSuite.java:168)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu
nner.java:231)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
unner.java:409)
    [junit]

Any advice would be appreciated.  
Thanks.
Rachel

--
To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>


Mime
View raw message