How do I fix JDBC Driver class not found?
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.