This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
1. Under what environment are you executing this servlet?
2. Why are you extending GenericServlet, given that you appear to be writing a HTTP application?
You should be extending HttpServlet so you can use doGet, doPost, etc instead of service.
To better understand what Bill told you, you should know that the service method which you overriden, is used to handle the requests done to the Servlets. For a Generic Servlet, is ok to override it, but better than that, you should use an HttpServlet, and instead of overriding the service method, you just simply need to override the doGet()/doPost() methods. Besides that, there are many advantages when using a HttpServlet instead of a GenericServlet in a web-environment, so you might re-analyze your problem. Good day!