Q
Problem solve Get help with specific problems with your technologies, process and projects.

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

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.

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.

This was last published in September 2004

Dig Deeper on Java for Lotus Notes Domino

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchExchange

SearchContentManagement

Close