Cannot find MySQL driver after upgrading from 15.1.4 to 15.2.2

Hi all,

We are currently upgrading our self-hosted BRXM instances from 15.1.4 to 15.2.2. We followed the upgrade guides (generic, and version specific) and the Docker build completes successfully.

However, the BRXM 15.2.2 Docker container fails to run, giving the following error:

b2beu-brxm> cp: cannot stat '/brxm/db-drivers/mysql/.': No such file or directory

When looking at the files of the BRXM 15.2.2 container we can see that only the PostgreSQL driver is there:

brxm/db-drivers/
brxm/db-drivers/postgres/
brxm/db-drivers/postgres/postgresql-42.2.5.jar

Whereas the BRXM 15.1.4 container does have the MySQL driver file:

brxm/db-drivers/
brxm/db-drivers/mysql/
brxm/db-drivers/mysql/mysql-connector-java-8.0.16.jar
brxm/db-drivers/postgres/
brxm/db-drivers/postgres/postgresql-42.2.5.jar

The only files that we updated for the upgrade are the following:

cms-depe‎ndencies‎/pom‎.xml‎ (`hippo-addon-urlrewriter-module-repository` to `hippo-addon-urlrewriter-cms-dependencies`)
site/co‎mponents/‎pom‎.xml‎ (`hippo-addon-urlrewriter-module-hst` to `hippo-addon-urlrewriter-site-dependencies`)
pom.xml‎ (`hippo-cms7-enterprise-release` version change)

Did we miss any steps? Any help would be appreciated, thanks in advance!

Hi,
I can’t pinpoint it right now but this probably has to do with using the new Maven coordinates com.mysql:mysql-connector-j, see https://issues.onehippo.com/browse/CMS-15288

HTH
Jeroen

Thanks for the really quick response, Jeroen! The new Maven coordinates were indeed causing the problem.

The fix:

  1. Open docker-db-libs.xml
  2. Change mysql:mysql-connector-java to com.mysql:mysql-connector-j

Documentation: https://blogs.oracle.com/mysql/post/mysql-connectorj-has-new-maven-coordinates