Cannot load Oracle database driver

Samebug tips5

This might be an issue with the file location in the Spark submit command. Try it with "spark-submit --master spark://master:7077 {file location}"

Check if you've set a name in Application -> Run. If you didn't, the generated XML is gonna have missing information and then this exception will be thrown.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web947

  • via Google Groups by Biswajit Nanda, 6 months ago
    Cannot load Oracle database driver
  • Cannot load SqlServer database driver Is the JDBC driver on the classpath?
  • via Stack Overflow by user1412296
    , 1 year ago
    Cannot load Netezza database driver org.netezza.Driver. Is the JDBC driver on the classpath?
  • Stack trace

    • java.lang.Error: Cannot load Oracle database driver at dbfit.api.DbEnvironmentFactory$EnvironmentDescriptor.checkDriver( at dbfit.api.DbEnvironmentFactory$EnvironmentDescriptor.createEnvironmentInstance( at dbfit.api.DbEnvironmentFactory.createEnvironmentInstance( at dbfit.api.DbEnvironmentFactory.newEnvironmentInstance( at dbfit.OracleTest.<init>( at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance( at sun.reflect.DelegatingConstructorAccessorImpl.newInstance( at java.lang.reflect.Constructor.newInstance( at java.lang.Class.newInstance( at fit.FixtureClass.newInstance( at fit.FixtureLoader.instantiateFixture( at fit.FixtureLoader.instantiateFirstValidFixtureClass( at fit.FixtureLoader.disgraceThenLoad( at fit.Fixture.loadFixture( at fit.Fixture.getLinkedFixtureWithArgs( at fit.Fixture.doTables( at fit.FitServer.process( at at fit.FitServer.main( Caused by: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver at at java.lang.ClassLoader.loadClass( at sun.misc.Launcher$AppClassLoader.loadClass( at java.lang.ClassLoader.loadClass( at java.lang.Class.forName0(Native Method) at java.lang.Class.forName( at dbfit.api.DbEnvironmentFactory$EnvironmentDescriptor.checkDriver( ... 19 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    2 times, 1 month ago
    Once, 1 month ago
    2 times, 2 months ago
    95 times, 2 months ago
    1669 more bugmates