Jira Fails to Start with MalformedURLException

Still need help?

The Atlassian Community is here for you.

Ask the community


Jira fails to start.

The following appears in the atlassian-jira.log:

2022-03-02 20:36:23,924-0700 localhost-startStop-1 ERROR      [c.a.c.service.client.ClientResourceLocator] 
	at java.net.URL.<init>(URL.java:645)
	at java.net.URL.<init>(URL.java:508)
	at java.net.URL.<init>(URL.java:457)
	at com.atlassian.crowd.service.client.BaseResourceLocator.getProperties(BaseResourceLocator.java:97)
	at com.atlassian.crowd.service.client.ClientPropertiesImpl.newInstanceFromResourceLocator(ClientPropertiesImpl.java:176)
	at com.atlassian.crowd.integration.rest.service.factory.RestCrowdHttpAuthenticationFactory.createInstance(RestCrowdHttpAuthenticationFactory.java:37)
	at com.atlassian.crowd.integration.rest.service.factory.RestCrowdHttpAuthenticationFactory.<clinit>(RestCrowdHttpAuthenticationFactory.java:20)
2022-03-02 18:00:34,274-0700 localhost-startStop-1 ERROR      [o.a.c.c.C.[Catalina].[localhost].[/jira]] Exception starting filter [trustedapps]
java.lang.NoClassDefFoundError: Could not initialize class com.atlassian.crowd.integration.rest.service.factory.RestCrowdHttpAuthenticationFactory
	at com.atlassian.jira.security.login.SSOSeraphAuthenticator.<init>(SSOSeraphAuthenticator.java:30)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)


Jira is configured to use Crowd for SSO authentication.


This is known to be caused by problems in the crowd.properties file, specifically:

  • It's not in the correct location.
  • Linux Only: The file is not owned by the user starting up Jira, thus JIRA cannot see the file.
  • The URLs in the file are malformed.


  1. Ensure that the crowd.properties file is located in the following location:
    1. <jira-install>/atlassian-jira/WEB-INF/classes/crowd.properties
  2. Ensure that the crowd.properties file is owned by the appropriate user:

    1. Check the file information with:

      ls -al
    2. Change the file owner with:

      chown <jirauser> crowd.properties
  3. Verify the URLs in the file are not malformed, for example:


    This should be:


    (info) These changes will require a restart of Jira to take effect.

(warning) If this error is happening while Crowd for SSO authentication isn't being used in your environment, please make sure that you're using the correct authenticator class in the seraph-config.xml file with the following steps:

  1.  Open the <jira-install>/atlassian-jira/WEB-INF/classes/seraph-config.xml file
  2.  Find the following line: <authenticator class="com.atlassian.jira.security.login.SSOSeraphAuthenticator"/> 
  3.  Replace it with the following to comment the authenticator class for Crowd SSO: <!-- <authenticator class="com.atlassian.jira.security.login.JiraSeraphAuthenticator"/> --> 
  4.  Find the following line: <!--<authenticator class="com.atlassian.jira.security.login.JiraSeraphAuthenticator"/> --> 
  5.  Replace it with the following to uncomment the default authenticator class: <authenticator class="com.atlassian.jira.security.login.JiraSeraphAuthenticator"/> 

      (info) These changes will require a restart of Jira to take effect.

Last modified on Mar 21, 2024

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.