Error Previsualizar Community version 6.3.3

OpenKM tiene muchas características interesantes, pero es necesario un proceso de configuración para mostrar todo su potencial.
Forum rules
Por favor, antes de preguntar algo consulta el wiki de documentación o utiliza la función de búsqueda del foro. Recuerda que no tenemos una bola de cristal ni poderes mentales, o sea que que para informar sobre un error es necesario que nos indiques tanto la versión de OpenKM que usas como la del navegador y sistema operativo. Para más información consulta Cómo informar de fallos de forma efectiva.
jllort
Moderator
Moderator
Posts: 10934
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Error Previsualizar Community version 6.3.3

Post by jllort » Sat Jul 22, 2017 9:38 am

Esto que comentas de que con el jdk 1.8 tienes muchos problemas no es para nada normal. Nosotros te recomendamos la version jdk 1.8 pero aun así puedes continuar funcionando con el jdk 1.7. En caso de querer funcionar con el jdk 1.7 tienes que mirar los valores del fichero setenv.sh, deberías tener una línea como la siguiente:

Code: Select all

JAVA_OPTS="-Xms128m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=1024m -Djava.awt.headless=true -Dfile.encoding=utf-8"
Lo importante son los parametros ( que a partir del jdk 1.8 ya estan deprecados, porque en la version 1.8 el heap se gestiona dinámicamente )

Code: Select all

-XX:PermSize=128m -XX:MaxPermSize=1024m
Esta podría ser la causa del error del heap. Aun así esto que comentas de que con el jdk 1.8 se te corta, etc... no tiene ningún sentido. Con que tipo de hardware tienes la aplicación funcionando ( cores y ram ), es un servidor en el que tienes mas cosas funcionando ( obviamente esto no es el mejor escenario posible y pueden darse colisiones ).

gcosta
Gold Boarder
Gold Boarder
Posts: 206
Joined: Thu Dec 05, 2013 7:43 am

Re: Error Previsualizar Community version 6.3.3

Post by gcosta » Mon Jul 24, 2017 7:11 am

Buenos días, estoy usando un servidor desde hace un par de años aprox. Es exclusivo para OpenKM, esta montado sobre una Debian y dispone de 2cores y 4GB de RAM.

Hasta la fecha lo he usado con java 1.7 y sin ningún problema. El problema ha surgido al actualizar a la versión communtiy 6.3.4 ya que hasta la versión community 6.3.3 funciona todo correctamente excepto el problema de la previsualizar.

Actualmente con la versión java 1.7 en setenv.sh actualmente tengo lo siguiente:

Code: Select all

JAVA_OPTS="-Xms128m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -Djava.awt.headless=true -Dfile.encoding=utf-8"
JAVA_OPTS="$JAVA_OPTS -XX:+UseConcMarkSweepGC -Dlog4j.configuration=file://$CATALINA_HOME/conf/log4j.properties"
Cuál tendría que ser exactamente en la versión 1.8?

Gracias.

gcosta
Gold Boarder
Gold Boarder
Posts: 206
Joined: Thu Dec 05, 2013 7:43 am

Re: Error Previsualizar Community version 6.3.3

Post by gcosta » Mon Jul 24, 2017 3:08 pm

Buenas tardes adjunto error que genera el java una vez substituido el OpenKM.war por el de la community 6.3.4.

Utilizando el java 1.8.

Gracias.

Code: Select all

Using JRE_HOME:        /opt/openkm-6.2.5-community/java
Using CLASSPATH:       /opt/openkm-6.2.5-community/tomcat/bin/bootstrap.jar:/opt/openkm-6.2.5-community/tomcat/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/openkm-6.2.5-community/tomcat/catalina.pid
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=1024m; support was removed in 8.0
log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.Catalina).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
de jul. 24, 2017 4:59:01 PM com.openkm.util.LoggerWatchdog doOnChange
INFO: *** Log4j configuration file changed ***
DEBUG: JavaMail version 1.4.5
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
2017-07-24 16:59:02,036 [    main] INFO  org.apache.catalina.core.StandardService - Starting service Catalina
2017-07-24 16:59:02,044 [    main] INFO  org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/7.0.27
2017-07-24 16:59:02,070 [pool-2-thread-1] INFO  org.apache.catalina.startup.HostConfig - Deploying web application archive /opt/openkm-6.2.5-community/tomcat/webapps/OpenKM.war
2017-07-24 16:59:05,961 [pool-2-thread-1] INFO  org.apache.catalina.loader.WebappClassLoader - validateJarFile(/opt/openkm-6.2.5-community/tomcat/webapps/OpenKM/WEB-INF/lib/servlet-api-2.5-20081211.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2017-07-24 16:59:05,962 [pool-2-thread-1] INFO  org.apache.catalina.loader.WebappClassLoader - validateJarFile(/opt/openkm-6.2.5-community/tomcat/webapps/OpenKM/WEB-INF/lib/servlet-api-6.0.36.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2017-07-24 16:59:25,796 [pool-2-thread-1] ERROR org.apache.catalina.core.ContainerBase - ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/OpenKM]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	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(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 18
	at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
	at org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:60)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:119)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2032)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1923)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1891)
	at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1877)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1270)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:855)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:345)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5161)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 10 more
