JIRA Service Fails To Start in Windows - Is Not a Valid Win32 Application

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

JIRA Service fails to start in Windows with the following error in the Windows event log:

Event ID 7000 and "%1 Is Not a Valid Win32 Application"

The following appears in commons-daemon.log for Apache Tomcat:

[2012-11-24 13:37:25] [info]  Running 'jira' Service...
[2012-11-24 13:37:25] [info]  Starting service...
[2012-11-24 13:37:25] [error] %1 is not a valid Win32 application.
[2012-11-24 13:37:25] [error] Failed creating java C:\Progra~2\Java\jdk1.6.0_24\jre\bin\server\jvm.dll
[2012-11-24 13:37:25] [error] %1 is not a valid Win32 application.
[2012-11-24 13:37:25] [error] ServiceStart returned 1
[2012-11-24 13:37:25] [error] %1 is not a valid Win32 application.
[2012-11-24 13:37:25] [info]  Run service finished.
[2012-11-24 13:37:25] [info]  Commons Daemon procrun finished

原因

There are a number of known causes for this problem:

  1. Windows has issues with services that have spaces in the file path as described in this Microsoft article. The root cause of this issue can be due to the the JIRA service using the JRE/JDK that is installed in the system rather than the bundled JRE that came along with the Standalone Installer for Windows. And the installed JRE usually has a space in the path as it is usually at the location "C:\Program Files (x86)\Java" or "C:\Progam Files\Java".
  2. JIRA has been installed in a 64-bit Windows version using the 64-bit installer, however is using 32-bit Java.
  3. JIRA has been installed in a 64-bit Windows version using the 32-bit installer, however is using 64-bit Java.
  4. Service.bat could be pointing to the wrong version of Tomcat. If JIRA is using 64-bit Java on 64 bit Windows, service.bat could be pointing to the 32bit tomcat8w.exe, hence the incompatibility and not being able to start the service.
  5. Due to a known bug  JRA-30699 - Getting issue details... STATUS  the installer has not defaulted to the bundled JRE.

When installing JIRA onto a 64-bit Windows, we recommend to use the 64-bit installer and bundled JRE as using 32-bit on 64-bit architecture is known to cause problems as in our JIRA crashes when running as a Windows Service KB article.

回避策

Try to start JIRA using the start-jira.bat file in JIRA's bin directory to restore access until the Windows Service is fixed. If this doesn't work, it could be due to the %JAVA_HOME% variable pointing to the incorrect JVM as well.

ソリューション 

  1. Verify that JIRA is using the correct JVM by editing the service, as in our Setting Properties and Options on Startup documentation. If the bundled installer was used, the JVM should be the following:

    C:\Program Files\Atlassian\JIRA\jre\bin\server\jvm.dll

    (info) This may be in Program Files (x86) if using Windows 64-bit and JIRA 32-bit. If this is how your JIRA is configured, we recommend migrating to 64-bit JIRA on 64-bit Windows.

  2. Start JIRA using the Service.
  3. If this does not resolve the problem, delete the %JAVA_HOME% environment variable, as set in our Installing Java docs.
  4. Reinstall the service with the following, executing on the command line in <JIRA_INSTALL>/bin:

    service.bat remove
    service.bat install
  5. After reinstalling the service, attempt to start it.

 (info)  Check the service.bat file and make sure it is pointing to the right version of tomcat. If using 32 bit Java: set ”EXECUTABLE=%CATALINA_HOME%\bin\tomcat8w.exe” If using 64bit Java: set  “EXECUTABLE=%CATALINA_HOME%\bin\tomcat8w.exe.x64”. Remove and Reinstall service.

"There has been some report as "tomcat8w.exe.x64" is being removed after the upgrade process from under the bin folder so you need to install the 64 bit tomcat and place it under the bin folde for the "atlassian-jira-software.x.x.x\bin"."

最終更新日 2020 年 1 月 24 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.