Confluence crashes on startup when trying to integrate with Crowd 2.5.3
Asked by Sam Kenny:

We have followed the steps online to integrate Crowd 2.5.3 and Confluence 3.3. When try and restart Confluence it crashes with the exceptions below. We've traced it through and it appears to happen as soon as we copy crowd-integration-client-2.5.3.jar into CONFLUENCE confluence WEB-INF lib

Any ideas on what could be the cause of this?

INFO: Initialization processed in 1295 ms

Jan 4, 2013 5:29:33 PM org.apache.catalina.core.StandardService start

INFO: Starting service Tomcat-Standalone

Jan 4, 2013 5:29:33 PM org.apache.catalina.core.StandardEngine start

INFO: Starting Servlet Engine: Apache Tomcat/6.0.14

2013-01-04 17:29:39,380 INFO main com.atlassian.confluence.lifecycle context

Initialized Starting Confluence 3.3 (build #1911)

2013-01-04 17:29:45,786 INFO main atlassian.plugin.manager.DefaultPluginManag

er init Initialising the plugin system

2013-01-04 17:29:46,255 INFO main atlassian.plugin.manager.DefaultPluginManag

er init Plugin system started in 0:00:00.469

2013-01-04 17:29:46,973 ERROR main atlassian.confluence.setup.ConfluenceConfi

gurationListener contextInitialized An error was encountered while bootstrappin

g Confluence (see below):

Error creating bean with name 'com.atlassian.confluence.setup.webwork.XWorkConfi

gurationInitialiser' defined in class path resource bootstrapContext.xml : Invo

cation of init method failed; nested exception is java.lang.NoClassDefFoundError

: org/springframework/beans/factory/Aware

org.springframework.beans.factory.BeanCreationException: Error creating bean wit

h name 'com.atlassian.confluence.setup.webwork.XWorkConfigurationInitialiser' de

fined in class path resource bootstrapContext.xml : Invocation of init method f

ailed; nested exception is java.lang.NoClassDefFoundError: org/springframework/b

eans/factory/Aware

Caused by: java.lang.NoClassDefFoundError: org/springframework/beans/factory/Awa

re

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)

at java.lang.ClassLoader.defineClass(ClassLoader.java:616)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14

1)

at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp

ClassLoader.java:1817)

at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa

der.java:872)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa

der.java:1325)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa

der.java:1204)

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)

at java.lang.ClassLoader.defineClass(ClassLoader.java:616)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14

1)

at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp

ClassLoader.java:1817)

at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa....


Answers:
author: Sam Kenny
body: Upgrading to 3.5 fixed this issue.


author: JohnA
body: Hi Sam,

I believe the problem here is that Confluence 3.3 isn't compatible with Crowd 2.5.x because the Spring versions changed, which I believe would explain the error "Caused by: java.lang.NoClassDefFoundError: org/springframework/beans/factory/Aware" as this is certainly suggesting that there is a missing Spring-related class. Therefore I would suggest trying to hook up your Confluence to Crowd 2.4.x as these are still running on the same Spring version.

All the best,  
John

comments: author: Sam Kenny
body: Thanks. Its much asier to actually upgrade Confluence to 3.5(.13) - so we're going to do that.


Tags: crowd