File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UnsatisfiedLinkError: SQLConnect

 
P P B Bhatia
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic