Hello there,
we are using Alfresco Community installed with docker compose.
We are trying to update from 7.3.1 to 7.4.4.1
old versions of images:
alfresco/alfresco-content-repository-community:7.3.1
alfresco/alfresco-search-services:2.0.6
alfresco/alfresco-share:7.3.1
alfresco/alfresco-content-app:3.1.0
alfresco/alfresco-transform-core-aio:3.0.0
alfresco/alfresco-activemq:5.17.1-jre11-rockylinux8
alfresco/alfresco-identity-service:2.0.0
new versions of images:
alfresco/alfresco-content-repository-community:7.4.1.1
alfresco/alfresco-search-services:2.0.8.1
alfresco/alfresco-share:7.4.1.1
alfresco/alfresco-content-app:4.2.0
alfresco/alfresco-transform-core-aio:4.0.0
alfresco/alfresco-activemq:5.17.1-jre11-rockylinux8
alfresco/alfresco-identity-service:2.0.0
The alfresco share container has an error during startup
java.net.URLClassLoader@76fb509a ] at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:485) ~[spring-core-5.3.23.jar:5.3.23] at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:321) ~[spring-core-5.3.23.jar:5.3.23] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:267) ~[spring-beans-5.3.27.jar:5.3.27] ... 55 more Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?] at java.lang.Class.privateGetDeclaredMethods(Class.java:3402) ~[?:?] at java.lang.Class.getDeclaredMethods(Class.java:2504) ~[?:?] at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:467) ~[spring-core-5.3.23.jar:5.3.23] at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:321) ~[spring-core-5.3.23.jar:5.3.23] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:267) ~[spring-beans-5.3.27.jar:5.3.27] ... 55 more Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
The new version of share should be using log4j2 I think. Is maybe a config file still loading the old log4j? Or is there a different issue? Many thanks in advance!
Solved! Go to Solution.
The issue was caused by using an older version of the support tools module. Solved by using the latest version support-tools-share-1.2.1.0-amp.amp
That should be coming from any customization or configuration, as it's working by default.
Both Alfresco Repository and Alfresco Share are using log4j2 from 7.4
The issue was caused by using an older version of the support tools module. Solved by using the latest version support-tools-share-1.2.1.0-amp.amp
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.