jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rademacher Tobias <Tobias.Rademac...@grob.de>
Subject [ServletTestCase in JBoss-Catalina] Strange problems with Server Side Classpath
Date Thu, 26 Sep 2002 07:20:41 GMT
Hi Folks,

I'm getting an error with Cactus 1.4.1 and the server side classpath.

I'm using JBoss 3.0 and Tomcat 4.0.3.

My ear contains a war that contains the war ins following structure

WEB-INF\lib\aspectjrt-1.0.5.jar
WEB-INF\lib\cactus-1.4.jar
WEB-INF\lib\commons-loggin.jar
WEB-INF\lib\commons-beanutils.jar
WEB-INF\lib\commons-collections.jar
WEB-INF\lib\commons-dbcp.jar
WEB-INF\lib\commons-digester.jar
WEB-INF\lib\commons-fileupload.jar
WEB-INF\lib\commons-lang.jar
WEB-INF\lib\commons-logging.jar
WEB-INF\lib\commons-pool.jar
WEB-INF\lib\commons-resources.jar
WEB-INF\lib\commons-services.jar
WEB-INF\lib\commons-validator.jar
WEB-INF\lib\struts.jar
WEB-INF\lib\tiles.jar
WEB-INF\lib\strutstest.jar
WEB-INF\lib\jboss-j2ee.jar
WEB-INF\lib\<my-jar-with-actions>.jar
WEB-INF\lib\junit-3.7.jar
WEB-INF\lib\log4j-1.2.5.jar
WEB-INF\lib\httpunit-1.4.1.jar

Suprisingly my StrutsTestCases and my JSPTestCases work fine (running from
ant).
I use ServletTestCases to test my EJB's with LocalInterfaces.
But all of them throw the following exception within the container 
( note that I'm verified this using ServletTestRunner):

java.lang.NoClassDefFoundError: org/apache/cactus/ServletTestCase
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
	at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
	at
org.jboss.mx.loading.UnifiedClassLoader.findClass(UnifiedClassLoader.java:22
7)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
	at
org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClassLoader.
java:235)
	at
org.jboss.mx.loading.UnifiedLoaderRepository.loadClassFromRepository(Unified
LoaderRepository.java:387)
	at
org.jboss.mx.loading.UnifiedLoaderRepository.loadClass(UnifiedLoaderReposito
ry.java:146)
	at
org.jboss.mx.loading.UnifiedClassLoader.loadClass(UnifiedClassLoader.java:28
5)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
	at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:566)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1343)
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1243)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:217)

What did I wrong?

Thx for your help.
Bye
Toby

--
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