This might sound like a silly question but is the *version* of servlet.jar
you used to compile your app the same as the one Tomcat is using? If not
copy (or use in the classpath) Tomcat's servlet.jar in your lib path,
recompile,redeploy and retry :) That's as much as I can think of at the mo.
If you developing on Linux use md5sum on the servlet.jar you compiled with
and on Tomcat's servlet.jar that should tell you if the jars are the same.
Hope *this* works for you :),

Yiannis.

-----Original Message-----
From: Christian Hauser [mailto:[EMAIL PROTECTED]
Sent: 13 August 2003 11:32
To: Tomcat Users List
Subject: Re: HttpServletRequest not found from within library


Hi Yiannis

I didn't work. I stopped tomcat, removed servlet.jar from the CLASSPATH 
and restarted it. Same exception. servlet.jar can only be found in 
CATALINA_HOME/common/lib.

   Christian

Yiannis Mavroukakis wrote:

> IMHO you should try removing servlet.jar from your classpath, as you
> probably only need it on compile time, and restart Tomcat. 
> Let me know if this worked for you.
> 
> Yiannis.
> 
> -----Original Message-----
> From: Christian Hauser [mailto:[EMAIL PROTECTED]
> Sent: 13 August 2003 09:36
> To: Tomcat Users List
> Subject: HttpServletRequest not found from within library
> 
> 
> Hello all
> 
> I'm using Tomcat 4.1.24 and have the following problem.
> 
> In a JSP file I have a bean called nav pointing to a class 
> some.package.Navigation. This class is located at a JAR file in the lib 
> directory of the web application.
> 
> ...
> <jsp:useBean id="nav" class="some.package.Navigation" 
> scope="session"></jsp:useBean>
> <%
> nav.handleRequest(request, ...);
> ...
> 
> In the Navigation class I get a
> java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
> 
> But the HttpServletRequest Interface is imported:
> import javax.servlet.http.*;
> 
> Furthermore the CLASSPATH contains the path to servlet.jar, which also 
> is located in <CATALINA_HOME>/common/lib.
> 
> I can't figure out why I get this error and how to make it find the 
> servlet.jar.
> 
> Thank you in advance for every hint.
> 
>    Christian
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ________________________________________________________________________
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ________________________________________________________________________
> 
> ________________________________________________________________________
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ________________________________________________________________________
> 
> ---------------------------------------------------------------------
> 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]


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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

Reply via email to