log4j.properties for tomcat container does not work with the jira war install

I recently installed the latest Jira war install and I am not able to implement the log4.properties for the tomcat container. The log4j.properties configuration for Jira is working great however I am not able to use the tomcat 7 /lib/log4j.properties for the catalina.out log. I am configuring the log4j.properties file so that the catalina out file can be rotated. Does anyone know why this is happening? Is it because of the slf4j jar files that come with jira? Is there a work around?

1 answer

I just had a similar problem while migrating a hosting customer's Jira 4.0 to a new server using our tomcat 7 debian-package (see https://confluence.clazzes.org/x/wwAj).

The solution is to update the log4j properties file in the jira war file with the customized logj4.properties from jira/webapps/jira/WEB-INF/classes/log4j.properties, like this:

cd /opt/jira/webapps/jira

jar uf ../../installation/atlassian-jira-4.0.war WEB-INF/classes/log4j.properties

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Feedback & Announcements

How do you analyze GC logs, thread dumps and head dumps?

Hi awesome community!  In this article, I would like to describe the one of the toolset (service) for the analyze some problems on different Java-based instances, of course, as Atlassian admini...

74 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you