How do I fix JDBC Driver class not found?

Solution Unverified - Updated -

Issue

I have a bundle using MySQL. My pom looks as follows:

<dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
    <version>5.1.18</version>
    <scope>provided</scope>
    <optional>false</optional>
</dependency>

When I try to deploy the application, I receive an error:

Invocation of init method failed; nested exception is org.hibernate.HibernateException: JDBC Driver class not found: com.mysql.jdbc.Driver

Environment

  • Fuse Enterprise ESB 7.X
  • Fuse ESB 4.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content