Dave Tolls wrote:Just asking because this will occur if you've not got a no-args constructor available for your servlet.
Dave Tolls wrote:Is that the whole of the servlet code?
The IDE creates a HTTPServlet by default but it was giving this error, so what I did was I removed the HTTPservlet and used GenericServlet
We cannot change unless we survive, but we will not survive unless we change. Evolving tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton