Upgrading Confluence Causes 'java.lang.ClassNotFoundException - com.atlassian.confluence.user.ConfluenceLoginInterceptor'
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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
Symptoms
Server fails to start with the following error:
1
2
3
4
5
6
7
2010-07-08 07:10:29,839 ERROR [Spring executor 1] [plugin.osgi.factory.OsgiPlugin] onSpringContextFailed Unable to start the Spring context for plugin com.atlassian.confluence.plugins.confluence-sal-plugin
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationController' defined in URL [bundle://29.0:0/META-INF/spring/atlassian-plugins-components.xml]: Instantiation of bean failed; nested exc
eption is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.sal.core.auth.SeraphAuthenticationController]: Constructor threw exception; nested exception is java.lang.RuntimeException: C
ould not load security config 'seraph-config.xml': Exception configuring from 'seraph-config.xml : com.atlassian.seraph.config.ConfigurationException: Could not getRequest service: com.atlassian.confluence.user.ConfluenceLoginInterceptor
: java.lang.ClassNotFoundException: com.atlassian.confluence.user.ConfluenceLoginInterceptor
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
...
Causes
The 'login-logger' interceptor provided logging facilities for the Confluence login process. This included logging the last and previous login dates for a particular user as they log in to Confluence. The ConfluenceLoginInterceptor has been removed in Confluence and it's functionality migrated to the LoginManager. In some upgrade situations, the seraph-config.xml
configuration file would have been migrated from an earlier version which has this 'login-logger' interceptor declared.
Resolution
Modify the seraph-config.xml
file and remove the following entry:
1
<interceptor name="login-logger" class="com.atlassian.confluence.user.ConfluenceLoginInterceptor"/>
Was this helpful?