Bitbucket Server installer fails to run with java.lang.NoClassDefFoundError: java.awt.Container

お困りですか?

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

コミュニティに質問

プラットフォームについて: Server と Data Center のみ - この記事は、サーバーおよびデータセンター プラットフォームのアトラシアン製品にのみ適用されます。

問題

When running the console installer for Bitbucket Server on a headless Linux server, the following error is thrown:

$ ./atlassian-bitbucket-x.x.x-x64.bin
Starting Installer ...
tarting Installer ...
 java.lang.NoClassDefFoundError: java.awt.Container
         at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:67)
         at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(ConsoleScreenExecutor.java:24)
         at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(InstallerConsoleScreenExecutor.java:6)
         at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:92)
         at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:58)
         at com.install4j.runtime.installer.Installer.main(Installer.java:46)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:498)
         at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
         at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)
 An error occurred:
 java.lang.NoClassDefFoundError: java.awt.Container
 Error log: /tmp/install4jError6204005887897864242.log
 java.lang.NoClassDefFoundError: java.awt.Container
         at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:67)
         at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(ConsoleScreenExecutor.java:24)
         at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(InstallerConsoleScreenExecutor.java:6)
         at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:92)
         at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:58)
         at com.install4j.runtime.installer.Installer.main(Installer.java:46)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:498)
         at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
         at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)

原因

This is caused by the Linux server being headless so that the installer cannot display the GUI (refer to Running the Bitbucket Server installer for more details).

ソリューション

Run the installer in console mode: 

./atlassian-bitbucket-x.x.x-x64.bin -c


最終更新日 2018 年 11 月 2 日

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

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