Jboss mysql - No suitable drivers found for jdbc

I get the following error using sleep mode:

Exception in thread "main" javax.ejb.EJBException: org.hibernate.exception.JDBCConnectionException: Cannot open connection ... ... Caused by: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/db 

The problem is similar to: another question , but I think my URL is right!

+1
source share
1 answer

Decision

I found a solution here in stackoferflow :)

I needed to place my jar file with mysql connector in jboss / server / default / lib. Although I do not understand it, since I added this jar file as a dependency and was placed in the lib folder during deployment.

0
source

Source: https://habr.com/ru/post/916713/


All Articles