Unix Technical Forum

JDBC, DB/2, Apache and TomCat

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. ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 03:57 PM
Frank
 
Posts: n/a
Default JDBC, DB/2, Apache and TomCat

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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 03:57 PM
Fan Ruo Xin
 
Posts: n/a
Default Re: JDBC, DB/2, Apache and TomCat



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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 03:58 PM
Janick
 
Posts: n/a
Default Re: JDBC, DB/2, Apache and TomCat

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://dbserverort/dbname".

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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:15 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com