File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes using DataSource in WebLogic to access DB2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "using DataSource in WebLogic to access DB2" Watch "using DataSource in WebLogic to access DB2" New topic
Author

using DataSource in WebLogic to access DB2

quan zhu
Greenhorn

Joined: Dec 14, 2000
Posts: 27
I got:
"weblogic.ejb20.EJBDeploymentException: Error Deploying CMP EJB:; nested exception is:
weblogic.ejb20.cmp.rdbms.RDBMSException: Unexpected failure while accessing table 'PA_OPR': java.sql.SQLException: Cannot obtain connection after 0 seconds. , Exception = None available java.sql.SQLException: Cannot obtain connection after 0 seconds. , Exception = None available"
when I try to deploy a CMP ejb in WebLogic(EJB runs ok on websphere).
I am using WinNt, weblogic 6.0, DB2 6.0. I have set the connection pool and DataSource in WebLogic:
driver name: COM.ibm.db2.jdbc.app.DB2Driver
url: jdbc:db2:arts (arts is the odbc name for my DB2 database)
properties: user=a;password=p;server=arts
Could someone help me here?
Thanks.
Jim Baiter
Ranch Hand

Joined: Jan 05, 2001
Posts: 532
I'm not sure if DB2 is a supported platform for Weblogic. You may have problems.
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1851
quan ,
We have a forum dedicated specially for WebLogic. You may not get an appropriate reply in this forum.

------------------

Mahindrakar
IBM Application Server Forum Moderator
SCJP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using DataSource in WebLogic to access DB2