Confluence Fails to Start After Crowd Integration

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

An error similar to below is found in atlassian-confluence.log:

2009-12-22 11:59:09,408 ERROR [main] [springframework.web.context.ContextLoader] initWebApplicationContext 
Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'pluginResourceLocator' defined in class path resource [services/pluginServiceContext.xml]: 
Cannot resolve reference to bean 'webResourceIntegration' while setting constructor argument with index 0; 
nested exception is 
:
:
: <massive caused by clauses>
:
Caused by: java.lang.RuntimeException: Cannot specify repository without a key
	at com.atlassian.user.configuration.xml.XMLConfigurationParser.parseRepositoryIdentifier(XMLConfigurationParser.java:159)
	at com.atlassian.user.configuration.xml.XMLConfigurationParser.parseRepositories(XMLConfigurationParser.java:112)
	at com.atlassian.user.configuration.xml.XMLConfigurationParser.parse(XMLConfigurationParser.java:79)
	at com.atlassian.user.configuration.xml.XMLConfiguration.init(XMLConfiguration.java:91)

Cause

Confluence Atlassian User component failed to parse the configuration set in <confluence install>/confluence/WEB-INF/classes/atlassian-user.xml. A wrong configuration used in the file can cause this. For example, you may have duplicate <atlassian-user> and <repositories> as a result of copy and paste:

<atlassian-user> 
    <repositories> 
          <atlassian-user> 
              <repositories> 
                  <crowd key="crowd" name="Crowd Repository"/> 
              </repositories> 
          </atlassian-user> 
    </repositories> 
</atlassian-user>

Resolution

Make sure that your atlassian-user.xml only contains the following:

<atlassian-user>
    <repositories>
        <crowd key="crowd" name="Crowd Repository"/>
    </repositories>
</atlassian-user>

Last modified on Mar 30, 2016

Was this helpful?

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