Hi All,
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'
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
First of all you should check what versions are supported: https://docs.alfresco.com/content-services/latest/support/
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:
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.