Alfresco share error during startup log4j not found

cancel
Showing results for 
Search instead for 
Did you mean: 
Dstava
Member II

Alfresco share error during startup log4j not found

Jump to solution

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!

 

1 Solution

Accepted Solutions
Dstava
Member II

Re: Alfresco share error during startup log4j not found

Jump 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

View solution in original post

2 Replies
angelborroy
Alfresco Employee

Re: Alfresco share error during startup log4j not found

Jump to solution

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

Hyland Developer Evangelist
Dstava
Member II

Re: Alfresco share error during startup log4j not found

Jump 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