Folders missing execute permission causing Jira Server startup and class loading error

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.


Folders missing execute permission causes class loading errors in Jira. Execute permission allows operating system user to enter the directory and access to any of its files. When the permission does not exist, Jira can throw exceptions in Tomcat logs while starting like the following example. This exception will also fail Jira to write any log4j logs.

08-Jul-2021 18:13:34.682 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.57
log4j:ERROR Could not instantiate class [com.atlassian.jira.logging.JiraHomeAppender].
java.lang.ClassNotFoundException: com.atlassian.jira.logging.JiraHomeAppender
	at java.lang.ClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(
	at org.apache.log4j.helpers.Loader.loadClass(
	at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(
	at org.apache.log4j.helpers.OptionConverter.instantiateByKey(
	at org.apache.log4j.PropertyConfigurator.parseAppender(
	at org.apache.log4j.PropertyConfigurator.parseCategory(
	at org.apache.log4j.PropertyConfigurator.configureRootCategory(
	at org.apache.log4j.PropertyConfigurator.doConfigure(
	at org.apache.log4j.PropertyConfigurator.doConfigure(
	at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(
	at org.apache.log4j.LogManager.<clinit>(
	at org.apache.log4j.Logger.getLogger(
	at com.atlassian.logging.log4j.juli.JuliToLog4jHandler.publish(
	at java.util.logging.Logger.log(
	at java.util.logging.Logger.doLog(
	at java.util.logging.Logger.logp(
	at org.apache.juli.logging.DirectJDKLog.log(
	at org.apache.jasper.servlet.TldScanner.scanJars(
	at org.apache.jasper.servlet.TldScanner.scan(
	at org.apache.jasper.servlet.JasperInitializer.onStartup(
	at org.apache.catalina.core.StandardContext.startInternal(
	at org.apache.catalina.util.LifecycleBase.start(
	at org.apache.catalina.core.ContainerBase$
	at org.apache.catalina.core.ContainerBase$
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$
log4j:ERROR Could not instantiate appender named "filelog".
log4j:ERROR Could not instantiate class [com.atlassian.jira.logging.JiraHomeAppender].

If the execute permission on directories removed while Jira was already started, warnings may occur in atlassian-jira.log files.

Unable to run plugin code because of 'org.apache.velocity.exception.VelocityException - Could not find template 'jira.footer:standard-footer/templates/plugins/footer/license-link.vm' ensure it is in the classpath.'.


In order to quickly identify folders that does not have execute permissions at owner level, execute the following commands.

find <Installation-Directory> -type d -not -perm /100
find <Home-Directory> -type d -not -perm /100


Any action that would change permission of files/directories like chmod command might cause this issue. 


Execute the following command on folders with permission problem.

chmod -R u=rwx,g=rx,o=rx /path/to/folder

Last modified on Jul 15, 2021

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.