I'm still running into this same problem.  However I
noticed that if I hit the test.jsp first, then hit the
servlet, it worked.

Has anyone ran into this problem using Java Web Server
2.0, and servlet 2.1?

TIA,

Kachana

--- Vasudha Deepak <[EMAIL PROTECTED]> wrote:
> Hi,
>      Check the version of servlet.jar.Probably it
> needs the new one ie
> servlet.jar version2.2
> Also verify your classpath. If you have the new
> verison,may be it is
> referring to the old one somewhere.
>
>
> Vasudha
> ----- Original Message -----
> From: Kachana Ung <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 21, 2000 10:18 AM
> Subject: Urgent help needed
>
>
> Hi,
>
> I tried unsuccessfully to write a servlet that
> simply
> forwards the request to another jsp page (test.jsp)
> to
> be proccessed. The test.jsp is a simple PURE html
> page
> that just prints something.  Here's the code:
>
> =====================
> package workflow.servlet;
> import javax.servlet.*;
> import javax.servlet.http.*;
> public class TestServlet extends HttpServlet{
> public  void service (HttpServletRequest req,
> HttpServletResponse res) throws ServletException,
> java.io.IOException{
>
>         RequestDispatcher rd =
>
getServletContext().getRequestDispatcher("/workflow/test.jsp");
>         rd.forward(req, res);
>
>     }
> }
> ===============================
>
> I kept getting the following error message:
> -------------------------------
> 500 Internal Server Error
> The servlet named Test at the requested URL
>
> http://sabrejspServlet
> reported this exception:
> java.lang.NullPointerException. Please report this
> to
> the administrator of the web server.
>
> java.lang.NullPointerException at
>
com.sun.server.http.pagecompile.GenericPageCompileServlet.loadClass(GenericP
> ageCompileServlet.java:517)
> at
>
com.sun.server.http.pagecompile.jsp.runtime.JspServlet.compileAndLoadServlet
> (JspServlet.java:274)
> at
>
com.sun.server.http.pagecompile.jsp.runtime.JspServlet.processJspPage(JspSer
> vlet.java:254)
> at
>
com.sun.server.http.pagecompile.jsp.runtime.JspServlet.service(JspServlet.ja
> va:97)
> at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
> at
>
com.sun.server.ServletState.callService(ServletState.java:226)
> at
>
com.sun.server.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:202)
> at
>
com.sun.server.http.HttpRequestDispatcherImpl.forward(HttpRequestDispatcherI
> mpl.java:249)
> at
>
com.thevegroup.client.service.workflow.servlet.TestServlet.service(TestServl
> et.java:21)
> at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
> at
>
com.sun.server.ServletState.callService(ServletState.java:226)
> at
>
com.sun.server.ServletManager.callServletService(ServletManager.java:936)
> at
>
com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423)
> at
>
com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79)
> at
>
com.sun.server.http.stages.Runner.process(Runner.java:79)
> at
>
com.sun.server.ProcessingSupport.process(ProcessingSupport.java:294)
> at com.sun.server.Service.process(Service.java:204)
> at
>
com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java
> :374)
> at
>
com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java
> :166)
> at
>
com.sun.server.HandlerThread.run(HandlerThread.java:162)
>
> ---------------------------------------
>
> However when I rewrote the servlet to forward the
> request to an html page (test.jsp above saved as
> test.html), the message is displayed correctly.
>
> Please, help.
> I'm using NT, jws 2.0, and servlets 2.1.
>
>
> Thanks,
>
> Kachana
>
> __________________________________________________
> Do You Yahoo!?
> Get Yahoo! Mail - Free email you can access from
> anywhere!
> http://mail.yahoo.com/
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to