This is a discussion on JDBC, DB/2, Apache and TomCat within the DB2 forums, part of the Database Server Software category; --> I'm attempting to access DB/2 via V8 JDBC drivers on a Windows based Apache/TomCat web server in jsp pages. ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I'm attempting to access DB/2 via V8 JDBC drivers on a Windows based Apache/TomCat web server in jsp pages. The driver loads just fine, Class.forName("com.ibm.db2.jcc.DB2Driver"), but when I try to make a connection it complains with the following error: "Failure in loading T2 native library db2jcct2" db2jcct2 is a dll file. I've been unable to find any information on this. Anyone have an idea how to get this working? Thanks Frank |
| |||
| Frank wrote: > I'm attempting to access DB/2 via V8 JDBC drivers on a Windows based > Apache/TomCat web server in jsp pages. The driver loads just fine, > Class.forName("com.ibm.db2.jcc.DB2Driver"), but when I try to make a > connection it complains with the following error: > > "Failure in loading T2 native library db2jcct2" > > db2jcct2 is a dll file. > > I've been unable to find any information on this. Anyone have an idea how to > get this working? Thanks > > Frank After install db2 code, the db2jcct2.ddl should be in .../SQLLIB/BIN on NT. Double check if this file is there. And make sure in the web server configuration file, you specified the library path to .../SQLLIB/BIN. |
| ||||
| As far as I know DB2Driver choses between pure java and app-based driver based on the URL. So you should look up the documentation for the Universal Driver an then try with an URL which does a direct, pure java connection to DB2. The URL is if a recal correctly something like "jdbc:db://dbserver This doesn't solve the problem that the native app-driver doesn't work, but I assume that your main goal is connecting to the DB... |