Unable to Start Due to 'configure JDBC Driver class not found com.mysql.jdbc.Driver'
プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。
このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
症状
This occurs during an upgrade process:
2008-01-16 19:44:11,497 FATAL [main] [sf.hibernate.connection.C3P0ConnectionProvider] configure JDBC Driver class not found: com.mysql.jdbc.Driver
2008-01-16 19:44:11,504 ERROR [main] [springframework.web.context.ContextLoader] initWebApplicationContext Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultTxAdvice': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [databaseSubsystemContext.xml]:
Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [productionDatabaseContext.xml]:
Invocation of init method failed;
nested exception is net.sf.hibernate.HibernateException: JDBC Driver class not found: com.mysql.jdbc.Driver
原因
The appropriate jdbc driver (in this example the MySQL jdbc driver) has not been installed or copied from the old instance.
ソリューション
Copy the jdbc from your old installation to your new installation, or download the latest driver from the manufacturer's website. The driver can be found either at common/lib
directory or confluence/WEB-INF/lib
directory.
For MySQL, please see the complete list of steps to download and install the JDBC driver in this page.