• Migrate from 6.3.6 to 6.3.7 error

  • 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.
 #52174  by skorpion78
 
Hi,
My community version is: 6.3.6 build: 87d181f

Follow the recommendations: https://docs.openkm.com/kcenter/view/ok ... o-637.html

I have a problem migrating to a newer version. Info below:

openjdk version "1.8.0_275"
OpenJDK Runtime Environment (build 1.8.0_275-8u275-b01-1~deb9u1-b01)
OpenJDK 64-Bit Server VM (build 25.275-b01, mixed mode)

Catalina log:
Code: Select all
2021-02-15 21:13:30,104 [main] INFO  org.apache.catalina.core.AprLifecycleListener- The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: :/opt/openkm-community/tomcat/lib/sigar:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
2021-02-15 21:13:30,438 [main] INFO  org.apache.coyote.http11.Http11Protocol- Initializing ProtocolHandler ["http-bio-0.0.0.0-8080"]
2021-02-15 21:13:30,461 [main] INFO  org.apache.coyote.ajp.AjpProtocol- Initializing ProtocolHandler ["ajp-bio-127.0.0.1-8009"]
2021-02-15 21:13:30,467 [main] INFO  org.apache.catalina.startup.Catalina- Initialization processed in 744 ms
2021-02-15 21:13:30,520 [main] INFO  org.apache.catalina.core.StandardService- Starting service Catalina
2021-02-15 21:13:30,520 [main] INFO  org.apache.catalina.core.StandardEngine- Starting Servlet Engine: Apache Tomcat/7.0.53
2021-02-15 21:13:30,562 [localhost-startStop-1] INFO  org.apache.catalina.startup.HostConfig- Deploying web application archive /opt/openkm-community/tomcat/webapps/OpenKM.war
2021-02-15 21:13:34,136 [localhost-startStop-1] INFO  org.apache.catalina.loader.WebappClassLoader- validateJarFile(/opt/openkm-community/tomcat/webapps/OpenKM/WEB-INF/lib/servlet-api-2.5-20081211.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
2021-02-15 21:13:34,137 [localhost-startStop-1] INFO  org.apache.catalina.loader.WebappClassLoader- validateJarFile(/opt/openkm-community/tomcat/webapps/OpenKM/WEB-INF/lib/servlet-api-6.0.36.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
2021-02-15 21:13:48,893 [localhost-startStop-1] INFO  org.apache.tomcat.util.digester.Digester- TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
2021-02-15 21:13:48,901 [localhost-startStop-1] INFO  org.apache.tomcat.util.digester.Digester- TLD skipped. URI: http://java.sun.com/jstl/core is already defined
2021-02-15 21:13:48,906 [localhost-startStop-1] INFO  org.apache.tomcat.util.digester.Digester- TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
2021-02-15 21:13:48,912 [localhost-startStop-1] INFO  org.apache.tomcat.util.digester.Digester- TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
2021-02-15 21:13:48,920 [localhost-startStop-1] INFO  org.apache.tomcat.util.digester.Digester- TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
2021-02-15 21:13:48,926 [localhost-startStop-1] INFO  org.apache.tomcat.util.digester.Digester- TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
2021-02-15 21:13:48,931 [localhost-startStop-1] INFO  org.apache.tomcat.util.digester.Digester- TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
2021-02-15 21:13:48,933 [localhost-startStop-1] INFO  org.apache.tomcat.util.digester.Digester- TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
2021-02-15 21:13:48,933 [localhost-startStop-1] INFO  org.apache.tomcat.util.digester.Digester- TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
2021-02-15 21:13:48,936 [localhost-startStop-1] INFO  org.apache.tomcat.util.digester.Digester- TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
2021-02-15 21:13:48,940 [localhost-startStop-1] INFO  org.apache.tomcat.util.digester.Digester- TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
2021-02-15 21:13:48,943 [localhost-startStop-1] INFO  org.apache.tomcat.util.digester.Digester- TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
2021-02-15 21:13:48,947 [localhost-startStop-1] INFO  org.apache.tomcat.util.digester.Digester- TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
2021-02-15 21:13:48,953 [localhost-startStop-1] INFO  org.apache.tomcat.util.digester.Digester- TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
2021-02-15 21:13:48,957 [localhost-startStop-1] INFO  org.apache.tomcat.util.digester.Digester- TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
2021-02-15 21:13:48,997 [localhost-startStop-1] INFO  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/OpenKM]- No Spring WebApplicationInitializer types detected on classpath
2021-02-15 21:13:48,998 [localhost-startStop-1] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/OpenKM]- Error configuring application listener of class com.openkm.servlet.SessionListener
java.lang.UnsupportedClassVersionError: com/openkm/servlet/SessionListener : Unsupported major.minor version 52.0 (unable to load class com.openkm.servlet.SessionListener)
        at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2961)
        at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1210)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1690)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
        at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:529)
        at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:511)
        at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:139)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4888)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
