Title: RE: Reg Cactus.
Hi Sudhir,
You need to have cactus.properties in your classpath (check http://jakarta.apache.org/commons/cactus/configuration.html)
Thanks
Vincent
----- Original Message -----
Sent: Monday, July 02, 2001 11:04 AM
Subject: RE: Reg Cactus.

Thanx Vincent.I had downloaded Ant Installation and Installed .Now I am getting following Exception.
 
java.lang.ExceptionInInitializerError: java.util.MissingResourceException:
Can't find bundle for base name cactus, locale en_US
        at java.util.ResourceBundle.throwMissingResourceException(ResourceB
undle.java:707)
        at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:679)
        at java.util.ResourceBundle.getBundle(ResourceBundle.java:546)
        at org.apache.commons.cactus.client.ServletHttpClient.<clinit>(Serv
letHttpClient.java:78)
        at org.apache.commons.cactus.ServletTestCase.runTest(ServletTestCas
e.java:128)
        at org.apache.commons.cactus.AbstractTestCase.runBare(AbstractTestC
ase.java:266)
        at junit.framework.TestResult$1.protect(TestResult.java:100)
        at junit.framework.TestResult.runProtected(TestResult.java:118)
        at junit.framework.TestResult.run(TestResult.java:103)
        at junit.framework.TestCase.run(TestCase.java:121)
        at junit.framework.TestSuite.runTest(TestSuite.java:149)
        at junit.framework.TestSuite.run(TestSuite.java:144)
        at junit.framework.TestSuite.runTest(TestSuite.java:149)
        at junit.framework.TestSuite.run(TestSuite.java:144)
        at junit.textui.TestRunner.doRun(TestRunner.java:63)
        at junit.textui.TestRunner.start(TestRunner.java:217)
        at junit.textui.TestRunner.main(TestRunner.java:89)
        at com.praja.ems.tests.utframework.executeTests.execute(executeTest
s.java:90)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
124)
        at org.apache.tools.ant.Target.execute(Target.java:168)
        at org.apache.tools.ant.Project.runTarget(Project.java:911)
        at org.apache.tools.ant.Project.executeTarget(Project.java:539)
        at org.apache.tools.ant.Project.executeTargets(Project.java:513)
        at org.apache.tools.ant.Main.runBuild(Main.java:422)
        at org.apache.tools.ant.Main.main(Main.java:149)
Is there any license file for cactus.If it so where can i get it.
Thanx,
Sudhir
-----Original Message-----
From: Vincent Massol [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 12:44 PM
To: [EMAIL PROTECTED]
Subject: Re: Reg Cactus.

Hi Sudhir,
 
This doesn't look like a Cactus problem ... More likely to be an issue with your Ant installation, I'd say. Have you installed the prepackaged Ant installation that you can download on the Cactus web site ? If not, can you try to see if it makes any difference ?
Thanks
Vincent
----- Original Message -----
Sent: Monday, July 02, 2001 5:49 AM
Subject: RE: Reg Cactus.

I have mapped  all jars and  servletRedirector in my classpath.and i tried to run mytestcases then i am getting following Exception
 
utframework:
.java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:110)
        at java.util.zip.ZipFile.<init>(ZipFile.java:125)
        at org.apache.tools.ant.AntClassLoader.getResourceStream(AntClassLo
ader.java:286)
        at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.jav
a:485)
        at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.jav
a:465)
        at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.jav
a:369)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
        at java.util.ResourceBundle.loadBundle(ResourceBundle.java:905)
        at java.util.ResourceBundle.findBundle(ResourceBundle.java:786)
        at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:621)
        at java.util.ResourceBundle.getBundle(ResourceBundle.java:546)
        at org.apache.commons.cactus.client.ServletHttpClient.<clinit>(Serv
letHttpClient.java:78)
        at org.apache.commons.cactus.ServletTestCase.runTest(ServletTestCas
e.java:128)
        at org.apache.commons.cactus.AbstractTestCase.runBare(AbstractTestC
ase.java:266)
        at junit.framework.TestResult$1.protect(TestResult.java:100)
        at junit.framework.TestResult.runProtected(TestResult.java:118)
        at junit.framework.TestResult.run(TestResult.java:103)
        at junit.framework.TestCase.run(TestCase.java:121)
        at junit.framework.TestSuite.runTest(TestSuite.java:149)
        at junit.framework.TestSuite.run(TestSuite.java:144)
        at junit.framework.TestSuite.runTest(TestSuite.java:149)
        at junit.framework.TestSuite.run(TestSuite.java:144)
        at junit.textui.TestRunner.doRun(TestRunner.java:63)
        at junit.textui.TestRunner.start(TestRunner.java:217)
        at junit.textui.TestRunner.main(TestRunner.java:89)
what might be the problem?
Thanks,
sudhir
-----Original Message-----
From: Kelvin Tan [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 30, 2001 10:13 AM
To: [EMAIL PROTECTED]
Subject: Re: Reg Cactus.

It's actually in the documentation.
 
or whatever the path to your ServletRedirector
 
Specify it in web.xml like
 
    <servlet>
        <servlet-name>ServletRedirector</servlet-name>
        <servlet-class>org.apache.commons.cactus.server.ServletTestRedirector</servlet-class>
  <init-param>
          <param-name>param1</param-name>
          <param-value>value1 used for testing</param-value>
        </init-param>
    </servlet>
    <servlet-mapping>
        <servlet-name>ServletRedirector</servlet-name>
        <url-pattern>/ServletRedirector</url-pattern>
    </servlet-mapping>
----- Original Message -----
Sent: Saturday, June 30, 2001 12:42 PM
Subject: RE: Reg Cactus.

Hi,
How to set the ServletRedirector in cactus.properties file.Actually in my frame work All java classes indirectly extends one servlet.So how to map that Servleyt in our Cactus propertis file.

plz. clraify me.
thanx in advance,
sudhir
-----Original Message-----
From: Lars [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 30, 2001 3:05 AM
To: [EMAIL PROTECTED]
Subject: Re: Reg Cactus.


maybe u've to set your classpath to the test-webapp-class-directory?

test/webapps/yourapp/WEB-INF/classes (<-no / at the end)


Lars


On Thu, 28 Jun 2001 07:46:41 -0400, in jakarta.commons you wrote:

>Hi,
>I am working on cactus. when I tried to run the  test cases through cactus,I
>am getting following Exception
>
>[java] java.lang.NoClassDefFoundError
>[java]     at org.apache.commons.cactus.ServletTestCase.runTest(Servle
>Case.java:128)
>[java]     at org.apache.commons.cactus.AbstractTestCase.runBare(Abstr
>stCase.java:266)
>[java]     at junit.framework.TestResult$1.protect(TestResult.java:100
>
>[java]     at junit.framework.TestResult.runProtected(TestResult.java:
>
>[java]     at junit.framework.TestResult.run(TestResult.java:103)
>[java]     at junit.framework.TestCase.run(TestCase.java:121)
>[java]     at junit.framework.TestSuite.runTest(TestSuite.java:149)
>[java]     at junit.framework.TestSuite.run(TestSuite.java:144)
>[java]     at junit.framework.TestSuite.runTest(TestSuite.java:149)
>[java]     at junit.framework.TestSuite.run(TestSuite.java:144)
>[java]     at junit.textui.TestRunner.doRun(TestRunner.java:63)
>[java]     at junit.textui.TestRunner.start(TestRunner.java:217)
>[java]     at junit.textui.TestRunner.main(TestRunner.java:89)
>
>what might be the problem?Could u plz clarify me.
>Thanks,
>Sudhir
>
>
>

Reply via email to