[midPoint] Installing MySQL Driver

Solberg, Eric eric at solberg.com
Tue Oct 16 18:41:32 CEST 2018


I've been playing with the Midpoint demo and now want to get a real installation set up.

I'm using Google Cloud Platform and have made the demo work in a VM on the compute engine, and in a Kubernetes cluster. I've made both the binary install and the Docker install work. All good there.

The instructions seem to be incomplete or unclear on installation of the MySQL driver. Where to put the driver so it is on the class path? Or how to modify the classpath to include it? After a lot of trial and error, the approach I found that worked was to add the driver jar to midpoint.war - and specifically adding it without compression (0 flag), using this command:
jar uf0 ${MP_DIR}/lib/midpoint.war WEB-INF/lib/mysql-connector-java-8.0.12.jar

This seems to have worked (though I'm having another issue I'll ask about separately). 

Is there a better way?





More information about the midPoint mailing list