2021-02-15 21:13:49,402 [localhost-startStop-1] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/OpenKM]- Skipped installing application listeners due to previous error(s)
2021-02-15 21:13:49,402 [localhost-startStop-1] ERROR org.apache.catalina.core.StandardContext- Error listenerStart
2021-02-15 21:13:49,407 [localhost-startStop-1] ERROR org.apache.catalina.core.StandardContext- Context [/OpenKM] startup failed due to previous errors
2021-02-15 21:13:49,458 [localhost-startStop-1] INFO  org.apache.catalina.startup.HostConfig- Deploying web application directory /opt/openkm-community/tomcat/webapps/ROOT
2021-02-15 21:13:50,325 [main] INFO  org.apache.coyote.http11.Http11Protocol- Starting ProtocolHandler ["http-bio-0.0.0.0-8080"]
2021-02-15 21:13:50,341 [main] INFO  org.apache.coyote.ajp.AjpProtocol- Starting ProtocolHandler ["ajp-bio-127.0.0.1-8009"]
2021-02-15 21:13:50,342 [main] INFO  org.apache.catalina.startup.Catalina- Server startup in 19874 ms
 #52177  by pavila
 
Unsupported major. minor version 52.0 comes when you are trying to run a class compiled using Java 1.8 compiler into a lower JRE version e.g. JRE 1.7 or JRE 1.6.
 #52178  by skorpion78
 
I have the following java versions installed on my system. Which one should I use.
Code: Select all
root@DC1:/home/skorpion78# update-alternatives --config java
Są 2 dostępne alternatywy dla java (dostarczające /usr/bin/java).

  Wybór       Ścieżka                                       Priorytet  Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      tryb auto
* 1            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      tryb ręczny
  2            /usr/lib/jvm/java-8-oracle/jre/bin/java          1081      tryb ręczny
on the home page it says that for the Linux version:
Linux install:
Requirements: Must have Java JDK 1.8 or upper installed.
 #52179  by jllort
 
what you have choosen seems right is java openjdk 1.8, that should working. When the application startup at the begining is shown in the log the real java path used ( take a look at openkm.log or catalina.out )
 #52182  by skorpion78
 
Thank you for your answer. I exported the JRE_HOME Variable to the correct place and the problem is solved. This is a very old version of openkm that was installed a long time ago and java was in the tomcat directory.

Now I have a problem exporting directory / documents to a .zip file. The first file in the archive is ok, while the others have no extensions.

pozdrawiam
Sebastian
 #52187  by jllort
 
Why you want to export the files as a zip ... can you explain with more detail what you have in mind ... because I do not follow you. You starting talking about migration and now about zip file ... I do not follow the relation between the two topics ( it if is a new topic, please open in a new post ) if it is the same , please explain because I do not understanding
 #52191  by skorpion78
 
Hello,
sorry for the confusion, already opened a new thread.

for a summary of this thread:
My version of openkm had JAVA in the program directory. Despite installing a newer version of JAVA, at startup it used JAVA from the program directory. I have exported the JRE_HOME variable to the new and correct JAVA directory and the migration was successful.

pozdrawiam
Sebastian

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.