Unable to connect to MySQL database - Exception attempting to load Database driver

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

Unable to migrate to MySQL database with the following error: 

Unable to load database driver from your FISHEYE_INST/lib directory. Please check the JDBC driver jar is properly installed.

 

atlassian-fisheye-<date>.log に次のメッセージが表示される。

2013-04-11 12:54:46,200 WARN  - Exception attempting to load Database driver
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at com.atlassian.crucible.actions.admin.database.TestDBConnectionAjaxAction.checkDriverClass(TestDBConnectionAjaxAction.java:53)
        at com.atlassian.crucible.actions.admin.database.TestDBConnectionAjaxAction.execute(TestDBConnectionAjaxAction.java:27)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

原因

Fisheye 2.9+, the JDBC driver for MySQL is not bundled with Fisheye/Crucible (due to licensing restrictions).

ソリューション

  1. Stop Fisheye/Crucible
  2. Download the MySQL Connector/J JDBC driver from the download site
  3. Expand the downloaded zip/tar.gz file
  4. Copy the mysql-connector-java-5.1.XX-bin.jar file from the extracted directory to your FISHEYE_INST/lib directory
  5. Make sure that the user who start Fisheye/Crucible has the file permission to execute the jar file
  6. Start Fisheye/Crucible

最終更新日 2018 年 11 月 2 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.