What's really annoying about it is that the app works perfectly well on my computer locally but when I uploaded the files to a web server I get this error. I suspect the versions are different. Any suggestions?
Originally posted by J Derzaph: Oops. That's not supposed to be there. It has the error without the dot though.
So the real servlet isn't in a package? What version of Tomcat? With some combinations of servers and JDKs you need to put the Servlet in a package for it to be recognized. [ September 05, 2008: Message edited by: Steve Luke ]
I have another servlet that is set up the same way and is running just fine though so I don't think its an issue with packages.
When a JVM sees a class without a named package (ie, the default package) it looks for that class in the "current" directory. Depending on the "current" directory to always be correct leads to exactly the problem you have.
This is a well known and frequently remarked on trap for programmers new to servlets.