Bamboo fails to startup, due to multiple deployments

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

Bamboo fails to start and this error is written in the logs:

2009-02-16 06:08:00,244 WARN [main] [ActiveManagementCoordinator] A C3P0Registry mbean is already registered.
...
2009-02-16 06:08:04,643 INFO [main] [KahaStore] Kaha Store using data directory /home/ci-admin/bamboo/jms-store/kaha.db
2009-02-16 06:08:04,655 ERROR [main] [BrokerService] Failed to start ActiveMQ JMS Message Broker. Reason: org.apache.activemq.kaha.impl.StoreLockedExcpetion: Kaha Store kaha.db is already opened by this application.
org.apache.activemq.kaha.impl.StoreLockedExcpetion: Kaha Store kaha.db is already opened by this application.
at org.apache.activemq.kaha.impl.KahaStore.lock(KahaStore.java:437)

Cause

Deploying Bamboo twice on the same application container.

For instance Tomcat's default server.xml has the following entry, which deploys any .war file in the webapps folder:

server.xml
<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
</Host>

If there is another entry in server.xml like:

<Host name="my.business.org" appBase="">
		<Context path="/" docBase="/usr/local/tomcat/apache-tomcat-6.0.18/webapps/bamboo" />
</Host>

then both the exploded WAR and the application given in the context above are deployed.

Resolution

  1. Unpack WAR manually to a place outside of Tomcat.
  2. Specify the the location in the <Context ... docBase="..." /> setting.

 

Last modified on Jun 24, 2013

Was this helpful?

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