Hi Pushpa,

Why don't you have a look at the stack trace... :-)

It says "Exception in thread "main" java.lang.NoClassDefFoundError:
junit/swingui/TestRunner/main"

This seems to mean to me that the "main" class do not exist... Check
your junit jar, you'll see it does not exist.

I'll leave it to you as an exercise to read the junit doc to find out
how to invoke a JUnit test runner from the command line... ;-)

Cheers,
-Vincent

-----Original Message-----
From: Pushpa Krishnamurthy [mailto:[EMAIL PROTECTED] 
Sent: 04 August 2003 11:41
To: [EMAIL PROTECTED]
Subject: Running Cactus Test from command line

Hello!
C:\bea\jdk131_06\bin>java -classpath
"C:\CactusProject\HelloWorld\classes;C:\bea
\weblogic700\server\lib\weblogic.jar;C:\bea\weblogic700\server\lib\webse
rvices.j
ar;C:\JBuilder9\thirdparty\jakarta-cactus-13-1.3\lib\commons-httpclient-
20020421
.jar;C:\JBuilder9\thirdparty\jakarta-cactus-13-1.3\lib\aspectjrt.jar;C:\
JBuilder
9\thirdparty\jakarta-cactus-13-1.3\lib\cactus.jar;C:\JBuilder9\thirdpart
y\jakart
a-cactus-13-1.3\lib\log4j-1.2rc1.jar;C:\JBuilder9\thirdparty\junit3.8\ju
nit.jar;
C:\JBuilder9\lib\unittest.jar;C:\bea\weblogic700\samples\server\config\e
xamples\
examplesServer\upload\HelloWorld\HelloWorld.jar;"�
junit.swingui.TestRunner.main
�HelloWorldCactusTest
Exception in thread "main" java.lang.NoClassDefFoundError:
junit/swingui/TestRun
ner/main
I don not understand why I am gettin this error.... Can any one please
tell me what is happening
Little History.....
I have deployed my HelloWorld ejb jar and HelloWorld webapp war file ,
which has my cactus test in weblogic app server. It runs fine from
IDE(Jbuilder), from Browser. But I need to run the test from
Commandline. I am not familiar with ANT , So I ran my test like
this.....
java -classpath
"C:\CactusProject\HelloWorld\classes;C:\bea\weblogic700\server\lib\weblo
gic.jar;C:\bea\weblogic700\server\lib\webservices.jar;C:\JBuilder9\third
party\jakarta-cactus-13-1.3\lib\commons-httpclient-20020421.jar;C:\JBuil
der9\thirdparty\jakarta-cactus-13-1.3\lib\aspectjrt.jar;C:\JBuilder9\thi
rdparty\jakarta-cactus-13-1.3\lib\cactus.jar;C:\JBuilder9\thirdparty\jak
arta-cactus-13-1.3\lib\log4j-1.2rc1.jar;C:\JBuilder9\thirdparty\junit3.8
\junit.jar;C:\JBuilder9\lib\unittest.jar;C:\bea\weblogic700\samples\serv
er\config\examples\examplesServer\upload\HelloWorld\HelloWorld.jar;"
helloworld.HelloWorldCactusTest
This runs fine too... But the website says that 
The website says that I should have the following
�  The Client part : It must contain the following elements : 
� your Cactus test classes, 
� the Cactus jar, 
� the Servlet API jar. This is needed because the ServletTestCase and
JspTestCase classes use server objects. 
� the cactus.properties Cactus configuration file, 
� the JUnit jar,
In order for me run the cactus client from command line.� It takes more
than that..... Where can I find documentation to run the ccatus client
from command line

Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software


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

Reply via email to