because I have a jsp that gives me the following error whenever I access
the page

root cause

javax.servlet.ServletException: javax/servlet/ServletRequest
        at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:497)

The code for the jsp is

<%@ page import="java.util.*, java.io.*, com.oreilly.servlet.*,
com.oreilly.servlet.multipart.*" %>
<%
  try
  {
    int DEFAULT_MAX_POST_SIZE = 1024 * 1024;
        MultipartParser parser;
        parser = new MultipartParser( request
                                  , DEFAULT_MAX_POST_SIZE );
  } catch( Exception e )
  {
    out.println( "Sorry! An error was detected" );
  }
%>

So I thought maybe the it needs the javax class files.

On Thu, 26 Sep 2002, Kwok Peng Tuck wrote:

> Hmm, if you already have tomcat I don't see why you need to do what you
> did.
>
>
> Atif Shahab wrote:
>
> >I downloaded the interface classes for JavaServer Web Development Kit for
> >JSP 1.0 and JavaServlet API 2.1.
> >
> >http://java.sun.com/products/servlet/2.1/
> >
> >I placed the servlet.jar file in /path/to/my/application/WEB-INF/lib/.
> >When I restarted tomcat I found the followin in the log file
> >
> >WebappClassLoader:
> >validateJarFile(/path/to/my/application/WEB-INF/lib/servlet.jar) -
> >jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
> >javax/servlet/Servlet.class
> >
> >Does this mean
> >
> >a. I didn't need to download the file.
> >b. I've deployed it wrongly
> >c. I've downloaded the wrong file
> >d. I don't know what the hell I'm doing
> >
> >d is always the right answer so I hope someone will give me another answer
> >between a to c.
> >
> >
> >--
> >To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to