Appearently, your runtime classpath is not correctly set. You probably DO
have the javax.servlet.RequestDispatcher class,
but in an older version that the one you use to compile the servlet - and
that older version (the runtime version) is missing the forward()
function.

> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology. [mailto:[EMAIL PROTECTED]]On
> Behalf Of Gerry Scheetz
> Sent: Tuesday, April 03, 2001 11:18 PM
> To: [EMAIL PROTECTED]
> Subject: NoSuchMethodError on getRequestDispatcher
>
>
> thanks to everyone that replied on my previous post.
>
> New problem and I can't find anything on the archive that helps.
> (may be searching on the wrong stuff)
>
> I am getting a NoSuchMethodError when doing a
> getRequestDispatcher.  Code follows.  Running on WinNT 4.0 have
> Java 1.2.2, JServ 1.1.2, JSDK 2.0, Apache 1.1.19 (I think
> whatever the latest win32 binary is).
>
> Thanks,
> Gerry Scheetz
> Helena, Montana
>
> package ChildCare.servlets;
>
> import java.io.*;
> import java.util.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
>
>
> public class test extends HttpServlet {
>
>     /**
>      * Creates the application scope objects used by the Actions
>      * and JSP pages in this application.
>      */
>   public void init(ServletConfig config) throws ServletException {
>     super.init(config);
>   }
>
>     /**
>      * Cleans up before stopping servlet
>      */
>     public void destroy() {
>     }
>
>     /**
>      * Performs the same processing as for a POST request.
>      */
>     public void doGet(HttpServletRequest request,
>         HttpServletResponse response)
>         throws IOException, ServletException {
>         doPost(request, response);
>     }
>
>   /**
>    * Locates the Action object corresponding to the requested
>    * action, or the start Action in case the user is not yet
>    * authenticated, and dispatch the processing to the selected
>    * Action object.
>    */
>   public void doPost(HttpServletRequest request,
>     HttpServletResponse response)
>     throws IOException, ServletException {
>
>     RequestDispatcher rd =
> getServletContext().getRequestDispatcher("start.jsp");
>     rd.forward(request, response);
>   }
>
>   /**
>    * Get Servlet information
>    * @return java.lang.String
>    */
>   public String getServletInfo() {
>     return "ChildCare.Core.ChildCare Information";
>   }
> }
>
>
>
> Gerry Scheetz
> Web Application Development
> Global Information Technology Division
> TRW - S&ITG
> Helena, Montana, USA
> [EMAIL PROTECTED]
> (406) 594-1878
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to