jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Ferguson" <william.fergu...@hubbub.com.au>
Subject NoClassDefFoundError running cactus Ant Task
Date Wed, 01 Feb 2006 05:18:09 GMT
Hi,

I've created an Ear using the cactifyear Ant Task and have deployed it
to Weblogic 8.1 and started the server. When I run the cactus Ant task,
it hist the RedirectorServlet on WLS but then dies with
NoClassDefFoundError: org/apache/cactus/ServletTestCase (full stacktrace
to follow).

The cactus war that has been added to the Ear contains the
cactus-1.7.1.jar in WEB-INF/lib (as well as all the other Cactus jars).

William


   [cactus] Testcase:
testGetMergedDocument(au.com.hubbub.consol.beans.appservice.ejb.AppServi
ceTest):  Caused an ERROR
   [cactus] org/apache/cactus/ServletTestCase
   [cactus] java.lang.NoClassDefFoundError:
org/apache/cactus/ServletTestCase
   [cactus]     at java.lang.ClassLoader.defineClass0(Native Method)
   [cactus]     at
java.lang.ClassLoader.defineClass(ClassLoader.java:537)
   [cactus]     at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
   [cactus]     at
weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericCla
ssLoader.java:476)
   [cactus]     at
weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoa
der.java:181)
   [cactus]     at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
   [cactus]     at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
   [cactus]     at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
   [cactus]     at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoa
der.java:223)
   [cactus]     at
weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAware
ClassLoader.java:41)
   [cactus]     at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
   [cactus]     at java.lang.Class.forName0(Native Method)
   [cactus]     at java.lang.Class.forName(Class.java:219)
   [cactus]     at
org.apache.cactus.internal.util.ClassLoaderUtils.loadClassFromContextCla
ssLoader_aroundBody2(ClassLoaderUtils.java:78)
   [cactus]     at
org.apache.cactus.internal.util.ClassLoaderUtils.loadClassFromContextCla
ssLoader_aroundBody3$advice(ClassLoaderUtils.java:246)
   [cactus]     at
org.apache.cactus.internal.util.ClassLoaderUtils.loadClassFromContextCla
ssLoader(ClassLoaderUtils.java)
   [cactus]     at
org.apache.cactus.internal.util.ClassLoaderUtils.loadClass_aroundBody0(C
lassLoaderUtils.java:61)
   [cactus]     at
org.apache.cactus.internal.util.ClassLoaderUtils.loadClass_aroundBody1$a
dvice(ClassLoaderUtils.java:246)
   [cactus]     at
org.apache.cactus.internal.util.ClassLoaderUtils.loadClass(ClassLoaderUt
ils.java)
   [cactus]     at
org.apache.cactus.internal.server.AbstractWebTestCaller.getTestClassClas
s(AbstractWebTestCaller.java:485)
   [cactus]     at
org.apache.cactus.internal.server.AbstractWebTestCaller.getTestClassInst
ance(AbstractWebTestCaller.java:384)
   [cactus]     at
org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractW
ebTestCaller.java:109)
   [cactus]     at
org.apache.cactus.internal.server.AbstractWebTestController.handleReques
t_aroundBody0(AbstractWebTestController.java:93)
   [cactus]     at
org.apache.cactus.internal.server.AbstractWebTestController.handleReques
t_aroundBody1$advice(AbstractWebTestController.java:217)
   [cactus]     at
org.apache.cactus.internal.server.AbstractWebTestController.handleReques
t(AbstractWebTestController.java)
   [cactus]     at
org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(Servle
tTestRedirector.java:101)
   [cactus]     at
org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice
(ServletTestRedirector.java:217)
   [cactus]     at
org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirec
tor.java)
   [cactus]     at
org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(Servlet
TestRedirector.java:72)
   [cactus]     at
org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(
ServletTestRedirector.java:217)
   [cactus]     at
org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirect
or.java)
   [cactus]     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   [cactus]     at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   [cactus]     at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
rvletStubImpl.java:996)
   [cactus]     at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java:419)
   [cactus]     at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java:315)
   [cactus]     at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un(WebAppServletContext.java:
6456)
   [cactus]     at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bject.java:321)
   [cactus]     at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
)
   [cactus]     at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
etContext.java:3661)
   [cactus]     at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
java:2630)
   [cactus]     at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
   [cactus]     at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)


   [cactus] TEST
au.com.hubbub.consol.beans.appservice.ejb.AppServiceTest FAILED



Mime
View raw message