I have two classes, each in a different package. One class, DBConnector implements the Singleton design pattern so as to return only a single object. The other class extends HttpServlet. I am trying to call DBConnector.getConnection() from my servlet class, but I get the error message:

"Cannot access non-static method from static context"

The problem is, neither class uses the static keyword and I can't see why the servlet would be considered a static context.

Any suggestions appreciated.