wood burning stoves
The moose likes BEA/Weblogic and the fly likes SQLException:  Cannot obtain connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "SQLException:  Cannot obtain connection" Watch "SQLException:  Cannot obtain connection" New topic

SQLException: Cannot obtain connection

Steven Sobczak

Joined: Sep 06, 2001
Posts: 1
I'm deploying some CMP Entity Beans in WebLogic 6.0 sp1 and getting the error SQLException: Cannot obtain connection after 10 seconds.
Can anyone help?
George Brown
Ranch Hand

Joined: Sep 26, 2000
Posts: 919
I would try writing a separate class to connect to your database, using the same JDBC driver, username, password and driver URL that you are currently using - see if it connects to your database. That way you can isolate the connection and ascertain whether it's to do with WLS or not.
It is sorta covered in the JavaRanch Style Guide.
subject: SQLException: Cannot obtain connection