Home  >  Forum  >  Spring
Post New Query

Caused by: java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver



Asked on November 09, 2019
I am creating Spring application with HSQLDB embedded database. How to fix following error using Maven?

Caused by: java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:398)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:277)
at org.springframework.jdbc.datasource.embedded.HsqlEmbeddedDatabaseConfigurer.getInstance(HsqlEmbeddedDatabaseConfigurer.java:50)
at org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseConfigurerFactory.getConfigurer(EmbeddedDatabaseConfigurerFactory.java:47)
... 78 common frames omitted



Replied on November 09, 2019
Just use HSQL dependency in pom.xml and error will be resolved.

<dependency>
    <groupId>org.hsqldb</groupId>
    <artifactId>hsqldb</artifactId>
    <version>2.5.0</version>
    <scope>test</scope>
</dependency>



Write Answer




©2019 concretepage.com | Privacy Policy | Contact Us