You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Maria Sole Franzin <ma...@allos.it> on 2003/05/13 17:42:59 UTC
R: RE: Testing EJB - Newbie: please help
Hi all,
i'm a new "cactus user", and i'm trying the "testing ejb" using jbuilder
5 for the webapp.
I read the thread about these tests, and I saw there're many problems.
Well, I read all the possible "howto" slides, but i've problems on
configuring the classpath.
Perhaps I missed something.
This is the error i get typing on the browser:
http://localhost:8080/cactuswebapp/ServletTestRunner?suite=testcactus.Co
nverterTest
javax.servlet.ServletException: Failed to load test suite
[testcactus.ConverterTest], Reason is [Class not found
"testcactus.ConverterTest"]
at
org.apache.cactus.server.runner.ServletTestRunner.dispatch92_run(Servlet
TestRunner.java;org/apache/cactus/util/log/LogAspect.java(1k):157)
at
org.apache.cactus.server.runner.ServletTestRunner.around92_run(ServletTe
stRunner.java;org/apache/cactus/util/log/LogAspect.java(1k):1218)
at
org.apache.cactus.server.runner.ServletTestRunner.run(ServletTestRunner.
java;org/apache/cactus/util/log/LogAspect.java(1k):137)
at
org.apache.cactus.server.runner.ServletTestRunner.dispatch91_doGet(Servl
etTestRunner.java;org/apache/cactus/util/log/LogAspect.java(1k):121)
at
org.apache.cactus.server.runner.ServletTestRunner.around91_doGet(Servlet
TestRunner.java;org/apache/cactus/util/log/LogAspect.java(1k):1149)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunne
r.java;org/apache/cactus/util/log/LogAspect.java(1k):101)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
ttpConnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49
8)
at java.lang.Thread.run(Thread.java:484)
this error happends many times, with or without the cactus.proprties
file log4j.properties and the client classpath setted (i'm not at all
sure i did it in the right way.... may someone give me an example?).
then, it's really important to set che test file in the classpath, but
the class file or the java one? Or simply the name of the file????
thanks in advance
Maria Sole
RE: RE: Testing EJB - Newbie: please help
Posted by Vincent Massol <vm...@pivolis.com>.
Hi Maria
Not sure what your problem is. The first thing I would check is to make
sure you have a WEB-INF/classes/testcactus/ConverTest.class file in your
cactuswebapp webapp. If not there then it's normal the Cactus runner is
not able to load it.
Thanks
-Vincent
-----Original Message-----
From: Maria Sole Franzin [mailto:mariasole.franzin@allos.it]
Sent: 13 May 2003 17:43
To: cactus-user@jakarta.apache.org
Subject: R: RE: Testing EJB - Newbie: please help
Hi all,
i'm a new "cactus user", and i'm trying the "testing ejb" using jbuilder
5 for the webapp.
I read the thread about these tests, and I saw there're many problems.
Well, I read all the possible "howto" slides, but i've problems on
configuring the classpath.
Perhaps I missed something.
This is the error i get typing on the browser:
http://localhost:8080/cactuswebapp/ServletTestRunner?suite=testcactus.Co
nverterTest
javax.servlet.ServletException: Failed to load test suite
[testcactus.ConverterTest], Reason is [Class not found
"testcactus.ConverterTest"]
at
org.apache.cactus.server.runner.ServletTestRunner.dispatch92_run(Servlet
TestRunner.java;org/apache/cactus/util/log/LogAspect.java(1k):157)
at
org.apache.cactus.server.runner.ServletTestRunner.around92_run(ServletTe
stRunner.java;org/apache/cactus/util/log/LogAspect.java(1k):1218)
at
org.apache.cactus.server.runner.ServletTestRunner.run(ServletTestRunner.
java;org/apache/cactus/util/log/LogAspect.java(1k):137)
at
org.apache.cactus.server.runner.ServletTestRunner.dispatch91_doGet(Servl
etTestRunner.java;org/apache/cactus/util/log/LogAspect.java(1k):121)
at
org.apache.cactus.server.runner.ServletTestRunner.around91_doGet(Servlet
TestRunner.java;org/apache/cactus/util/log/LogAspect.java(1k):1149)
at
org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunne
r.java;org/apache/cactus/util/log/LogAspect.java(1k):101)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
ttpConnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49
8)
at java.lang.Thread.run(Thread.java:484)
this error happends many times, with or without the cactus.proprties
file log4j.properties and the client classpath setted (i'm not at all
sure i did it in the right way.... may someone give me an example?).
then, it's really important to set che test file in the classpath, but
the class file or the java one? Or simply the name of the file????
thanks in advance
Maria Sole