This will not help. Can you please answer to the questions I have asked (that's of course if you want us to help you :-))?
BTW, you should avoid defining a default constructor. Not neeed. And you should also absolutely remove the try/catch. All errors will bubble up in the junit test runner. Thanks -Vincent > -----Original Message----- > From: Thanigai [mailto:[EMAIL PROTECTED] > Sent: 02 July 2003 12:05 > To: Cactus Users List > Subject: RE: Exception File Not Found: ServletRedirector > > Hi Vincent, > > Thanks for your response. > I am forwarding my sample TestCase which is integrated > with WSAD5 and am running as JUnit TestCase. > > package cactusTest; > > import java.io.IOException; > import javax.servlet.RequestDispatcher; > import javax.servlet.ServletContext; > import javax.servlet.ServletException; > import org.apache.cactus.*; > import org.apache.cactus.util.ChainedRuntimeException; > > public class CactusJspTest extends ServletTestCase { > public CactusJspTest(String methodName){ > super(methodName); > } > public void testForwardingToJsp() throws > ServletException { > System.out.println(" testForwardingToJsp"); > ServletContext cont = > this.config.getServletContext(); > System.out.println(" ServletContext"+cont.toString() > ); > try{ > RequestDispatcher rd = > cont.getRequestDispatcher("/CactusTest.jsp"); > > rd.forward(this.request,this.response); > } > catch(ChainedRuntimeException ce){ > System.out.print(ce.toString()); > } > catch(IOException ie) { > > } > } > public void beginForwardingToJsp(WebRequest wr){ > > } > public void endForwardingToJsp(WebResponse wr){ > } > } > > > -Thanks & Regards > Thanigai > > --- Vincent Massol <[EMAIL PROTECTED]> wrote: > Hi > Thanigai, > > > > Can you please explain your setup and tell us what > > front end you are > > using? Maybe you can describe exactly the steps you > > use to get this > > error? > > > > Thanks > > -Vincent > > > > > -----Original Message----- > > > From: Thanigai [mailto:[EMAIL PROTECTED] > > > Sent: 02 July 2003 10:52 > > > To: [EMAIL PROTECTED] > > > Subject: Exception File Not Found: > > ServletRedirector > > > > > > Hi, > > > > > > Can anyone tell me why I am getting the > > > ServletRedirector File Not found exception. > > > > > > I have included the entry in the web.xml for > > > ServletTestRedirector. > > > > > > -Thanks & Regards > > > Thanigai > > > > > > > > > ________________________________________________________________________ > > > Send free SMS using the Yahoo! Messenger. Go to > > > http://in.mobile.yahoo.com/new/pc/ > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > ________________________________________________________________________ > Send free SMS using the Yahoo! Messenger. Go to > http://in.mobile.yahoo.com/new/pc/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
