jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Lenz <cml...@gmx.de>
Subject Re: java.lang.NoClassDefFoundError: org/apache/cactus/ServletTestCase problem again.
Date Thu, 24 Apr 2003 07:38:14 GMT
Hi Karthik,

isn't junit.har missing in WEB-INF/lib?

karthik Guru wrote:
> I understand it is a very common problem reported here. I got cactus to 
> work with our product and now while setting it up for the other, i ran 
> into this issue.
> 
> this is how my war file is structured:
> 
> WEB-INF/lib:
>   cactus.jar
>   aspectjrt.jar
>   commons-logging1.0.jar
>   httpclient.jar
>   testinfra.jar
>   tests.jar
> 
> tests.jar has all the tests.
> testinfra.jar has the BaseTestCase (from which all the tests inherit.) + 
> some utilities
> There is no Class-Path attribute defined in testinfra.jar and tests.jar 
> manifests. I assume that everything will get picked up from the 
> WEB-INF/lib folder.
> 
> I get the NoClassDefFoundError when i run my tests.
> Any idea as to why the cactus.jar is not getting picked up from web-inf\lib.
> 
> java.lang.NoClassDefFoundError: org/apache/cactus/ServletTestCase
> at java.lang.ClassLoader.defineClass0(Native Method)
> 
> at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
> 
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
> 
> at 
> weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:394)
> 
> at 
> weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:157)
> 
> at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
> 
> at java.lang.ClassLoader.loadClass(ClassLoader.java:287)
> 
> at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
> 
> at 
> weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:47)
> 
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
> 
> at java.lang.ClassLoader.defineClass0(Native Method)
> 
> at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
> 
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
> 
> at 
> weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:394)
> 
> at weblogic.utils.classloaders.GenericClassLoader.findCla

-- 
Christopher Lenz
/=/ cmlenz at gmx.de


Mime
View raw message