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:[email protected]] 
Sent: Wednesday, October 14, 2009 2:28 PM
To: [email protected]
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.getContextURL
(BaseConfiguration.java:59)
        at
org.apache.cactus.internal.configuration.AbstractWebConfiguration.getRed
irectorURL_aroundBody0(AbstractWebConfiguration.java:46)
        at
org.apache.cactus.internal.configuration.AbstractWebConfiguration.getRed
irectorURL_aroundBody1$advice(AbstractWebConfiguration.java:288)
        at
org.apache.cactus.internal.configuration.AbstractWebConfiguration.getRed
irectorURL(AbstractWebConfiguration.java)
        at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.callR
unTest(DefaultHttpClient.java:159)
        at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
t_aroundBody0(DefaultHttpClient.java:80)
        at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
t_aroundBody1$advice(DefaultHttpClient.java:288)
        at
org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTes
t(DefaultHttpClient.java)
        at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
WebTest(HttpProtocolHandler.java:159)
        at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
Test_aroundBody0(HttpProtocolHandler.java:80)
        at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
Test_aroundBody1$advice(HttpProtocolHandler.java:288)
        at
org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.run
Test(HttpProtocolHandler.java)
        at
org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTes
tCaseCaller.java:144)
        at
org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(Abstract
CactusTestCase.java:215)
        at
org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactus
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.jav
a:79)
        at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4Tes
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(RemoteTe
stRunner.java:460)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
stRunner.java:673)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRun
ner.java:386)
        at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRu
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.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]


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

Reply via email to