I know, I know, I'm supposed to be using some simple text editor and command line compling but I like to use Eclipse and I like gaining experience with its use. I am having some trouble getting my
servlets to work under
Tomcat when I compile with Eclipse.
Eclipse gives no errors for my code but when I move the *.class file to Tomcat and try to run the servlet Tomcat comes back with the following error:
"javax.servlet.ServletException: Class com.example.web.BeerSelect is not a Servlet"
If I compile the exact same code at the command line using the example on page 81 of HFSJ it works fine.
I am using the tomcat\common\lib\servlet-api.jar file on my path in Eclipse. Any ideas of why this is happening.
Thanks,
Milton S.