org.hibernate.HibernateException

JDBC Driver class not found: org.h2.Driver


Samebug tips10

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}"

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 web1366

Solution icon of pentaho
via Pentaho BI Platform Tracking by Golda David, 1 year ago
JDBC Driver class not found: org.h2.Driver

Solution icon of pentaho
via Pentaho BI Platform Tracking by Golda David, 1 year ago
JDBC Driver class not found: org.h2.Driver

Solution icon of web
JDBC Driver class not found: org.h2.Driver

Solution icon of pentaho
via Pentaho BI Platform Tracking by Ramaiz Mansoor, 1 year ago
JDBC Driver class not found: org.h2.Driver

Solution icon of pentaho
via Pentaho BI Platform Tracking by Ramaiz Mansoor, 1 year ago
JDBC Driver class not found: org.h2.Driver

Solution icon of stackoverflow
JDBC Driver class not found:

Solution icon of coderanch
via Coderanch by jaya lakshmi, 7 months ago
JDBC Driver class not found: org.gjt.mm.mysql.Driver

Solution icon of coderanch
via Coderanch by bala kumar, 7 months ago
JDBC Driver class not found: oracle.jdbc.driver.OracleDriver

Solution icon of sourceforge
JDBC Driver class not found: org.firebirdsql.jdbc.FBDriver

Solution icon of sourceforge
via openxava by darkpupi12
, 1 year ago
JDBC Driver class not found: org.postgresql.Driver

Stack trace

  • org.hibernate.HibernateException: JDBC Driver class not found: org.h2.Driver at org.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:66) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56) 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 org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298) 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.Repository.reInitialize(Repository.java:278) at com.pentaho.pac.server.PacProServiceImpl.reInitializeServerRepository(PacProServiceImpl.java:971) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:166) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488) Caused by: 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:303) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100) at org.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:61) ... 33 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

Once, 3 months ago
2 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
62 times, 13 hours ago
3 times, 1 day ago
1388 more bugmates