java.net.MalformedURLException unknown protocol c
プラットフォームについて: 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 は除く
問題
When configuring SSL in server.xml
, the following appears in the catalina.out
:
30-Jun-2016 15:21:23.577 SEVERE [main] org.apache.coyote.AbstractProtocol.init Failed to initialize end point associated with ProtocolHandler ["http-nio-443"]
java.net.MalformedURLException: unknown protocol: c
原因
The keystoreFile
configuration in the connector is misconfigured. There are two possible causes:
- A
/
slash has been used instead of a\
slash - The
keystoreFile
path is incorrect
ソリューション
Depending on the cause from above, there are different solutions. Both involve changes to the server.xml
located in <BITBUCKET_HOME
>/shared
:
- Change all
/
to\
in the path forkeystoreFile
- Check that the keystore path set in
keystoreFile
points to the correct location
Bitbucket Server 5.0
Bitbucket Server 5.0 以降では Tomcat のコネクタを直接設定することができません。このため、このセクションの設定は、Bitbucket Server 4.14 以前でのみ利用できます。
server.xml
の設定は、<Bitbucket home directory>
/shared/bitbucket.properties
で置き換えられています。
The keystoreFile
attribute has been replaced by ssl.key-store
.