Fisheye/Crucible with MySQL does not start
症状
Fisheye/Crucible with MySQL does not start.
atlassian-fisheye-<date>.log
に次のメッセージが表示される。
2012-12-31 07:45:03,914 INFO - Starting database...
2012-12-31 07:45:03,932 ERROR - The Web context could not be started
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbControlFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cenqua.crucible.hibernate.DBControlFactoryImpl]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Database not available (Unable to connect to MySQL database jdbc:mysql://localhost/fisheye: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver: is the database driver jar file properly installed in the FISHEYE_INST/lib directory?). Current state: NO_DB
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
...
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.cenqua.crucible.hibernate.DBControlFactoryImpl]: Constructor threw exception; nested exception is java.lang.IllegalStateException: Database not available (Unable to connect to MySQL database jdbc:mysql://localhost/fisheye: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver: is the database driver jar file properly installed in the FISHEYE_INST/lib directory?). Current state: NO_DB
...
Caused by: java.lang.IllegalStateException: Database not available (Unable to connect to MySQL database jdbc:mysql://localhost/fisheye: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver: is the database driver jar file properly installed in the FISHEYE_INST/lib directory?). Current state: NO_DB
原因
The JDBC driver for MySQL is not bundled with Fisheye/Crucible 2.9+ (due to licensing restrictions).
ソリューション
- Download the MySQL Connector/J JDBC driver from the MySQL download website.
- Expand the downloaded zip/tar.gz file.
- Copy the
.jar
file to yourFISHEYE_INST/lib
directory. If thelib/
directory doesn't already exist, you will need to create it. - Restart Fisheye/Crucible.
最終更新日 2018 年 11 月 2 日
Powered by Confluence and Scroll Viewport.