• 6.3.1 ...Map$Entry Can't be resolved.

  • Problems with installing OpenKM? No problemo, the solution is closer than you think.
Problems with installing OpenKM? No problemo, the solution is closer than you think.
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.
 #40853  by dmehmetb
 
Hi All !!!

I am fairly new to using Apache however I did manage to install OpenKM and set it up . However I can't get to make it work due to the error org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 1 in the generated java file
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files


Here what my system looks like :

Windows 8
6 GB ram
Intel core I5 3330 3ghz


JDK / JRE: jdk1.8.0_66 / jre1.8.0_66

TOMCAT : apache-tomcat-7.0.27

OPENKM : openkm-6.3.1-community-tomcat-bundle
(241.5 KiB) Downloaded 189 times
 #40856  by dmehmetb
 
C:\apache-tomcat-7.0.27\bin>startup
Using CATALINA_BASE: "C:\apache-tomcat-7.0.27"
Using CATALINA_HOME: "C:\apache-tomcat-7.0.27"
Using CATALINA_TMPDIR: "C:\apache-tomcat-7.0.27\temp"
Using JRE_HOME: "C:\Java\jre1.8.0_66"
Using CLASSPATH: "C:\apache-tomcat-7.0.27\bin\bootstrap.jar;C:\apache-tomcat-7.0.27\bin\tomcat-juli.jar"
 #40863  by jllort
 
Are you using OpenKM-Tomcat bundle ? or what have you done ? because seems you have some missing jars. See the error below:
Code: Select all
2015-11-13 15:47:17,015 [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)
	at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:92)
	at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:113)
	at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863)
	at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859)
	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870)
	at com.openkm.dao.HibernateUtil.getSessionFactory(HibernateUtil.java:180)
	at com.openkm.dao.HibernateUtil.getSessionFactory(HibernateUtil.java:91)
	at com.openkm.servlet.RepositoryStartupServlet.init(RepositoryStartupServlet.java:100)
	at javax.servlet.GenericServlet.init(GenericServlet.java:160)
	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:962)
	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1603)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
	at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1420)
	... 27 more
The error Caused by: java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver indicates the hsqldb.jar is missing at tomcat/lib !

What did you do, to configure openkm ?
 #40870  by dmehmetb
 
Hi !

I used the openkm-6.3.1-community-tomcat-bundle. And Followed the instructions word by word.

Here is the list of jars in the lib folder :
Code: Select all
13/11/2015  11:47            15,264 annotations-api.jar
13/11/2015  11:47            54,545 catalina-ant.jar
13/11/2015  11:47           131,269 catalina-ha.jar
13/11/2015  11:47           253,741 catalina-tribes.jar
13/11/2015  11:47         1,536,000 catalina.jar
13/11/2015  11:47         1,749,257 ecj-3.7.2.jar
13/11/2015  11:47            46,089 el-api.jar
13/11/2015  11:47           123,150 jasper-el.jar
13/11/2015  11:47           591,330 jasper.jar
13/11/2015  11:46           644,148 javassist-3.12.1.GA.jar
13/11/2015  11:47            88,689 jsp-api.jar
13/11/2015  11:46           414,240 jstl-1.2.jar
13/11/2015  11:46            15,071 jta-1.1.jar
13/11/2015  11:46           489,883 log4j-1.2.17.jar
13/11/2015  11:46             4,536 log4j-initializer.jar
13/11/2015  11:46           571,104 mail-1.5.2.jar
13/11/2015  11:46           732,695 mysql-connector-java-5.1.12-bin.jar
13/11/2015  11:47           176,915 servlet-api.jar
13/11/2015  11:59    <DIR>          sigar
13/11/2015  11:47             6,873 tomcat-api.jar
13/11/2015  11:47           789,028 tomcat-coyote.jar
13/11/2015  11:47           235,411 tomcat-dbcp.jar
13/11/2015  11:47            76,646 tomcat-i18n-es.jar
13/11/2015  11:47            48,694 tomcat-i18n-fr.jar
13/11/2015  11:47            52,118 tomcat-i18n-ja.jar
13/11/2015  11:47           121,300 tomcat-jdbc.jar
13/11/2015  11:46            31,865 tomcat-juli-adapters.jar
13/11/2015  11:46            31,948 tomcat-util.jar
13/11/2015  11:46        24,131,012 unicode.ttf
              29 File(s)     33,162,821 bytes
How can I get the missing ones ?

Regards
Mehmet
 #40883  by jllort
 
I have yet downloaded the openkm-tomcat-bundle and into /tomcat/lib/ the file hsqldb.jar is present. I think something has happened in your installation or while uncompressing the file. File must have about 234,6MB please check it.

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.