jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bennett, Jeffrey" <JJBenn...@OneCommunications.com>
Subject RE: running cactus in eclipse
Date Wed, 14 Oct 2009 20:20:36 GMT
 When running the test from eclipse, you may need to include a
"-Dcactus.contextURL=<blah>" as a "VM Arg" to the test.

-----Original Message-----
From: Sri123 [mailto:mohanasundaras@mail.nih.gov] 
Sent: Wednesday, October 14, 2009 4:17 PM
To: cactus-user@jakarta.apache.org
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:
> 
> You need to have a "cactus.contextURL" property in your 
> cactus.properties.  Value is typically something like 
> "http://127.0.0.1:8080", but should point at the server that Eclipse 
> will run.
> 
> Your cactus.properties needs to be in the classes directory of your 
> webapp.  Specifics of where the file needs to reside depend on how 
> you've integrated your project with Eclipse.  Suffice to say, the 
> 'server' side of Eclipse needs to be able to see the cactus.properties

> file.
> 
> -----Original Message-----
> From: Sri123 [mailto:mohanasundaras@mail.nih.gov]
> Sent: Wednesday, October 14, 2009 2:28 PM
> To: cactus-user@jakarta.apache.org
> Subject: running cactus in eclipse
> 
> 
> Hi
> 
> I am newbie to cactus. I am trying to write a simple cactus test case 
> in eclipse. I have the cactus.jar file in the build path and 
> cactus.properties is also defined. But when executing the test I am 
> getting the following error message
> 
> org.apache.cactus.util.ChainedRuntimeException: Missing Cactus 
> 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)
> 
> 
> Any help on this would be much appreciated.
> 
> 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.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> 
> 
> 

--
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: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org


---------------------------------------------------------------------
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