Because Connector/J restricted TLS versions to v1.1 and below by default when connecting to MySQL Community Server 8.0 (which used to be compiled with yaSSL by default and thus supporting only TLS v1.1 and below), it failed to connect to to a MySQL 8.0.4 Community Server (which has been compiled with OpenSSL by default and thus supports TLS v1.2) that was configured to only allow TLS v1.2 connections. TLS v1.2 is now enabled for connections with MySQL Community Server 8.0.4 and later. (Bug #27374581)
----------------
Download (mysql-connector-java-5.1.49.zip) from https://downloads.mysql.com/archives/c-j/
/var/lib/tomcat7/webapps/fedora/WEB-INF/lib# ls -lh mysql-connector-java-*
-rw-r--r-- 1 tomcat7 tomcat7 784K Sep 16 2017 mysql-connector-java-5.1.20.jar.DISABLED
-rw-r--r-- 1 tomcat7 tomcat7 984K Jul 19 16:08 mysql-connector-java-5.1.49.jar
---------------------
Irfan Rahman
Systems Administrator, DSU
UNIVERSITY OF TORONTO SCARBOROUGH