Hi Sriram, Yes, you need to have the cactus jars, test case classes and classes under test in the same webapp as different webapp do not share classloaders.
WRT the log4j issue, can you post the stack trace you're getting and can you tell us what version o f Log4J you're using. Cactus is not using any advanced feature of Log4J so I guess we could easily ensure it works will all versions of log4j, which would solve your problem, right ? Thanks -Vincent > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > On Behalf Of Sriram Chavali > Sent: 25 January 2002 23:09 > To: [EMAIL PROTECTED] > Subject: ServletException > > I am trying to use cactus 1.3 under Websphere 4.0. My Enterprise > application consists of 3 web apps. One of these webapps is cactus. I > have written a test case for a servlet in one of the other web apps (say > myApp1). When I try to invoke the test case, I see the following > exceptions. Do I need to have CactusRedirectorServlet deployed under > myApp1 ? The reason I had to deploy cactus in a separate web app is that > myApp1 uses an earlier version of log4j. I hit a bunch of > java.lang.NoSuchMethodException(s) in code from myApp1 thru possibly > deprecated log4j calls if I deploy them in the same web app. > > Whats the solution to my problem ? > > Sriram > > javax.servlet.ServletException: Error finding class > [com.LM.accelis.servlet.LMSearchFormServletTest] in classpath. If you > are getting this message Cactus may not be able to see your test cases. > > Possible causes include: > > - Your webapp may not include your test classes, > > - The cactus.jar resides in a global location and your test classes > reside in a specific webapp, > > - Something else ... ! > > at > org.apache.cactus.server.AbstractTestCaller.getTestClassClass(AbstractTe st > Caller.java:339) > > at > org.apache.cactus.server.AbstractTestCaller.getTestClassInstance(Abstrac tT > estCaller.java:298) > > at > org.apache.cactus.server.AbstractTestCaller.doTest(AbstractTestCaller.ja va > :128) > > at > org.apache.cactus.server.AbstractTestController.handleRequest$ajcPostAro un > d7(LogAspect.java(1k):120) > > at > org.apache.cactus.server.AbstractTestController.handleRequest$ajcPostAro un > d7$ajcVoidWrapper(LogAspect.java(1k)) > > at > org.apache.cactus.server.AbstractTestController.handleRequest(LogAspect. ja > va(1k):1135) > > at > org.apache.cactus.server.ServletTestRedirector.doPost$ajcPostAround10(Lo gA > spect.java(1k):131) > > at > org.apache.cactus.server.ServletTestRedirector.doPost$ajcPostAround10$aj cV > oidWrapper(LogAspect.java(1k)) > > at > org.apache.cactus.server.ServletTestRedirector.doPost(LogAspect.java(1k) :1 > 135) > > at > org.apache.cactus.server.ServletTestRedirector.doGet$ajcPostAround6(LogA sp > ect.java(1k):105) > > at > org.apache.cactus.server.ServletTestRedirector.doGet$ajcPostAround6$ajcV oi > dWrapper(LogAspect.java(1k)) > > at > org.apache.cactus.server.ServletTestRedirector.doGet(LogAspect.java(1k): 11 > 35) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > at > com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletMan ag > er.java:827) > > at > com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLife cy > cleServlet.java:159) > > at > com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleSe rv > let.java:286) > > at > com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifec yc > leServlet.java:106) > > at > com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.jav a: > 472) > > at > com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(Servle tM > anager.java:1012) > > at > com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletM an > ager.java:913) > > at > com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispat ch > (WebAppRequestDispatcher.java:499) > > at > com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppReq ue > stDispatcher.java:278) > > at > com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequ es > tDispatcher.java:105) > > at > com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:67 ) > > at > com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvo ke > r.java:123) > > at > com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(Cach ed > Invocation.java:67) > > at > com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cach ea > bleInvocationContext.java:106) > > at > com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(Servlet Re > questProcessor.java:125) > > at > com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEList en > er.java:315) > > at > com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnectio n. > java:60) > > at > com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java: 31 > 3) > > at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:242) > > at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122) > > > > > -- > To unsubscribe, e-mail: <mailto:cactus-user- > [EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:cactus-user- > [EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
