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 10.1.3.0.0 to 10.1.3.5.0 [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.
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/10.1.3.1/OracleAS_orange/j2ee/home/lib/oc4j-internal.jar Configuration: in META-INF/boot.xml in D:\product\10.1.3.1\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/10.1.3.1/OracleAS_orange/j2ee/home/applib/mysql-connector-java-5.0.8-bin.jar (from in /D:/product/10.1.3.1/OracleAS_orange/j2ee/home/config/server.xml) 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!