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 | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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 | 3 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 | 3 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.

    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