Unable to start JIRA due to Java Error
Symptoms
JIRA unable to startup and the following appears in the atlassian-jira.log
:
2015-06-16 21:16:51,898 localhost-startStop-1 ERROR [atlassian.jira.startup.LauncherContextListener] Unable to start JIRA due to Java Error.
java.lang.NoSuchMethodError: com.atlassian.jira.component.ComponentAccessor.getComponentReference(Ljava/lang/Class;)Lcom/atlassian/jira/component/ComponentReference;
at com.atlassian.jira.startup.DatabaseLauncher.<init>(DatabaseLauncher.java:48)
at com.atlassian.jira.startup.DefaultJiraLauncher.<init>(DefaultJiraLauncher.java:63)
at com.atlassian.jira.startup.LauncherContextListener.contextInitialized(LauncherContextListener.java:71)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Diagnosis
JIRA is running on unsupported JDK version.
Cause
JIRA requires Oracle's (formerly Sun's) Java Development Kit (JDK) or Java Runtime Environment (JRE) platform to run. Refer to Supported Platforms for details on the Java platform versions that JIRA supports. During upgrade, due to unknown reason, the JIRA's Windows service is not recreated so that JIRA will use the JAVA that bundled in the installer.
Resolution
- Change to supported Oracle's JDK. You can refer to Installing Java.
- Restart JIRA.
Please check your System Information page JIRA Admin > System Information and see if JIRA is running on a supported JAVA version. If there is no changes, then if you are using Windows service to start and stop JIRA, then the Windows service might need to be recreated.
Before deleting the Windows service, please copy out all the additional JVM arguments in the service.
Open CMD and run the following command to check what version the JIRA is using:
tomcat7w //ES//<SERVICENAME>
Run the following command to delete the old JIRA service:
sc delete <SERVICENAME>
Please make sure you
cd
to "JIRA Installation Directory\bin". Run the following command to create JIRA service:service.bat install <SERVICENAME>
Please add all the additional JVM arguments from the deleted Windows Service to the new service.