Home > Ask the Domino Experts > ARCHIVE: Domino and WebSphere Integration Questions & Answers > Connecting to DB2 from a Java agent using db2java.zip JDBC driver
Ask The Domino Expert: Questions & Answers
EMAIL THIS

Connecting to DB2 from a Java agent using db2java.zip JDBC driver

Tony Higham EXPERT RESPONSE FROM: Tony Higham

Pose a Question
Other Domino Categories
Meet all Domino Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 18 August 2004
I am trying to connect to DB2 from a Java agent using db2java.zip JDBC driver in Notes 5 client. The code is:
DriverManager.registerDriver
((Driver)Class.forName("COM.ibm.db2.
jdbc.net.DB2Driver").newInstance());
Connection connection = 
DriverManager.getConnection(url,username, 
password);
At runtime I get the error:
java.lang.NoClassDefFoundError: java/security/PrivilegedExceptionAction

I check the rt.jar and PrivilegedExceptionAction is not there. The same code works fine in Notes 6 with the same driver (for Notes 6 rt.jar contains PrivilegedExceptionAction class).

Can you please tell me if there is a different version for db2java.zip driver that is compatible with JDK 1.1 used in Domino 5? Thanks.



Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
ARCHIVE: Domino and WebSphere Integration
Trap a call to URL; pass log-in ID to Domino
What is WebSphere?
Integrating Blue Group with Notes/Domino
Identifying incompatible product versions
Support for installing R6.5 client
Can Domino R5 and WebSphere App Server 5.02 implement SSO using Novell?
How can we clean up app bits WAS server leaves behind upon EAR file deployment

Java for Lotus Notes Domino
Top 10 Lotus Notes/Domino coding and development tips of 2008
Java code inserts data from Notes documents into a SQL table
Java code shortens strings in a SQL table
How to execute a stored procedure in Lotus Notes Domino using Java
Top 10 Lotus Notes Domino programming and development tips of 2007
How to return an HTML representation of a Lotus Notes rich-text field
Shrink Lotus Notes databases with many attachments
Converting Lotus Notes Domino Web pages to PDF files with a Java agent
Developing Eclipse plug-ins for Lotus Notes and Domino -- 7 tips in 7 minutes
A bevy of Notes/Domino development tips

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


I have not seen this particular issue before. However, I have encountered issues when the db2java.zip is not the same version as the version of DB2 that's installed. For example, if you have a db2java.zip in your 'lib' directory that was part of a previous version of DB2 (and the assumption here is that you upgraded DB2), then copying the latest db2java.zip into your lib directory could resolve the issue. Failing that, call IBM support!

Do you have comments on this Ask the Expert question and response? Let us know.




Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Lotus Notes Domino on Blackberry and mobile devices
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts