cancel
Showing results for 
Search instead for 
Did you mean: 

Where to put dev-log4j.properties, docs aren't helping

nlfiedler
Champ in-the-making
Champ in-the-making
In reading Alfresco_SVN_Development_Environment and related wiki topics I have mostly managed to get a working build environment for Alfresco on my Mac. One of the problems that I'm stuck on is how to override the log4j properties. The wiki suggests that $TOMCAT_HOME/shared/classes/alfresco/extension/dev-log4j.properties will be read, but it seems to do nothing (in that file I have just one line to specify the log4j.appender.File.File property). As a result, I get an exception about permission denied to create alfresco.log file.

Can anyone point out what am I doing wrong?

Thanks
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
That location works for me.

And have you checked the permissions of the folder that you are trying to add alfresco.log to?

nlfiedler
Champ in-the-making
Champ in-the-making
I run Tomcat as my own unprivileged user and the log file appender is pointing to my home directory, so I don't think permissions are the issue. The dev-log4j.properties file is simply silently ignored from what I can tell. Modifying the "Alfresco owned" copy of log4j.properties works, of course, but that would be choosing the sinful path.

mrogers
Star Contributor
Star Contributor
If you are using tomcat 6.    Have you remembered to set up the catalina class loader to include the "shared" folder?

Do any of your files in the shared folder work or is it just the dev-log4j that is not working?