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

Attachment: cactus_client.log
Description: Binary data

Attachment: cactus.properties
Description: Binary data

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd";>

<web-app>

    <servlet>
        <servlet-name>ServletRedirector</servlet-name>
        <servlet-class>org.apache.cactus.server.ServletTestRedirector</servlet-class>
        <init-param>
          <param-name>param1</param-name>
          <param-value>value1 used for testing</param-value>
        </init-param>
    </servlet>

    <servlet>
        <servlet-name>JspRedirector</servlet-name>
        <jsp-file>/jspRedirector.jsp</jsp-file>
        <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>

    <servlet-mapping>
        <servlet-name>JspRedirector</servlet-name>
        <url-pattern>/JspRedirector/</url-pattern>
    </servlet-mapping>

</web-app>
--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to