cancel
Showing results for 
Search instead for 
Did you mean: 

log4j.properties related problem.

jml75
Champ in-the-making
Champ in-the-making
Hi,

In file /var/lib/tomcat5.5/webapps/alfresco/WEB-INF/classes/log4j.properties, I know I can change the default location where the file alfresco.log is created but I don't want to touch it.

Is there a way to make alfresco use the file /usr/share/tomcat5.5/shared/classes/alfresco/extension/log4j.properties instead so next time I redeploy the alfresco war file, the changes made to it are not overwriten?

I tried both /usr/share/tomcat5.5/shared/classes/alfresco/extension/log4j.properties and /usr/share/tomcat5.5/shared/classes/alfresco/extension/custom-log4j.properties

But alfresco ignors them and uses /var/lib/tomcat5.5/webapps/alfresco/WEB-INF/classes/log4j.properties instead and if I don't change the line log4j.appender.File.File=alfresco.log to log4j.appender.File.File=/var/log/tomcat5.5/alfresco.log, I get error java.security.AccessControlException: access denied (java.io.FilePermission alfresco.log write).

Does anyone have an answer for this?

Thanx!
3 REPLIES 3

jml75
Champ in-the-making
Champ in-the-making
I finally found a way to bypass this!!!

Simply copy the file "/var/lib/tomcat5.5/webapps/alfresco/WEB-INF/classes/log4j.properties" in "/usr/share/tomcat5.5/common/classes" and edit it there.

After just restart tomcat server!

P.S.: I don't know thought if this will interfere with any other tomcat apps…

jml75
Champ in-the-making
Champ in-the-making
Actually, sorry, the problem is not solved. I restarted the server and then I was again stuck with the message that is is impossible to write to the file alfresco.log.

I'm a bit lost…

Any one with any hints?

rickie
Champ in-the-making
Champ in-the-making
Try to copy your changes to alfresco.war. War file is "normal" zip.

Rickie
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.