Deploy a servlet that is not a direct subclass of HttpServlet

When trying to subclass anything but HttpServlet and deploying the servlet to the server, the error below is written to the log. That is because a servlet´s direct super class must be the javax.servlet.http.HttpServlet class. If it was possible to subclass your own class, you could create your own ”standard servlet” that all your other servlets inherits from. Unfortunately, that is not the case…. perhaps it´s time for WebSphere, and some real programming…

 JVM: Java Virtual Machine initialized. Java Servlet Manager initialized Addin: Agent error message: Error occurred while initializing Servlet (X) Addin: Agent error message: -----Servlet Information----- Servlet name: X Servlet class: a.b.c.X Servlet state:  Configuration parameters: A=123 B=456 Addin: Agent printing: java.lang.NoClassDefFoundError: null 2001-05-11 15:27:08 HTTP Web Server started