java.lang.UnsatisfiedLinkError: SQLConnect when trying to connect to DB2 datasource from WebSphere Application Server
 Technote (troubleshooting)
 
Problem(Abstract)
When trying to connect to a DB2® type 2 datasource from WebSphere® Application Server error java.lang.UnsatisfiedLinkError: SQLConnect occurs.
 
Cause
The shared library path is not complete when this error occurs.
 
Resolving the problem
Ensure that db2profile has been run in the shell starting WebSphere Application Server. You can find db2profile in the following directory:
  • For DB2 8.2 and later:

    instance_root/sqllib/lib

  • For releases earlier than DB2 8.2:

    instance_root/sqllib

Also, the shared library path environment variable (LIBPATH in AIX®, LD_LIBRARY_PATH in the other UNIX® platforms) should be extended to include the following:

DB2_instance_root/sqllib/java12

This directory contains libdb2jdbc.so, which is needed to support the DB2 app (type 2) JDBC driver.

Another solution is to use the Universal (type 4) driver, which does not need these libraries sourced.
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Java 2 Connectivity (J2C)
Operating system(s): Solaris
Software version: 6.1
Software edition:
Reference #: 1110708
IBM Group: Software Group
Modified date: Mar 2, 2007