aspose file tools*
The moose likes Object Relational Mapping and the fly likes Getting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Getting "A ResourcePool could not acquire a resource from its primary factory or source."" Watch "Getting "A ResourcePool could not acquire a resource from its primary factory or source."" New topic
Author

Getting "A ResourcePool could not acquire a resource from its primary factory or source."

Micale Raj
Ranch Hand

Joined: Jul 01, 2009
Posts: 30

I have a Web application which uses hiberante 4. When i deployed it on tomcat ( Tomcat 7 ) and try to do database operation it throws
"com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source." Exception.
But when I'm doing same thing using testng it run without a problem

Full stack trace:


My Data source ( spring xml )


Any idea what would be wrong ?

Thanks in advance for any help.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting "A ResourcePool could not acquire a resource from its primary factory or source."