Run with java -jar flowable-admin.war

ls -l output:

-rw-r--r-- 1 root root     5773 Apr 16 18:14 application.properties
-rw-r--r-- 1 root root 42507751 Jan 14 13:33 flowable-admin.war
drwxr-xr-x 2 root root     4096 Apr 16 18:17 lib
-rw-r--r-- 1 root root   999808 Apr 16 18:20 mysql-connector-java-5.1.45.jar
-rw-r--r-- 1 root root  2134905 Apr 16 18:20 mysql-connector-java-8.0.15.jar

ls -l lib:
-rw-r–r-- 1 root root 999808 Apr 16 17:55 mysql-connector-java-5.1.45.jar
-rw-r–r-- 1 root root 2134905 Jan 28 12:21 mysql-connector-java-8.0.15.jar

Both of the two methods got error:Cannot load driver class: com.mysql.cj.jdbc.Driver

java -Dloader.path=/data/flowable/flowable-admin -jar flowable-admin.war
java -Dloader.path=/data/flowable/flowable-admin/lib -jar flowable-admin.war

I tried change as com.mysql.jdbc.Driver in application.properties and the same.

Anything I missed? Thanks!

also meet this issue when deploy helm with mysql db

Hi,

there are basically 2 things needed for this;

  1. having the correct jdbc driver jar on the class path;
  2. change the database data source url and driver property

Can you elaborate on how you did this? (And how you verified this)

Regards,

Yvo