jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luis M. Rosso" <lro...@up2u.com.ar>
Subject TestSampleServlet - java.io.FileNotFoundException
Date Thu, 07 Mar 2002 21:13:02 GMT
Hi, as I am learning Cactus, I am trying the sample included with the distribution, in particular,
TestSampleServlet.

I have found some messages about this matter in the mailing list's archive, but I wasn't able
to jump to any conclusion. And the "indentation" due to responses, in conjunction with fragmented
responses mixed with the questions, made them VERY DIFFICULT to understand.

The result I am getting is:
Runs: 12/12    Errors: 1    Failures: 0

And the following exception:

java.io.FileNotFoundException: http://localhost:8080/cactus-sample/ServletRedirector/
 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:562)
 at org.apache.cactus.client.AutoReadHttpURLConnection.getInputStream(AutoReadHttpURLConnection.java:127)
 at org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.java:136)
 at org.apache.cactus.AbstractTestCase.runGenericTest(AbstractTestCase.java:422)
 at org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:130)
 at org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:371)
 at junit.framework.TestResult$1.protect(TestResult.java:106)
 at junit.framework.TestResult.runProtected(TestResult.java:124)
 at junit.framework.TestResult.run(TestResult.java:109)
 at junit.framework.TestCase.run(TestCase.java:131)
 at junit.framework.TestSuite.runTest(TestSuite.java:173)
 at junit.framework.TestSuite.run(TestSuite.java:168)
 at junit.swingui.TestRunner$17.run(TestRunner.java:644)

I have attached the client log, cactus.properties and web.xml files.

The webapp name is cactus-sample, and its file structure is:
/cactus-sample
    jspRedirector.jsp
    test.jsp
    /WEB-INF
        web.xml
        /lib
            cactus.jar
            junit.jar
            log4j-core.jar
            log_server.properties
        /classes (includes the classes compiled from the source code provided with the distribution,
package org.apache.cactus.sample)

I am using Tomcat 3.2.3, the version which comes integrated with JBoss.

Could someone tell me please what I am doing wrong, and what I should do, in order to solve
this error?

Thanks in advance

Luis

Mime
View raw message