Vincent, I have test.jsp in the appropriate place. Yes, when I dig deep into the code, I found that doForward method calls test/test.jsp. But I already had the test.jsp file in its place(I can access through browser).
Moreover, the FileNotFoundException is coming for http://localhost:8080/test/ServletRedirector/ If test.jsp is missing, I should have got an error message containing 'test.jsp' . But from the above message it seems that for some reason its not able to find the ServletRedirector. Again, this seems unlikely. I will keep up my experimentation, if you have any ideas please let me know. Thank you for a prompt reply, I appreciate it. Devasish --- Vincent Massol <[EMAIL PROTECTED]> wrote: > Devasish, > > The reason is simple : you have only taken one part > of the sample > application (which is the java code) but have not > taken the needed jsp > file. In other words, if you read the code for > testRequestDispatcher > you'll find that it tries to call a test/test.jsp > file, which the Cactus > redirector cannot find and reports a 404, which one > the client side is > reported as a FileNotFoundException. > > Thanks > -Vincent > > > -----Original Message----- > > From: devasish sarangi > [mailto:[EMAIL PROTECTED]] > > Sent: 12 April 2002 20:50 > > To: [EMAIL PROTECTED] > > Subject: Trouble running the sample > > > > Hi, > > > > I am getting a weird error when trying to run the > > Sample provided from Cactus site. For simplicity, > I am > > running just one testcase called > TestSampleServlet. > > The error is > > > > java.io.FileNotFoundException: > > http://localhost:8080/test/ServletRedirector/ > > > > at > > > sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown > > Source) > > > > at > > > org.apache.cactus.client.AutoReadHttpURLConnection.getInputStream(AutoRe > ad > > HttpURLConnection.java:127) > > > > at > > > org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.ja > va > > :136) > > > > at > > > org.apache.cactus.AbstractTestCase.runGenericTest(AbstractTestCase.java: > 42 > > 2) > > > > at > > > org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:130) > > > > at > > > org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:371) > > > > > > But hold on to your seat, I am getting this error > for > > ONE, just one method i.e. testRequestDispatcher. > If I > > comment it, the testcase suite runs smooth. As I > > understand, I believe that for running any test > > method, Cactus would use the URL > > http://localhost:8080/test/ServletRedirector/ > > > > So why is it failing for just one method? I guess > this > > question may be more for Vincent, because I see > his > > name as the author--:)-- > > It may because of some setting problems too. > Please > > let me know your thoughts. > > > > Thanks, > > Devasish > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! Tax Center - online filing with TurboTax > > http://taxes.yahoo.com/ > > > > -- > > To unsubscribe, e-mail: <mailto:cactus-user- > > [EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:cactus-user- > > [EMAIL PROTECTED]> > > > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
