Thats right. Servlet.jar is not included in your class path. Download it if you do not have it [quite rare if you use lot of javaide and tools], and then add it to your classpath. Restart tomcat and you are done !
Exactly how are you trying to start Tomcat? How did you install Tomcat - from zip or exe? Which version of Tomcat? Which operating system? Which SDK version? Have you defined JAVA_HOME and CATALINA_HOME environment variables? Bill
The 'servlet-api.jar' IS present in the '/common/lib' directory, but I continue to get "NoClassDefError javax/servlet/Servlet" errors. I have other web apps that are functioning properly ... except this one.
I also receive the following error:
Error deploying application at context path null java.lang.reflect.InvocationTargetException at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76) . . . etc.
and this one:
org.apache.commons.digester.Digester.endElement SEVERE: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:39) . . . etc.
I'm on Windows XP. I installed Tomcat 5 as an NT service, but I can no longer use that service as I have to configure my Java options differently from what the service was configured to use. Therefore, I run Tomcat 5 from the command line with the 'startup.bat' file.
Any thoughts on why Tomcat can't find the Servlet right under it's nose???