This is not a Cactus issue. This is a well known issue with jUnit. Please look out for solution at

http://junit.sourceforge.net/doc/faq/faq.htm

 

Thanks & Regards,

Kumar Maniranjan

 

-----Original Message-----
From: Pushpa Krishnamurthy [mailto:[EMAIL PROTECTED]]
Sent
: Monday, August 04, 2003 3:11 PM
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\webservices.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\thirdparty\jakart
a-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\server\config\examples\
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\weblogic.jar;C:\bea\weblogic700\server\lib\webservices.jar;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:\JBuilder9\thirdparty\jakarta-cactus-13-1.3\lib\cactus.jar;C:\JBuilder9\thirdparty\jakarta-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\server\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