File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes UnsatisfiedLinkError: SQLConnect Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "UnsatisfiedLinkError: SQLConnect" Watch "UnsatisfiedLinkError: SQLConnect" New topic
Author

UnsatisfiedLinkError: SQLConnect

P P B Bhatia
Greenhorn

Joined: Feb 05, 2007
Posts: 2
What caused java.lang.UnsatisfiedLinkError: SQLConnect exception when trying to use DB2 Datasource to connect from WSAD to DB2 database? I have db2java.zip in server classpath but NO DB2 client installed on my locally.

Caused by: java.lang.UnsatisfiedLinkError: SQLConnect
at COM.ibm.db2.jdbc.app.DB2Connection.connect(DB2Connection.java:529)
at COM.ibm.db2.jdbc.app.DB2Connection.(DB2Connection.java:445)
at COM.ibm.db2.jdbc.app.DB2ReusableConnection.(DB2ReusableConnection.java:77)
at COM.ibm.db2.jdbc.DB2PooledConnection.getConnection(DB2PooledConnection.java:188)
at com.ibm.ejs.cm.portability.PortabilityLayerImpl.getInstance(PortabilityLayerImpl.java:996)
at com.ibm.ejs.cm.portability.DB2PortabilityLayer.getInstance(DB2PortabilityLayer.java:200)
at com.ibm.ejs.cm.portability.PortabilityLayerFactory.getPortabilityLayer(PortabilityLayerFactory.java:72)
at com.ibm.ejs.cm.JDBC1PhaseRF.createConnectionFactory(JDBC1PhaseRF.java:57)
at com.ibm.ejs.cm.DataSourceImpl$3.run(DataSourceImpl.java:237)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.ejs.cm.DataSourceImpl.getSource(DataSourceImpl.java:235)
at com.ibm.ejs.cm.DataSourceImpl$1.run(DataSourceImpl.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.ejs.cm.DataSourceImpl.getConnection(DataSourceImpl.java:151)
at com.ibm.ejs.cm.DataSourceImpl.getConnection(DataSourceImpl.java:120)
William Janssen
Ranch Hand

Joined: Jan 02, 2007
Posts: 39
It is missing the native libraries which come with the db2 client. The new drivers packaged in db2jcc.jar conatin a type 4 driver which you can use without a db2 client installed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UnsatisfiedLinkError: SQLConnect