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 \
     hello_world_from_pyspark.py {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
org.h2.Driver
via Pentaho BI Platform Tracking by Golda David, 1 year ago
org.h2.Driver
via Coderanch by Marcos Maia, 1 year ago
weblogic.jdbc.mssqlserver4.Driver
via Google Groups by Adrian Mowat, 2 years ago
org.h2.Driver
via Google Groups by hermann krauß, 5 months ago
java.lang.ClassNotFoundException: org.h2.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
at org.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:61)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073)
at com.pentaho.mgmt.core.repository.Repository.initialize(Repository.java:92)
at com.pentaho.mgmt.core.repository.ManagedPlatformRepository.initialize(ManagedPlatformRepository.java:47)
at com.pentaho.mgmt.core.repository.ManagedPlatformRepository.(ManagedPlatformRepository.java:24)
at com.pentaho.pac.server.PacProServiceImpl.initialze(PacProServiceImpl.java:158)
at com.pentaho.pac.server.PacProServiceImpl.init(PacProServiceImpl.java:147)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:616)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at org.pentaho.pac.server.JettyServer.startServer(JettyServer.java:152)
at org.pentaho.pac.server.JettyServer.(JettyServer.java:89)
at com.pentaho.pac.server.ProJettyServer.(ProJettyServer.java:31)
at com.pentaho.pac.server.ProJettyServer.main(ProJettyServer.java:115)

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.