jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rauen, Jens Martin" <JensMartin.Ra...@otto.de>
Subject RE: java.lang.NoClassDefFoundError: org/apache/cactus/ServletTest Case
Date Mon, 18 Feb 2002 10:03:50 GMT
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:Mark.Volkmann@AGEDWARDS.com]
Gesendet: Freitag, 15. Februar 2002 17:51
An: 'cactus-user@jakarta.apache.org'
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:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>


Mime
View raw message