2017-07-24 16:59:25,801 [pool-2-thread-1] ERROR org.apache.catalina.startup.HostConfig - Error deploying web application archive /opt/openkm-6.2.5-community/tomcat/webapps/OpenKM.war
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/OpenKM]]
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:898)
	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(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
2017-07-24 16:59:25,803 [pool-2-thread-1] INFO  org.apache.catalina.startup.HostConfig - Deploying web application directory /opt/openkm-6.2.5-community/tomcat/webapps/ROOT
2017-07-24 16:59:28,708 [pool-2-thread-1] INFO  org.apache.catalina.startup.HostConfig - Deploying web application directory /opt/openkm-6.2.5-community/tomcat/webapps/docs
2017-07-24 16:59:28,806 [pool-2-thread-1] INFO  org.apache.catalina.startup.HostConfig - Deploying web application directory /opt/openkm-6.2.5-community/tomcat/webapps/examples
2017-07-24 16:59:28,927 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
2017-07-24 16:59:28,929 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jstl/core is already defined
2017-07-24 16:59:28,931 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
2017-07-24 16:59:28,933 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
2017-07-24 16:59:28,939 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
2017-07-24 16:59:28,941 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
2017-07-24 16:59:28,942 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
2017-07-24 16:59:28,946 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
2017-07-24 16:59:28,946 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
2017-07-24 16:59:28,953 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
2017-07-24 16:59:28,954 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
2017-07-24 16:59:28,955 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
2017-07-24 16:59:28,959 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
2017-07-24 16:59:28,965 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
2017-07-24 16:59:28,969 [pool-2-thread-1] INFO  org.apache.tomcat.util.digester.Digester - TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
2017-07-24 16:59:28,985 [pool-2-thread-1] INFO  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples] - ContextListener: contextInitialized()
2017-07-24 16:59:28,986 [pool-2-thread-1] INFO  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples] - SessionListener: contextInitialized()
2017-07-24 16:59:28,996 [pool-2-thread-1] INFO  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples] - ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@762c6c95')
2017-07-24 16:59:28,997 [pool-2-thread-1] INFO  org.apache.catalina.startup.HostConfig - Deploying web application directory /opt/openkm-6.2.5-community/tomcat/webapps/manager
2017-07-24 16:59:29,071 [pool-2-thread-1] INFO  org.apache.catalina.startup.HostConfig - Deploying web application directory /opt/openkm-6.2.5-community/tomcat/webapps/host-manager
2017-07-24 16:59:29,158 [    main] INFO  org.apache.coyote.http11.Http11Protocol - Starting ProtocolHandler ["http-bio-0.0.0.0-8020"]
2017-07-24 16:59:29,181 [    main] INFO  org.apache.coyote.ajp.AjpProtocol - Starting ProtocolHandler ["ajp-bio-8009"]
2017-07-24 16:59:29,188 [    main] INFO  org.apache.catalina.startup.Catalina - Server startup in 27243 ms


jllort
Moderator
Moderator
Posts: 10934
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Error Previsualizar Community version 6.3.3

Post by jllort » Tue Jul 25, 2017 7:08 am

Creo que es un problema con la version del tomcat ( igual algo antigua ? ), realiza lo siguiente:
0- No estaría nada mal hacer un backup completo.
1- Descárgate el tomcat de aqui https://sourceforge.net/projects/openkm/files/common/
2- IMPORTANTE !!!!! Modifica el fichero OpenKM.cfg , el parámetro hibernate.hbdml=none ( en caso contrario esto te reseteará la base de datos nada mas arrancar y ya no la podras recuperar)
3- Copia la carpeta repository dentro del nuevo tomcat
4- edita el fichero server.xml con los datos de la conexión a la base de datos ( si es que tienes alguna configuración específica con la MySQL etc... )
5. copia el fichero OpenKM.war dentro del nuevo tomcat

Arranca la aplicación
./bin/catalina.bat start

A ver si así te funciona bien.

Post Reply