ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Interchange Server + Adapters » db2 - jdbc adapter - java.sql.SQLException??

Post new topic  Reply to topic
 db2 - jdbc adapter - java.sql.SQLException?? « View previous topic :: View next topic » 
Author Message
shafi
PostPosted: Wed Aug 09, 2006 2:55 am    Post subject: db2 - jdbc adapter - java.sql.SQLException?? Reply with quote

Apprentice

Joined: 19 Mar 2006
Posts: 38

Hi all,

I am getting the following error

"[Time: 2006/08/09 16:08:27.975] [System: ConnectorAgent] [SS: JDBCConnector] [Thread: wbia_main (#1264451744)] [Type: Error] [MsgID: 36001] [Mesg: Could not instantiate the required JDBC driver classes. Reason java.sql.SQLException: java.lang.UnsatisfiedLinkError: Can't find library db2jdbc (db2jdbc.dll) in sun.boot.library.path or java.library.path
sun.boot.library.path=C:\IBM\WebSphereAdapters\AdapterJRE\bin
java.library.path=C:\IBM\WebSphereAdapters\AdapterJRE\bin;C:\IBM\WebSphereAdapters\bin;C:\PROGRA~1\IBM\WEBSPH~1\java\lib;;;.]
[Time: 2006/08/09 16:08:27.975] [System: ConnectorAgent] [SS: JDBCConnector] [Thread: wbia_main (#1264451744)] [Type: Error] [MsgID: 90006] [Mesg: Problem with the Connection Pool]
[Time: 2006/08/09 16:08:27.975] [System: ConnectorAgent] [SS: JDBCConnector] [Thread: wbia_main (#1264451744)] [Type: Fatal Error] [MsgID: 17050] [Mesg: The call to method init() in the application connector failed.]
[Time: 2006/08/09 16:08:27.975] [System: ConnectorAgent] [SS: JDBCConnector] [Thread: wbia_main (#1264451744)] [Type: Info] [MsgID: 17514] [Mesg: About to begin restart retry # 1 for serial connector agent JDBCConnector.]
[Time: 2006/08/09 16:08:27.985] [System: ConnectorAgent] [SS: JDBCConnector] [Thread: wbia_main (#1264451744)] [Type: Info] [MsgID: 17516] [Mesg: Waiting for configured restart retry interval: 1 minute(s) before restarting connector agent JDBCConnector.]
" while starting my connector. I am using "COM.ibm.db2.jdbc.app.DB2Driver" for the property 'JDBCDriverClass'.

Please lemme know how to rectify it.

Regards,
Shafi
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Aug 09, 2006 3:02 am    Post subject: Re: db2 - jdbc adapter - java.sql.SQLException?? Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

shafi wrote:
Hi all,

I am getting the following error

"[Time: 2006/08/09 16:08:27.975] [System: ConnectorAgent] [SS: JDBCConnector] [Thread: wbia_main (#1264451744)] [Type: Error] [MsgID: 36001] [Mesg: Could not instantiate the required JDBC driver classes. Reason java.sql.SQLException: java.lang.UnsatisfiedLinkError: Can't find library db2jdbc (db2jdbc.dll) in sun.boot.library.path or java.library.path
sun.boot.library.path=C:\IBM\WebSphereAdapters\AdapterJRE\bin
java.library.path=C:\IBM\WebSphereAdapters\AdapterJRE\bin;C:\IBM\WebSphereAdapters\bin;C:\PROGRA~1\IBM\WEBSPH~1\java\lib;;;.]
[Time: 2006/08/09 16:08:27.975] [System: ConnectorAgent] [SS: JDBCConnector] [Thread: wbia_main (#1264451744)] [Type: Error] [MsgID: 90006] [Mesg: Problem with the Connection Pool]
[Time: 2006/08/09 16:08:27.975] [System: ConnectorAgent] [SS: JDBCConnector] [Thread: wbia_main (#1264451744)] [Type: Fatal Error] [MsgID: 17050] [Mesg: The call to method init() in the application connector failed.]
[Time: 2006/08/09 16:08:27.975] [System: ConnectorAgent] [SS: JDBCConnector] [Thread: wbia_main (#1264451744)] [Type: Info] [MsgID: 17514] [Mesg: About to begin restart retry # 1 for serial connector agent JDBCConnector.]
[Time: 2006/08/09 16:08:27.985] [System: ConnectorAgent] [SS: JDBCConnector] [Thread: wbia_main (#1264451744)] [Type: Info] [MsgID: 17516] [Mesg: Waiting for configured restart retry interval: 1 minute(s) before restarting connector agent JDBCConnector.]
" while starting my connector. I am using "COM.ibm.db2.jdbc.app.DB2Driver" for the property 'JDBCDriverClass'.

Please lemme know how to rectify it.

Regards,
Shafi


Is it there? Is the path (quoted immediately below) the one you expect it to be using?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
djeripo
PostPosted: Thu Aug 10, 2006 6:36 am    Post subject: Reply with quote

Master

Joined: 25 Jan 2004
Posts: 225

From the following path,
C:\Program Files\IBM\SQLLIB\BIN (I have my DB2 Installed there),copy
db2jdbc.dll and put it in
C:\IBM\WebSphereAdapters\bin

Then re-start your adapter
Back to top
View user's profile Send private message Visit poster's website
shafi
PostPosted: Thu Aug 10, 2006 10:06 pm    Post subject: Reply with quote

Apprentice

Joined: 19 Mar 2006
Posts: 38

Hi friends,

It works now. djeripo, u r right!!!. Also in the same way db2java.zip also has to be moved to the lib folder of WBI adapter.

Thanks,
Shafi.
Back to top
View user's profile Send private message
djeripo
PostPosted: Fri Aug 11, 2006 10:55 pm    Post subject: Reply with quote

Master

Joined: 25 Jan 2004
Posts: 225

Its(db2java.zip) not really required to move to lib folder.Instead,You can simply provide the path in start_jdbc.bat.
Something like this,

Code:
SET JDBCDRIVERPATH="%DB2_HOME%"\java\db2java.zip
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Interchange Server + Adapters » db2 - jdbc adapter - java.sql.SQLException??
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.