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 jeya seelan <rn...@yahoo.co.in> on 2007/07/31 07:21:56 UTC
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
RE: Could not run junit test class in eclipse
Posted by Lawrence Mandel <lm...@ca.ibm.com>.
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
<bh...@wipro.com>
08/01/2007 04:23 AM
Please respond to
"Cactus Users List" <ca...@jakarta.apache.org>
To
<ca...@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
RE: Could not run junit test class in eclipse
Posted by bh...@wipro.com.
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
Re: Could not run junit test class in eclipse
Posted by Kazuhito SUGURI <su...@lab.ntt.co.jp>.
Hi,
In article <88...@web7610.mail.in.yahoo.com>,
Wed, 1 Aug 2007 08:32:52 +0100 (BST),
jeya seelan <rn...@yahoo.co.in> wrote:
rnjeyaseelan> this is seelan. i follow the folder structure what is given in the cactus document.
rnjeyaseelan> i am using eclipse3.1 IDE and JBOSS server.
rnjeyaseelan> i created struts framework application war file and put it
rnjeyaseelan> in the deploy folder of jboss.
rnjeyaseelan> if i run jboss server i can access application and work on that.
rnjeyaseelan> after running my sample struts application, i run the cactus
rnjeyaseelan> test class. (Right click on the cactus java class file and
rnjeyaseelan> i click run as JUnit Test). but it throws exception. that is
rnjeyaseelan> "org.apache.cactus.util.ChainedRuntimeException: Missing Cactus property
rnjeyaseelan> [cactus.contextURL]".
You have to configure the client-side of Cactus properly.
The cactus.properties should exist in the class-path of which
the JVM of the test-runner would search for.
Although I cannot point out exact way to set it up with Eclipse
(because I'm not an Eclipse user), following pages may give you
information for the configuration:
http://jakarta.apache.org/cactus/how_it_works.html
http://jakarta.apache.org/cactus/integration/manual/howto_classpath.html
Hope this helps.
----
Kazuhito SUGURI
RE: Could not run junit test class in eclipse
Posted by jeya seelan <rn...@yahoo.co.in>.
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
RE: Could not run junit test class in eclipse
Posted by bh...@wipro.com.
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