Jira server throws java.io.FileNotFoundException warnings after upgrade

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.

Problem

The following missing .jar file warning appears in the atlassian-jira.log during startup.

2017-01-13 11:18:23,272 localhost-startStop-1 WARN      [o.a.t.util.scan.StandardJarScanner] Failed to scan [file:/opt/atlassian/jira/lib/classes12.jar] from classloader hierarchy
java.io.FileNotFoundException: /opt/atlassian/jira/lib/classes12.jar (No such file or directory)
	at java.util.zip.ZipFile.open(Native Method)
	at java.util.zip.ZipFile.<init>(ZipFile.java:219)
	at java.util.zip.ZipFile.<init>(ZipFile.java:149)
	at java.util.jar.JarFile.<init>(JarFile.java:166)
	at java.util.jar.JarFile.<init>(JarFile.java:130)
	at org.apache.tomcat.util.scan.JarFileUrlJar.<init>(JarFileUrlJar.java:60)
	at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:48)
	at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:338)
	at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:288)
	... 9 filtered
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Other .jar files can include:

idb.jar 
classes12.jar 
p6psy.jar
commons-cli.jar
jts1_0.jar
carol.jar
jonas_timer.jar 

Diagnosis

JIRA starts up normally and operates normally after upgrade from version 6.4.x to 7.x and the file server.xml was replicated from the old version to the new version.

Cause

The root cause of the issue is that we switch to Tomcat 8 since JIRA 7 and the JAR manifest scan is turn on by default. 


Workaround

 we disable this feature on Tomcat by adding the following line in the file server.xml and context.xml before the end of Context tag:

<JarScanner scanManifest="false"/>

The warning message will be gone after next restart.


DescriptionA "missing .jar file" warning appears in the atlassian-jira.log during startup
ProductJira
Last modified on Sep 25, 2019

Was this helpful?

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