RE: running cactus in eclipse

"Bennett, Jeffrey" <[email protected]> Wed, 14 Oct 2009 16:20:36 -0400
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <C00C15D282261446BC9CE6BCA55D4A1C13B9AFCE@ROCHEXC03.ad.choiceonecom.com>
 When running the test from eclipse, you may need to include a
"-Dcactus.contextURL=3D<blah>" as a "VM Arg" to the test.

-----Original Message-----
From: Sri123 [mailto:[email protected]]=20
Sent: Wednesday, October 14, 2009 4:17 PM
To: [email protected]
Subject: RE: running cactus in eclipse


I have attached the
http://www.nabble.com/file/p25898271/cactus.properties
cactus.properties  and I have them in the classes directory of my
webapp.
Please let me know what else could be wrong.

Bennett, Jeffrey wrote:
>=20
> You need to have a "cactus.contextURL" property in your=20
> cactus.properties.  Value is typically something like=20
> "http://127.0.0.1:8080", but should point at the server that Eclipse=20
> will run.
>=20
> Your cactus.properties needs to be in the classes directory of your=20
> webapp.  Specifics of where the file needs to reside depend on how=20
> you've integrated your project with Eclipse.  Suffice to say, the=20
> 'server' side of Eclipse needs to be able to see the cactus.properties

> file.
>=20
> -----Original Message-----
> From: Sri123 [mailto:[email protected]]
> Sent: Wednesday, October 14, 2009 2:28 PM
> To: [email protected]
> Subject: running cactus in eclipse
>=20
>=20
> Hi
>=20
> I am newbie to cactus. I am trying to write a simple cactus test case=20
> in eclipse. I have the cactus.jar file in the build path and=20
> cactus.properties is also defined. But when executing the test I am=20
> getting the following error message
>=20
> org.apache.cactus.util.ChainedRuntimeException: Missing Cactus=20
> property [cactus.contextURL]
> 	at
> org.apache.cactus.internal.configuration.BaseConfiguration.getContextU
> RL
> (BaseConfiguration.java:59)
> 	at
> org.apache.cactus.internal.configuration.AbstractWebConfiguration.getR
> ed
> irectorURL_aroundBody0(AbstractWebConfiguration.java:46)
> 	at
> org.apache.cactus.internal.configuration.AbstractWebConfiguration.getR
> ed
> irectorURL_aroundBody1$advice(AbstractWebConfiguration.java:288)
> 	at
> org.apache.cactus.internal.configuration.AbstractWebConfiguration.getR
> ed
> irectorURL(AbstractWebConfiguration.java)
> 	at
> org.apache.cactus.internal.client.connector.http.DefaultHttpClient.cal
> lR
> unTest(DefaultHttpClient.java:159)
> 	at
> org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doT
> es
> t_aroundBody0(DefaultHttpClient.java:80)
> 	at
> org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doT
> es
> t_aroundBody1$advice(DefaultHttpClient.java:288)
> 	at
> org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doT
> es
> t(DefaultHttpClient.java)
> 	at
> org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.r
> un
> WebTest(HttpProtocolHandler.java:159)
> 	at
> org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.r
> un
> Test_aroundBody0(HttpProtocolHandler.java:80)
> 	at
> org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.r
> un
> Test_aroundBody1$advice(HttpProtocolHandler.java:288)
> 	at
> org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.r
> un
> Test(HttpProtocolHandler.java)
> 	at
> org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientT
> es
> tCaseCaller.java:144)
> 	at
> org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(Abstra
> ct
> CactusTestCase.java:215)
> 	at
> org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCact
> us
> TestCase.java:133)
> 	at junit.framework.TestResult$1.protect(TestResult.java:110)
> 	at junit.framework.TestResult.runProtected(TestResult.java:128)
> 	at junit.framework.TestResult.run(TestResult.java:113)
> 	at junit.framework.TestCase.run(TestCase.java:124)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:232)
> 	at junit.framework.TestSuite.run(TestSuite.java:227)
> 	at
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.j
> av
> a:79)
> 	at
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4T
> es
> tReference.java:45)
> 	at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.
> ja
> va:38)
> 	at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Remote
> Te
> stRunner.java:460)
> 	at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Remote
> Te
> stRunner.java:673)
> 	at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestR
> un
> ner.java:386)
> 	at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTest
> Ru
> nner.java:196)
>=20
>=20
> Any help on this would be much appreciated.
>=20
> Thanks
> Sri
> --
> View this message in context:
> http://www.nabble.com/running-cactus-in-eclipse-tp25896480p25896480.ht
> ml Sent from the Cactus - User mailing list archive at Nabble.com.
>=20
>=20
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>=20
>=20
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>=20
>=20
>=20

--
View this message in context:
http://www.nabble.com/running-cactus-in-eclipse-tp25896480p25898271.html
Sent from the Cactus - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]