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]
