• javax.servlet.ServletException: com.openkm.core.DatabaseException: Cannot open connection

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #41313  by cheeno_starx
 
Hello guys,

I've installed OpenKM on Windows 7x64. I've got this error from Apache Tomcat.Attached also are the log files I got from Tomcat.
Code: Select all
Class: 	org.apache.jasper.JasperException
Message: 	   javax.servlet.ServletException: com.openkm.core.DatabaseException: Cannot open connection
Date:     Sun Feb 14 16:30:27 CST 2016
Please help me on this issue.

Thanks!
Attachments
(63.18 KiB) Downloaded 307 times
 #41321  by jllort
 
The error is clear:
Code: Select all
2016-02-14 09:13:28,283 [pool-2-thread-1] WARN  org.hibernate.cfg.SettingsFactory- Could not obtain connection to query metadata
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.hsqldb.jdbcDriver'
	at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1429)
	at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)
	at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
In your tomcat-7.0.27 you should have the hsqldb.jar ( the hypersonic library ) and for some reason I think is missing or you have applied a security that when openkm is started has not access to the file.

I suggest on production environment go for MySQL.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.