There is a error that when I want to connect to postgresql database from a servlet connection it cause classnotfoundexception error for the postgresql driver. with some details about servlet.
Class.forName("org.postgresql.driver");DriverManager conn = Driver.getConnection(addr, user, pass);
I'm using apache tomcat (local server) for the server hosting.