jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sachin Sawant <ssaw...@mahindrabt.com>
Subject Re: TestSampleServlet - java.io.FileNotFoundException
Date Fri, 08 Mar 2002 03:42:26 GMT
Hi Luis,

Well I had a look at your web.xml file where I found the following is

<!-- Servlet Redirector URL mapping -->

Rest I suppose cactus-sample is the your context ...

Type in the http://localhost:8080/cactus-sample/ServletRedirector/ on
the browser after starting the app servers and check for the message it
normally gives the  Error: 500.

You have to create org.apache.cactus.server.ServletTestRedirector
directory structure in your WEB/classes and put
ServletTestRedirector.class there which is available in cactus.jar ...

Another point is to include cactus.properties under WEB/classes

These are the few points which I think you should have a look .


"Luis M. Rosso" wrote:

> 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
>    ----------------------------------------------------------------
> --
> To unsubscribe, e-mail:   <
> mailto:cactus-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <
> mailto:cactus-user-help@jakarta.apache.org>


This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

Visit us at http://www.mahindrabt.com
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message