I'm not sure if this is your problem but I ran into similar problems because I didn't have the compiled servlet in my web application's classes or lib directory.
If you compiled the servlet as a single class, CacheHttpServlet.class, then make sure that it is in your web application's classes directory: [webroot]/WEB-INF/classes/com/oreilly/servlet/CacheHttpServlet.class But if you have the entire com.oreilly.servlet package compiled as a .jar file, then make sure you have it in your web application's lib directory: [webroot]/WEB-INF/lib Hope that helps, Paul -----Original Message----- From: A. Alfred Ayache [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 5:00 PM To: [EMAIL PROTECTED] Subject: Tomcat and CacheHttpServlet I'm picking my way through Jason Hunter's book, and hit the first example to use his com.oreilly.servlet package. I've successfully compiled the servlet, but when I try to execute it I get an internal server error, with root cause: java.lang.NoClassDefFoundError: com/oreilly/servlet/CacheHttpServlet OK, so the server can't find CacheHttpServlet. How do I hook them up? Thanks, -- A. Alfred Ayache, | 20 years' experience President, The Last Byte, Inc. | Testimonials Custom software par excellence | Links http://www.lastbyte-inc.com | Free Software -- 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]>
