Vincent,

I tried the "Quickstart" app in order to trouble shoot Cactus+JBoss4, so
yes I've already taken a good part of the week to familiarize myself
with JUnit/Cactus with the help of your book (A BLESSING).

Using Tomcat is out of the question as I'm interested purely in testing
EJBs, but at this point I'm considering switching backwards to
JBoss3 :|.

That's correct, I'm using ServletTestRunner to start the tests. I've
compiled the Quickstart app with 1.3 servlet.jar, and... I've copied all
of the cactus jars in the WEB-INF/libs (just to be on the "safe" side,
but I doubt this is proper practise).

Here is the fool stack trace as reported by HTTP 500:

javax.servlet.ServletException: Wrapper cannot find servlet class
org.apache.cactus.server.runner.ServletTestRunner or a class it depends
on
        
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
        
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:150)
        
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
        
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
        org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
        
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
        
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
        
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
        
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        java.lang.Thread.run(Thread.java:595)

root cause 

java.lang.ClassNotFoundException: 
org.apache.cactus.server.runner.ServletTestRunner
        java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        java.security.AccessController.doPrivileged(Native Method)
        java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
        
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:150)
        
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
        
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
        org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
        
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
        
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
        
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
        
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        java.lang.Thread.run(Thread.java:595)

The error reported is different from the one I got before copying all of the 
cactus libs to WEB-INF/lib,
it can at least find HttpServlet! ;)

Any ideas? Merci,
Mike

On Wed, 2005-03-23 at 21:00 +0100, Vincent Massol wrote:
> Hi Mike,
> 
> If you really want to try the tutorial as is without surprise I recommend
> using the suggest container, i.e. Tomcat 4.x (this is the first note of the
> page: "This tutorial applies to Cactus 1.4 or greater and Tomcat 4.0 or
> greater.").
> 
> Now if you're already familiar with Cactus and you want to make it work with
> JBoss 4.0 I have no idea but your problem seem to be one of classpath.
> 
> In order to help you we would need the full stack trace.
> 
> You're using the ServletTestRunner to start the Cactus tests, right?
> Are you using the J2EE 1.4 API or the 1.3 one (Cactus currently supports the
> 1.3 one only even though we have started implementing it for 1.4 and it's in
> 1.7 but it's not tested and not officially supported).
> 
> Also, make sure you copy *all* Cactus-required libraries (for example the
> commons-httpclient version used in Cactus may be a newer version than the
> one shipped with JBoss 4.0.1).
> 
> Thanks
> -Vincent



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to