My Oracle Support Banner

Receiving Error "Missing class: com.mysql.jdbc.Driver" Creating a Data Source to MYSQL Database. (Doc ID 732668.1)

Last updated on JULY 20, 2018

Applies to:

Oracle Containers for J2EE - Version to [Release AS10gR3]
Information in this document applies to any platform.


When trying to create a data source for a MYSQL database in ASC (Application Server Control) you will get a runtime error saying that the class for the driver can not be found even though you have added the MYSQL jar file into the applib directory of the container. The error you receive will be something like this from ASC.

An error has occurred.
Unable to create: com.mysql.jdbc.Driver
Missing class: com.mysql.jdbc.Driver Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils Loader: oc4j:10.1.3 Code-Source: /D:/product/ Configuration: in META-INF/boot.xml in D:\product\\OracleAS_orange\j2ee\home\oc4j.jar This load was initiated at ascontrol.web.ascontrol:0.0.0 using the Class.forName() method. The missing class is available from the following locations: 1. Code-Source: /D:/product/ (from in /D:/product/ This code-source is available in loader global.libraries:1.0. This shared-library can be imported by the "ascontrol" application.


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.