Why does step 3 of Jazz Team Server Setup fail with: Failure in loading native library db2jcct2
I installed the Jazz Team Server 4.0 on RHEL6. I also installed DB2 10.1 using the db2setup utility and configured it using the defaults. I then tried to run the Jazz Team Server setup - i.e. https://localhost:9443/jts/setup which fails on step 3, Configure Database. I selected DB2 for the database vendor with a connection type of JDBC. I specified the JDBC password of my DB2 instance owner - i.e. db2inst1 - and the JDBC location of:
jdbc:db2://localhost:50000/user-db2inst1;password={password}
When I click the Test Connection button, I get the error below. I tried running this from both my user ID as well as the db2inst user ID. How do I get around this problem?
The configuration test resulted in errors. Resolve the errors to continue. For more details, open the help system and search for CRJAZ1579E.ID CRJAZ1579E
[jcc][10389][12245][3.57.82] Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: db2jcct2 (Not found in java.library.path): ERRORCODE=-4472, SQLSTATE=null
[jcc][10389][12245][3.57.82] Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: db2jcct2 (Not found in java.library.path): ERRORCODE=-4472, SQLSTATE=null
jdbc:db2://localhost:50000/user-db2inst1;password={password}
When I click the Test Connection button, I get the error below. I tried running this from both my user ID as well as the db2inst user ID. How do I get around this problem?
The configuration test resulted in errors. Resolve the errors to continue. For more details, open the help system and search for CRJAZ1579E.ID CRJAZ1579E
[jcc][10389][12245][3.57.82] Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: db2jcct2 (Not found in java.library.path): ERRORCODE=-4472, SQLSTATE=null
[jcc][10389][12245][3.57.82] Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: db2jcct2 (Not found in java.library.path): ERRORCODE=-4472, SQLSTATE=null
One answer
You don't need jdbc:db2: //localhost.....
It should just be //localhost:50000/user=db2inst1;password={password}
That might be confusing the application into thinking it is a Type-2 URL rather than the Type-4
And I also notice another typo in your example.
Note the dash between user-db2inst1 instead of an = sign.
It should just be //localhost:50000/user=db2inst1;password={password}
That might be confusing the application into thinking it is a Type-2 URL rather than the Type-4
And I also notice another typo in your example.
Note the dash between user-db2inst1 instead of an = sign.