When installing Alfresco Community (maybe also Alfresco One) into an external tomcat instance (e.g. tomcat installed via the system's package manager), log4j fails with:
This can be fixed by creating a file <catalina-shared.loader-path>/alfresco/extension/custom-log4j.properties and adding:
This will work, however it will still log the same error because /custom-log4j.properties is only loaded after log4j outputs some initial log messages. This is very confusing esp. for new users and takes forever to figure out!
I propose setting the default log4j file path to
as this will work for wizard installations as well as for custom tomcat installations.
The same problem occurs when installing solr from alfresco-solr-5.0.a.war
My workaround for now is to unpack the .war file, fix WEB-INF/classes/log4j.properties directly an repack it.