I\'m developing with Java SE application using Hibernate 4 and c3p0 for communication with MariaDB database. It\'s long running application, waiting for signals from outside, so
are you sure c3p0 is actually initialized, and that it has the config you expect it to have?
in your logs, at INFO level, you should see a dump of your c3p0 DataSource's config upon pool initialization. verify that it is there, and that it is the configuration you expect.
if it is not there, please consider adding the following line to your hibernate.cfg.xml: