java.lang.ClassNotFoundException: org.h2.Driver

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Expert tip

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}


You are not deploying the oracle driver with the application. Place the driver jars in a shared or library extension folder of your application server. (You should go with option one or two though

Solutions on the web

via Pentaho BI Platform Tracking by Ramaiz Mansoor, 1 year ago
via Pentaho BI Platform Tracking by Golda David, 1 year ago
via Coderanch by Marcos Maia, 1 year ago
via Google Groups by Adrian Mowat, 2 years ago
via Google Groups by hermann krauß, 5 months ago
java.lang.ClassNotFoundException: org.h2.Driver
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal(
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(
at org.hibernate.util.ReflectHelper.classForName(
at org.hibernate.connection.DriverManagerConnectionProvider.configure(
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(
at org.hibernate.cfg.SettingsFactory.createConnectionProvider(
at org.hibernate.cfg.SettingsFactory.buildSettings(
at org.hibernate.cfg.Configuration.buildSettings(
at com.pentaho.mgmt.core.repository.Repository.initialize(
at com.pentaho.mgmt.core.repository.ManagedPlatformRepository.initialize(
at com.pentaho.mgmt.core.repository.ManagedPlatformRepository.(
at com.pentaho.pac.server.PacProServiceImpl.initialze(
at com.pentaho.pac.server.PacProServiceImpl.init(
at javax.servlet.GenericServlet.init(
at org.mortbay.jetty.servlet.ServletHolder.initServlet(
at org.mortbay.component.AbstractLifeCycle.start(
at org.mortbay.jetty.servlet.ServletHandler.initialize(
at org.mortbay.jetty.servlet.Context.startContext(
at org.mortbay.component.AbstractLifeCycle.start(
at org.mortbay.component.AbstractLifeCycle.start(
at org.mortbay.jetty.handler.HandlerWrapper.doStart(
at org.mortbay.component.AbstractLifeCycle.start(
at org.pentaho.pac.server.JettyServer.startServer(
at org.pentaho.pac.server.JettyServer.(
at com.pentaho.pac.server.ProJettyServer.(
at com.pentaho.pac.server.ProJettyServer.main(

Users with the same issue

Once, 1 week ago
Once, 1 month ago
Once, 2 months ago
Once, 2 months ago
5 times, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.