Error: Unable to access jarfile confluence-context-path-extractor.jar

お困りですか?

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

コミュニティに質問


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

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

問題

On startup, after executing ./start-confluence.sh the following appears in the shell output:

Using Java: /opt/openjdk/jdk8u202-b08/bin/java
Error: Unable to access jarfile /opt/atlassian/confluence/bin/confluence-context-path-extractor.jar/opt/atlassian/confluence

診断

環境

  • Confluence Server または Data Center

The commands in the above error come from the <confluence-install>/bin/setenv.sh file. Note in the above error that the path is repeated after the .jar file:

/opt/atlassian/confluence/bin/confluence-context-path-extractor.jar/opt/atlassian/confluence

原因

The relevant section in the setenv.sh file is missing a space between "confluence-context-path-extractor.jar" and "$CATALINA_HOME" as seen below:

echo "---------------------------------------------------------------------------"
echo "Using Java: $JRE_HOME/bin/java"
CONFLUENCE_CONTEXT_PATH=`$JRE_HOME/bin/java -jar $CATALINA_HOME/bin/confluence-context-path-extractor.jar$CATALINA_HOME`
export CONFLUENCE_CONTEXT_PATH
$JRE_HOME/bin/java -jar $CATALINA_HOME/bin/synchrony-proxy-watchdog.jar $CATALINA_HOME
echo "---------------------------------------------------------------------------"


ソリューション


Change this line in setenv.sh:

CONFLUENCE_CONTEXT_PATH=`$JRE_HOME/bin/java -jar $CATALINA_HOME/bin/confluence-context-path-extractor.jar$CATALINA_HOME`

To look like this example which includes a space between the .jar and the $ sign:

CONFLUENCE_CONTEXT_PATH=`$JRE_HOME/bin/java -jar $CATALINA_HOME/bin/confluence-context-path-extractor.jar $CATALINA_HOME`

Then, restart Confluence for the changes to take effect.


説明 Error: Unable to access jarfile confluence-context-path-extractor.jar on startup java
製品Confluence Server Data Center
Last modified on Mar 22, 2019

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

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