Unable to Start Tomcat after Confluence User Management Delegation to JIRA
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
When delegating Confluence user management to JIRA, Tomcat does not start after setting up the datasource to JIRA.
catalina.out
contains the following error:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Sep 4, 2009 2:10:44 PM org.apache.catalina.core.NamingContextListener addResource
WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory instance [Root exception is
java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory]
2009-09-04 14:10:44,637 INFO [main] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 3.0.0_01 (build
#1627)
2009-09-04 14:10:44,845 INFO [main] [beans.factory.xml.XmlBeanDefinitionReader] loadBeanDefinitions Loading XML bean definitions
from class path resource [bootstrapContext.xml]
2009-09-04 14:10:45,209 INFO [main] [beans.factory.xml.XmlBeanDefinitionReader] loadBeanDefinitions Loading XML bean definitions
from class path resource [setupContext.xml]
Sep 4, 2009 2:10:59 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Sep 4, 2009 2:10:59 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/confluence] startup failed due to previous errors
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
Sep 4, 2009 2:11:01 PM org.apache.catalina.core.ApplicationContext log
Cause
Some Tomcat versions (usually when bundled from some Linux distributions) do not have the naming-factory-dbcp.jar file in the library.
Resolution
Download the version-appropriate Tomcat binary distribution from Apache's website, and copy the naming-factory-dbcp.jar file from <tomcat>/common/lib/ (Tomcat 5.x) or <tomcat>/lib (Tomcat 6.x) into the directory of the same name.
Was this helpful?