Hi Mark! don't know, do you use a seperated Test-WAR for your cactus-testclasses? And perhaps you put your test-classes in the archive you want to test, too?
Then the following problem occures: 1/ The ServletTestCase (in Test-WAR) calls the AbstractTestCaller 2/ AbstractTestCaller loads the test-classes in your archive 3/ The test-class will not found the ServletTestCase, cause WARs are not accessible from outside. Put your test-classes only in the Test-WAR, then your test-class will found the Servlet again. Hope it helps. jm (http://www.jmr77.de) -----Urspr�ngliche Nachricht----- Von: Volkmann, Mark [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 15. Februar 2002 17:51 An: '[EMAIL PROTECTED]' Betreff: java.lang.NoClassDefFoundError: org/apache/cactus/ServletTestCase Here's part of the stack trace I'm getting. cactus.jar, junit.jar and aspectjrt.jar are in the WEB-INF/lib of the WAR file of my web application. They are not available through my CLASSPATH. How could it find AbstractTestCaller, but not find ServletTestCase? java.lang.NoClassDefFoundError: org/apache/cactus/ServletTestCase at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLo ader.java:339) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader. java:156) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at java.lang.ClassLoader.loadClass(ClassLoader.java:290) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClas sLoader.java:43) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.cactus.server.AbstractTestCaller.getTestClassClass(AbstractTestCa ller.java:326) **************************************************************************** *********** WARNING: All e-mail sent to and from this address will be received or otherwise recorded by the A.G. Edwards corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. **************************************************************************** *********** -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
