• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ResourcePoolException: Attempted to use a closed or broken resource pool

 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
reply
    Bookmark Topic Watch Topic
  • New Topic