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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.