|
Replies:
2
-
Last Post:
Nov 21, 2009 8:36 AM
by: galdunate
|
|
|
|
|
|
|
Connecting Universal DB2 9.5.0.808 to Sun Application Server 9.1.02
Posted:
Sep 24, 2008 6:01 AM
|
|
|
Hello,
I am trying to connect my application server to my DB2 databse. I have copied the db2jcc.jar to my C:\Sun\AppServer\lib directory.
I have used the following configuration:
Data Sourcename = com.ibm.db2.jcc.DB2DataSource
Resource Type = javax.sql.connectionpooldatasource
Under Properties I have entered the appropriate values for
Database name port number servername password user
I receive the following error when trying to ping: jcc1038912245http://3.50.152 Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: no db2jcct2 in java.library.path: ERRORCODE=-4472, SQLSTATE=null
thanks for the help!
|
|
|
|
|
|
|
Re: Connecting Universal DB2 9.5.0.808 to Sun Application Server 9.1.02
Posted:
Sep 26, 2008 1:17 AM
in response to: dbansal
|
|
|
Could you try copying the db2jcct2.dll file to the lib directory and try this again?
|
|
|
|
|
|
|
|
Re: Connecting Universal DB2 9.5.0.808 to Sun Application Server 9.1.02
Posted:
Nov 21, 2009 8:36 AM
in response to: dbansal
|
|
|
I would suggest adding a driverType=4 in the jdbc entry corresponding to your database in domain.xml (can be done through the console properties, adding it), and then copying db2jcc4.jar and db2_cu_license.jar to the domain/<domain-name>/lib/ext directory in your glassfish installation. Restart the server and try.
|
|
|
|
|