The Source for Java Technology Collaboration
Webmaster Alert: Posting to Jive Forums is currently not working. Estimated time for fix is unknown.

Home » java.net Forums » GlassFish » GlassFish

Thread: Connecting Universal DB2 9.5.0.808 to Sun Application Server 9.1.02

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: Nov 21, 2009 8:36 AM by: galdunate
dbansal

Posts: 1
Connecting Universal DB2 9.5.0.808 to Sun Application Server 9.1.02
Posted: Sep 24, 2008 6:01 AM
 
  Click to reply to this thread Reply

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!

sm157516

Posts: 189
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
 
  Click to reply to this thread Reply

Could you try copying the db2jcct2.dll file to the lib directory and try this again?

galdunate

Posts: 1
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
 
  Click to reply to this thread Reply

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.




 XML java.net RSS