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]>
