com.atlassian.stash.internal.backup.client.RestoreException: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath E:\atlassian tools\stash-backup-client-1.5.0\. and try again.

Atlassian JIRA | Mikael Kildahl | 2 years ago
  1. 0

    What am i doing wrong? I've created the jdbc directory, but i still can't find it. 2014-10-27 16:57:56,510 WARN [main] c.a.s.i.b.c.c.ClassLoaderUtils The jdbc directory does not exist. Jars will not be added to the classpath 2014-10-27 16:57:56,557 INFO [main] c.a.s.i.b.client.spring.SpringMain Initializing 2014-10-27 16:57:57,651 INFO [main] c.a.s.i.b.c.DefaultRestoreClient Unpacking stash-20141027-141449-570.tar to E:\StashData 2014-10-27 16:58:02,979 DEBUG [main] c.a.s.i.b.c.DefaultRestoreClient Unpacking system backup to E:\StashData\shared 2014-10-27 16:58:03,041 DEBUG [main] c.a.s.i.b.c.DefaultRestoreClient Unpacking database schema definition to E:\StashData\tmp 2014-10-27 16:58:03,104 ERROR [main] c.a.s.i.backup.client.RestoreMain stash-20141027-141449-570.tar could not be restored. Reason: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath E:\atlassian tools\stash-backup-client-1.5.0\. and try again. com.atlassian.stash.internal.backup.client.RestoreException: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath E:\atlassian tools\stash-backup-client-1.5.0\. and try again. at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.createDataSource(DefaultRestoreClient.groovy:154) ~[stash-restore-client.jar:1.5.0] at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.withDataSource(DefaultRestoreClient.groovy:253) ~[stash-restore-client.jar:1.5.0] at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.restoreDatabase(DefaultRestoreClient.groovy:207) ~[stash-restore-client.jar:1.5.0] at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.restoreSystem(DefaultRestoreClient.groovy:241) ~[stash-restore-client.jar:1.5.0] at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.restore(DefaultRestoreClient.groovy:72) ~[stash-restore-client.jar:1.5.0] at com.atlassian.stash.internal.backup.client.spring.SpringMain.run(SpringMain.groovy:28) [stash-backup-core-1.5.0.jar:na] at com.atlassian.stash.internal.backup.client.RestoreMain.main(RestoreMain.groovy:56) [stash-restore-client.jar:1.5.0] at com.atlassian.stash.internal.backup.client.JavaVersionCheckingShim.invokeClientClassMain(JavaVersionCheckingShim.java:71) [stash-restore-client.jar:1.5.0] at com.atlassian.stash.internal.backup.client.JavaVersionCheckingShim.run(JavaVersionCheckingShim.java:85) [stash-restore-client.jar:1.5.0] ... 49 frames suppressed Caused by: java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_25] at java.net.URLClassLoader.findClass(Unknown Source) ~[na:1.8.0_25] at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_25] at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_25] at java.lang.Class.forName0(Native Method) ~[na:1.8.0_25] at java.lang.Class.forName(Unknown Source) ~[na:1.8.0_25] at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.createDataSource(DefaultRestoreClient.groovy:150) ~[stash-restore-client.jar:1.5.0] ... 47 common frames omitted ... 3 frames suppressed

    Atlassian JIRA | 2 years ago | Mikael Kildahl
    com.atlassian.stash.internal.backup.client.RestoreException: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath E:\atlassian tools\stash-backup-client-1.5.0\. and try again.
  2. 0

    What am i doing wrong? I've created the jdbc directory, but i still can't find it. 2014-10-27 16:57:56,510 WARN [main] c.a.s.i.b.c.c.ClassLoaderUtils The jdbc directory does not exist. Jars will not be added to the classpath 2014-10-27 16:57:56,557 INFO [main] c.a.s.i.b.client.spring.SpringMain Initializing 2014-10-27 16:57:57,651 INFO [main] c.a.s.i.b.c.DefaultRestoreClient Unpacking stash-20141027-141449-570.tar to E:\StashData 2014-10-27 16:58:02,979 DEBUG [main] c.a.s.i.b.c.DefaultRestoreClient Unpacking system backup to E:\StashData\shared 2014-10-27 16:58:03,041 DEBUG [main] c.a.s.i.b.c.DefaultRestoreClient Unpacking database schema definition to E:\StashData\tmp 2014-10-27 16:58:03,104 ERROR [main] c.a.s.i.backup.client.RestoreMain stash-20141027-141449-570.tar could not be restored. Reason: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath E:\atlassian tools\stash-backup-client-1.5.0\. and try again. com.atlassian.stash.internal.backup.client.RestoreException: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath E:\atlassian tools\stash-backup-client-1.5.0\. and try again. at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.createDataSource(DefaultRestoreClient.groovy:154) ~[stash-restore-client.jar:1.5.0] at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.withDataSource(DefaultRestoreClient.groovy:253) ~[stash-restore-client.jar:1.5.0] at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.restoreDatabase(DefaultRestoreClient.groovy:207) ~[stash-restore-client.jar:1.5.0] at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.restoreSystem(DefaultRestoreClient.groovy:241) ~[stash-restore-client.jar:1.5.0] at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.restore(DefaultRestoreClient.groovy:72) ~[stash-restore-client.jar:1.5.0] at com.atlassian.stash.internal.backup.client.spring.SpringMain.run(SpringMain.groovy:28) [stash-backup-core-1.5.0.jar:na] at com.atlassian.stash.internal.backup.client.RestoreMain.main(RestoreMain.groovy:56) [stash-restore-client.jar:1.5.0] at com.atlassian.stash.internal.backup.client.JavaVersionCheckingShim.invokeClientClassMain(JavaVersionCheckingShim.java:71) [stash-restore-client.jar:1.5.0] at com.atlassian.stash.internal.backup.client.JavaVersionCheckingShim.run(JavaVersionCheckingShim.java:85) [stash-restore-client.jar:1.5.0] ... 49 frames suppressed Caused by: java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_25] at java.net.URLClassLoader.findClass(Unknown Source) ~[na:1.8.0_25] at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_25] at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_25] at java.lang.Class.forName0(Native Method) ~[na:1.8.0_25] at java.lang.Class.forName(Unknown Source) ~[na:1.8.0_25] at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.createDataSource(DefaultRestoreClient.groovy:150) ~[stash-restore-client.jar:1.5.0] ... 47 common frames omitted ... 3 frames suppressed

    Atlassian JIRA | 2 years ago | Mikael Kildahl
    com.atlassian.stash.internal.backup.client.RestoreException: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath E:\atlassian tools\stash-backup-client-1.5.0\. and try again.
  3. 0

    If there is a space in the path to where the restore client is located, it will fail to find the JDBC folder and drivers causing the restore to fail. {code}2015-01-26 17:11:47,072 WARN The jdbc directory does not exist. Jars will not be added to the classpath 2015-01-26 17:11:47,150 INFO Initializing 2015-01-26 17:11:49,666 INFO Unpacking stash-20150123-153732-214.tar to D:\Atlassian\ApplicationData\Stash 2015-01-26 17:11:50,479 ERROR stash-20150123-153732-214.tar could not be restored. Reason: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath D:\Backup Client\stash-backup-client-1.6.0\. and try again. com.atlassian.stash.internal.backup.client.RestoreException: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath D:\Backup Client\stash-backup-client-1.6.0\. and try again. at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.createDataSource(DefaultRestoreClient.groovy:165) ~[stash-restore-client.jar:1.6.0] at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.withDataSource(DefaultRestoreClient.groovy:264) ~[stash-restore-client.jar:1.6.0] ... 7 more frames available in the log file{code} The issue above is that the client is located in the {{Backup Client}} folder. *Workaround* Move the client to a directory path that does not contain any spaces. ie. {{D:/Backup_Client/stash-backup-client-1.6.0/}}

    Atlassian JIRA | 2 years ago | Jeff Thomas
    com.atlassian.stash.internal.backup.client.RestoreException: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath D:\Backup Client\stash-backup-client-1.6.0\. and try again.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    If there is a space in the path to where the restore client is located, it will fail to find the JDBC folder and drivers causing the restore to fail. {code}2015-01-26 17:11:47,072 WARN The jdbc directory does not exist. Jars will not be added to the classpath 2015-01-26 17:11:47,150 INFO Initializing 2015-01-26 17:11:49,666 INFO Unpacking stash-20150123-153732-214.tar to D:\Atlassian\ApplicationData\Stash 2015-01-26 17:11:50,479 ERROR stash-20150123-153732-214.tar could not be restored. Reason: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath D:\Backup Client\stash-backup-client-1.6.0\. and try again. com.atlassian.stash.internal.backup.client.RestoreException: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath D:\Backup Client\stash-backup-client-1.6.0\. and try again. at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.createDataSource(DefaultRestoreClient.groovy:165) ~[stash-restore-client.jar:1.6.0] at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.withDataSource(DefaultRestoreClient.groovy:264) ~[stash-restore-client.jar:1.6.0] ... 7 more frames available in the log file{code} The issue above is that the client is located in the {{Backup Client}} folder. *Workaround* Move the client to a directory path that does not contain any spaces. ie. {{D:/Backup_Client/stash-backup-client-1.6.0/}}

    Atlassian JIRA | 2 years ago | Jeff Thomas
    com.atlassian.stash.internal.backup.client.RestoreException: The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath D:\Backup Client\stash-backup-client-1.6.0\. and try again.

    Root Cause Analysis

    1. com.atlassian.stash.internal.backup.client.RestoreException

      The configured JDBC driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, is not available on the classpath. Ensure the jar for the driver is present in the "jdbc" directory beneath E:\atlassian tools\stash-backup-client-1.5.0\. and try again.

      at com.atlassian.stash.internal.backup.client.DefaultRestoreClient.createDataSource()
    2. com.atlassian.stash
      JavaVersionCheckingShim.run
      1. com.atlassian.stash.internal.backup.client.DefaultRestoreClient.createDataSource(DefaultRestoreClient.groovy:154)[stash-restore-client.jar:1.5.0]
      2. com.atlassian.stash.internal.backup.client.DefaultRestoreClient.withDataSource(DefaultRestoreClient.groovy:253)[stash-restore-client.jar:1.5.0]
      3. com.atlassian.stash.internal.backup.client.DefaultRestoreClient.restoreDatabase(DefaultRestoreClient.groovy:207)[stash-restore-client.jar:1.5.0]
      4. com.atlassian.stash.internal.backup.client.DefaultRestoreClient.restoreSystem(DefaultRestoreClient.groovy:241)[stash-restore-client.jar:1.5.0]
      5. com.atlassian.stash.internal.backup.client.DefaultRestoreClient.restore(DefaultRestoreClient.groovy:72)[stash-restore-client.jar:1.5.0]
      6. com.atlassian.stash.internal.backup.client.spring.SpringMain.run(SpringMain.groovy:28)[stash-backup-core-1.5.0.jar:na]
      7. com.atlassian.stash.internal.backup.client.RestoreMain.main(RestoreMain.groovy:56)[stash-restore-client.jar:1.5.0]
      8. com.atlassian.stash.internal.backup.client.JavaVersionCheckingShim.invokeClientClassMain(JavaVersionCheckingShim.java:71)[stash-restore-client.jar:1.5.0]
      9. com.atlassian.stash.internal.backup.client.JavaVersionCheckingShim.run(JavaVersionCheckingShim.java:85)[stash-restore-client.jar:1.5.0]
      9 frames