Installing Bamboo with MS SQL Server fails with a "No WebApplicationContext found" exception

Still need help?

The Atlassian Community is here for you.

Ask the community

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


Configuring a fresh Bamboo installation with Microsoft SQL Server stalls on the database step. The following will be thrown in the logs:

2021-02-26 11:57:50,391 INFO [performSetupDatabaseConnectionBackgroundThread] [BrokerService] Using Persistence Adapter: KahaDBPersistenceAdapter[/data/bamboo-home/jms-store/bamboo/KahaDB]
2021-02-26 11:57:50,407 INFO [performSetupDatabaseConnectionBackgroundThread] [SharedFileLocker] Database /data/bamboo-home/jms-store/bamboo/KahaDB/lock is locked by another server. This broker is now in slave mode waiting a lock to be acquired
2021-02-26 11:57:53,789 ERROR [http-nio-8085-exec-17] [FiveOhOh] 500 Exception was thrown.
java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?
	at com.atlassian.bamboo.persistence.BambooSessionInViewFilter.doFilterInternal(
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at com.atlassian.bamboo.filter.BambooCompressingFilter.doFilter(
	at org.apache.catalina.core.StandardHostValve.invoke(
	at org.apache.catalina.valves.ErrorReportValve.invoke(
	at org.apache.catalina.core.StandardEngineValve.invoke(
	at org.apache.catalina.valves.StuckThreadDetectionValve.invoke(
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(
	at org.apache.catalina.connector.CoyoteAdapter.service(
	at org.apache.coyote.http11.Http11Processor.service(
	at org.apache.coyote.AbstractProcessorLight.process(
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$
	at org.apache.tomcat.util.threads.TaskThread$


Bamboo with Microsoft SQL Server as the database


A lock file is preventing Bamboo from connecting to the database.


Below is a workaround for this issue:

  1. Shutdown all Bamboo instances. Check for and kill any processes related to Bamboo (including Java and Tomcat ones)

  2. Delete the whole bamboo-home folder

  3. Drop the MS SQL Server database created for Bamboo, in order to avoid any corruptions

  4. Create a new database to be used by Bamboo following these specific steps

  5. Ensure that the user which will be used to start Bamboo has complete ownership and full access to both bamboo-home and bamboo-installation folders

  6. Restart the installation

Last modified on Mar 30, 2021

Was this helpful?

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