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


This is thrown when the JVM tries to load a particular class and the specified class cannot be found in the classpath. Make sure Apache commons-lang library jar is added to your project's build path and you are using commons-lang3-3.0.jar or greater.


Make sure to add org.springframework.core-3.1.0.M2.jar to your project libraries so that org.springframework.core.env.EnvironmentCapable will be loaded.

Solutions on the web

via GitHub by ayakix
, 1 year ago
via by Unknown author, 1 year ago
via Stack Overflow by Akash Srivastava
, 2 years ago
driver at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(
via by Unknown author, 1 year ago
via GitHub by ayakix
, 1 year ago
via by Unknown author, 1 year ago
java.lang.ClassNotFoundException: org.h2.Driver
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(
at org.nkjmlab.util.db.DbSimpleClient.(
at org.nkjmlab.util.db.H2Client.(
at org.nkjmlab.util.db.H2ClientWithConnectionPool.(
at org.nkjmlab.util.db.DbClientFactory.createH2ClientWithConnectionPool(
at org.magcruise.citywalk.jsonrpc.servlet.ApplicationInitializer.(
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 org.apache.catalina.core.DefaultInstanceManager.newInstance(
at org.apache.catalina.core.StandardContext.listenerStart(
at org.apache.catalina.core.StandardContext.startInternal(
at org.apache.catalina.util.LifecycleBase.start(
at org.apache.catalina.core.ContainerBase$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

Users with the same issue

11 times, 5 days ago
2 times, 3 weeks ago
2 times, 4 weeks ago
Once, 1 month ago
Once, 1 month ago

Write tip

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