There is a simple servlet that performs post / get requests by clicking on various buttons on a JSP page. These buttons call methods that interact with the database (such as adding / reading some values by keys). In the class where the implementation of these methods is presented, a pool of connections to the database is created (c3p0 DataSource).
But when you start the sevlet and trying to just read the values, it swears at this very pool of connections. Those. Writes some type of exepsons - I can not create a pool of connections and everything like that. The same swears on logging ...
Is it necessary to specify this connection pool and logging in web.xml? Are there any examples of how to do this correctly for such projects?