I am trying to upgrade to alfresco community edition from 5.x to 7.2 and facing following issues. Can you please advise?
1. We tried with Zip installation ( refer ) as well as Ansible installation ( refer ) but we encountered the same issue during installation.
2. We observed below issue first but that got resolved by upgrading JAVA to version 17
java.lang.UnsupportedClassVersionError: org/alfresco/web/app/ContextLoaderListener has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 (unable to load class [org.alfresco.web.app.ContextLoaderListener])
3. After fixing the above error it started giving the below error. We also tried copying the jdbc driver jar to new alfresco version but it didn’t help.
Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'
Offical document says Java 11.x.x is supported, meaning the product was tested with this version. It may still work with other higher versions but defenitely won't work java version below 11.x.x.
Second error is because, you might be missing the jdbc driver in the installation. Please check the installation steps again and make sure JDBC driver which is supported with the DB of your choise has been deployed. And also make sure alfresco-global.properties has been updated accordingly.
You can also take a look here on the installation steps: