java.net.MalformedURLException unknown protocol c
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
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.
*Except Fisheye and Crucible
Problem
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
Cause
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
Resolution
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
As of Bitbucket Server 5.0, you can't configure any Tomcat connectors directly, therefore the configurations in this section only apply for Bitbucket server 4.14 or earlier.
server.xml
configurations have been replaced by <Bitbucket home directory>
/shared/bitbucket.properties
The keystoreFile
attribute has been replaced by ssl.key-store
.