Tobias,

Cactus is looking for cactus.properties at the root of any path put into the
classpath. If your test case class is in my.package and you put
cactus.properties in the same directory then the full resource name of
cactus.properties is "/my/package/ressource.properties", which is wrong as
Cactus is looking for "/cactus.properties"

If I take your settings below, you need to put cactus.properties in
${destdir}, and not in ${destdir}/com/ceyoniq/healthcar.....

Does that help ?
Thanks
-Vincent

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 10, 2001 10:18 AM
Subject: Still missing cactus.properties :-(


Hi Cactus-Team,

I have a problem in using cactus. The client does not find the
cactus.properties. I use ant to start the client side testcase, wheares my
tomcat 4.0 is started handy before (containg a war file that contains the
test source, test case and also the cactus stuff). My client test suite
throws a RessourceBoundleException. A member of this list already told that
this is caused because cactus don't find the property file. :-(
I placed the property file in the same packages as my TestCase. I already
insure that the property file is copied into the path that contains the
classes ( ${destdir} ).
(this is done by "createTestEnviorment". This is my ant target:

<target depends="createTestEnvironment" name="run_Cactus">
  <junit printsummary="yes" fork="yes">
    <classpath>
        <pathelement location="${destdir}"/>
        <pathelement location="${libdir}/servlet.jar"/>
        <pathelement location="${libdir}/ext/log4j.jar"/>
        <pathelement location="${libdir}/ext/junit.jar"/>
        <pathelement location="${libdir}/cactus.jar"/>
        <pathelement location="${libdir}/httpclient.jar"/>
    </classpath>
    <formatter type="plain"/>
    <test
name="com.ceyoniq.healthcare.hermes.messaging.test.CactusClientServletTest"
haltonfailure="yes" outfile="CactusClientServletTest.log"/>
  </junit>
 </target>

What did I wrong here?

Thx a lot

Mit freundlichen Gr��en
Best regards

Tobias Rademacher

----------------------------------------------------------------------------
------
Tobias Rademacher
Software Development
CEYONIQ Healthcare Fon: +49 (0)821 44490-0
GmbH & Co. KG     Fax: +49 (0)821 44490-60
Kurzes Gel�nd 6     mailto:[EMAIL PROTECTED]
86156 Augsburg     www.ceyoniq.com
Germany
----------------------------------------------------------------------------
-----------




Reply via email to