Configuring Weblogic_8.1 in JBuilder for connection pooling with DB2

Abstract: Configuring Weblogic_8.1 in JBuilder for connection pooling with DB2

Issue:

Weblogic 8.1 configured with db2 driver works when the server is started outside of JBuilder, but throws exceptions when started using a Run Configuration for the server within JBuilder:

weblogic.common.ResourceException: Could not load '<driver class>' because System.loadLibrary threw java.lang.UnsatisfiedLinkError

This is because the db2 driver is a type-2 driver which also needs access to dll files.

Solution:

In Tools | Configure Libraries | New..., create a library that points to db2java.zip. Next, open Tools | Configure Servers | Weblogic Application Server 8.1 | General | VM Parameters, and append the path to the db2/bin directory to the -Djava.library.path variable. Finally, add the library that you created for the db2java.zip to the Required Libraries tab for the Weblogic Application Server 8.1.