java.lang.ClassNotFoundException: Cannot load driver: COM.ibm.db2.jdbc.app.DB2Driver (Doc ID 1431921.1)

Last updated on AUGUST 03, 2017

Applies to:

Oracle WebLogic Server - Version 12.1.1.0 and later
Information in this document applies to any platform.
***Checked for relevance on 21-Nov-2013***

Symptoms

While trying to create a DB2 connection using the IBM driver, WebLogic Server 12.1.1 throws the following error:

<BEA-240003> <Administration Console encountered the following error: java.lang.ClassNotFoundException: Cannot load driver: COM.ibm.db2.jdbc.app.DB2Driver
at weblogic.jdbc.common.internal.DataSourceUtil.testConnection(DataSourceUtil.java:293)
at com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:746)
at com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:474)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms