• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ResourcePoolException: Attempted to use a closed or broken resource pool

 
Prakash Mani - Attur
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When hibernate tries to build the session factory, I am getting the below exception. Can you guys help me to overcome this issue ? With the same config file i can able to launch app in the local environment but not in the production. This issue happened after the latest deployment.

 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think that Tomcat can help with that. It appears to be a Hibernate problem that just happens to appear in the context of the production (Tomcat) machine.

Generally the first thing you should do is make sure that the proper JDBC driver is installed in TOMCAT_HOME/lib. Followed by a check to ensure that no firewall is blocking connection from the Tomcat machine to the database machine.

You should check the catalina.out and localhost logfiles to make sure that there are no error messages coming from the connection pooler itself.

Of course, I'm assuming that you are using a Tomcat-managed connection pool and not simply providing the pool as part of the webapp itself. Since that's what you should be doing.
 
Prakash Mani - Attur
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim...Found the reason for the exception...Its actually the McAfee denying the permission to connect with the database server...When changed the log level for hibernate package to INFO, I was able to see the exception clearly as "Permission Denied".Thanks again...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic