jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lawrence Mandel <lman...@ca.ibm.com>
Subject RE: Could not run junit test class in eclipse
Date Thu, 02 Aug 2007 04:51:12 GMT
You can define cactus.contextURL in your server launch configuration in 
Eclipse (assuming you're using WTP). 

If you're still having trouble you might be interested in a book I 
recently published entitled Eclipse Web Tools Platform: Developing Java 
Web Applications [1]. In chapter 11, Testing, I detail the steps to create 
and launch a Cactus test within Eclipse WTP. (Also tests with JUnit and 
HttpUnit.) If you're not interested in purchasing the book you can head to 
your local tech library as many should already have the book on the shelf.

[1] http://www.eclipsewtp.org

Lawrence 




<bhanuprakash.singh@wipro.com> 
08/01/2007 04:23 AM
Please respond to
"Cactus Users List" <cactus-user@jakarta.apache.org>


To
<cactus-user@jakarta.apache.org>
cc

Subject
RE: Could not run junit test class in eclipse







Seelan,

I had put it in lib folder where there are library files

And also make sure that you have context url defined 

like cactus.contextURL = http://localhost:8080/testwar

Hope this will work out 


Regards
Bhanu


-----Original Message-----
From: jeya seelan [mailto:rnjeyaseelan@yahoo.co.in] 
Sent: Wednesday, August 01, 2007 1:03 PM
To: Cactus Users List
Subject: RE: Could not run junit test class in eclipse

Hi,

this is seelan. i follow the folder structure what is given in the
cactus document. i am using eclipse3.1 IDE and JBOSS server. i created
struts framework application war file and put it in the deploy folder of
jboss. if i run jboss server i can access application and work on that.
after running my sample struts application, i run the cactus test class.
(Right click on the cactus java class file and i click run as JUnit
Test). but it throws exception. that is
"org.apache.cactus.util.ChainedRuntimeException: Missing Cactus property
[cactus.contextURL]".  i have configured web.xml also. i put
cactus.properties file in web-inf folder and i put cactus.properties
file in the class path also. but i could not run the cactus test class.
can you give me some detail procedure to run cactus test class? any
configuration changes is needed for eclipse ide? i did not configure
anything in the eclipse ide for cactus. please help me to run cactus
test case in eclipse ide using jboss server.

Regards
Seelan A

bhanuprakash.singh@wipro.com wrote: 
Please keep the cactus.properties in the web-inf folder

Thanks and Regards
Bhanuprakash 

-----Original Message-----
From: jeya seelan [mailto:rnjeyaseelan@yahoo.co.in]
Sent: Tuesday, July 31, 2007 10:52 AM
To: cactus-user@jakarta.apache.org
Subject: Could not run junit test class in eclipse

Hi,

This is seelan working as a java developer. i use struts framework for
my j2ee application. i want to use junit for my application to test
action class and the whole process. i use cactus object to run my junit
test class. but i could not run. i am getting this error
"org.apache.cactus.util.ChainedRuntimeException: Missing Cactus property
[cactus.contextURL]". so what shall i do to run  junit  test class using
Cactus object in eclipse IDE. please help me to run junit test case.

Regards
Seelan A.

Jeyaseelan.A
Anadocs IT Solutions
Adyar, Chennai-20
Cell - 9841104262




The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.
 
www.wipro.com

---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org




Jeyaseelan.A
Anadocs IT Solutions
Adyar, Chennai-20
Cell - 9841104262




The information contained in this electronic message and any attachments 
to this message are intended for the exclusive use of the addressee(s) and 
may contain proprietary, confidential or privileged information. If you 
are not the intended recipient, you should not disseminate, distribute or 
copy this e-mail. Please notify the sender immediately and destroy all 
copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient 
should check this email and any attachments for the presence of viruses. 
The company accepts no liability for any damage caused by any virus 
transmitted by this email.
 
www.wipro.com

---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org




Mime
View raw message