Re: Missing Cactus property
Kazuhito SUGURI <[email protected]>
| Newsgroups | gmane.comp.jakarta.cactus.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Fabian, In article <[email protected]>, Thu, 04 Jan 2007 14:35:00 +0100, "Fabian Hagen" <[email protected]> wrote: haege_10> But if I'd like to start the test it prints out the following error: haege_10> haege_10> testCase1(com.ubs.swidBOB.v5.batch.basel2.RealEstateServiceTest)org.apache.cactus.util.ChainedRuntimeException: haege_10> Missing Cactus property [cactus.contextURL] haege_10> at haege_10> org.apache.cactus.internal.configuration.BaseConfiguration.getContextURL(BaseConfiguration.java:59) [snip] haege_10> at haege_10> org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTestCase.java:133) haege_10> at haege_10> com.ubs.swidBOB.v5.batch.basel2.RealEstateServiceTest.main(RealEstateServiceTest.java:102) haege_10> haege_10> haege_10> I've already found a thread, that contains a solution for this problem, but haege_10> it doesn't aid me... haege_10> "My" cactus.properties lies in the rootfolder of the javaclient project. The haege_10> contextroot is that one from the WebProject (serverside). First of all, cactus.properties should be located in the classpath of the JVM which calls the main method. The classpath may not contain the rootfolder. Next, you should ensure that cactus.properties file contains an entry of cactus.contextURL such as follows: cactus.contextURL = http://localhost:8080/somewhere These conditions should be met. Then you will go to the next step. Hope this helps, ---- Kazuhito SUGURI