• Problems to run 5.1.7

  • 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.
 #11672  by christian80it
 
Hello,

My configuration: I5 2500 - 8GB RAM - 500GB HDD - Windows 7 Pro 64bit SP1 - IE9

Installed Java SE DK 6.26
Installed OpenKM 5.1.7

Run.bat file

When I run "http://localhost:8080/OpenKM" the response is: nothing.. HTTP 500
Code: Select all
....
18:47:15,735 INFO  [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)] Started in 2m:7s:812ms
18:50:50,528 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.OutOfMemoryError: PermGen space
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:690)
        at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:670)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:200)
        at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
        at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)
        at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:527)
        at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.apache.jasper.compiler.ParserController.getPageEncodingForJspSyntax(ParserController.java:451)
        at org.apache.jasper.compiler.ParserController.determineSyntaxAndEncoding(ParserController.java:392)
        at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:173)
        at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
        at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
        at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
18:50:51,401 ERROR [[localhost]] Exception Processing ErrorPage[exceptionType=java.lang.Exception, location=/error.jsp]
java.lang.NoClassDefFoundError: org/apache/catalina/core/ApplicationDispatcher
        at org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:435)
        at org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(ApplicationContextFacade.java:196)
        at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:421)
        at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:270)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Unexpected error during load of: org.apache.catalina.core.ApplicationDispatcher, msg=PermGen space
        at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:560)
        at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 13 more
Caused by: java.lang.OutOfMemoryError: PermGen space
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:690)
        at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:670)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:200)
        at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
        at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)
        at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:527)
        ... 15 more
Someone can help me?

Thank ALL and Regards, Christian
 #11680  by jllort
 
You got low memory configuration on that server the error is clear
Code: Select all
java.lang.OutOfMemoryError: PermGen space
Take a look at first lines of run.sh ( looking for JAVA_OPTS ) and copy it at run.bat
 #11687  by christian80it
 
Thanks.. now run correctly..

But.. have some questions if possible..

1) If I do some changes in the administration tab (like: language, translation, users, permissions etc) they go missed when the machine or "run.bat" is restarted.. why?
I need to save those changes but.. where? Into an existing file?

2) For view the files preview what I must do?

3) For use a client on external area network? I need the public ip.. right? like VPN on router, routing redirecting, DNS translation..

Thanks you very very much for your patience.
 #11697  by jllort
 
I suggest take some time reading documentation to understanding what you've got in your hands at http://wiki.openkm.com/index.php/Main_Page

1- For question 1 read: http://wiki.openkm.com/index.php/Quick_Install the hibernate.hbm2ddl property from create to none at OpenKM.cfg before restarting.

2- To previewing files you need to install opneoffice, imagemagick and pdf2swf ( part of swftools ) take a look at http://wiki.openkm.com/index.php/Applic ... figuration which parameter must be setting.

3- You must execute application with run-bat -b 0.0.0.0 to binding on al network interfaces ... then it's configuration problem ... if you decide expose port 8080 to internet I suggest secure jboss or configure as apache proxy.
 #11909  by christian80it
 
I made these changes, can someone check? and please tell me where I'm wrong... For now I thank all, later I can offer fish dinner :)

I re-installed all:
+ JAVA jdk 6.26 x64
+ OpenKM 5.1.7
+ OpenOffice 3.3.0
+ OpenKM AddIn 5.0.0
+ SWFTools 0.9.1

FILE "run.conf"
Code: Select all
ORIGINAL
#
# Specify options to pass to the Java VM.
#
if [ "x$JAVA_OPTS" = "x" ]; then
   JAVA_OPTS="-Xms64m -Xmx256m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
fi

MODIFIED
if [ "x$JAVA_OPTS" = "x" ]; then
   JAVA_OPTS="-Xms256m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
fi
FILE "run.bat"
Code: Select all
ORIGINAL
rem JVM memory allocation pool parameters. Modify as appropriate.
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m
...
:RESTART
"%JAVA%" %JAVA_OPTS% ^
   -Djava.endorsed.dirs="%JBOSS_ENDORSED_DIRS%" ^
   -classpath "%JBOSS_CLASSPATH%" ^
   org.jboss.Main %*

MODIFIED
rem JVM memory allocation.. HOPE & FAIL!?
set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=128m
...
:RESTART
"%JAVA%" %JAVA_OPTS% ^
   -Djava.endorsed.dirs="%JBOSS_ENDORSED_DIRS%" ^
   -classpath "%JBOSS_CLASSPATH%" ^
   org.jboss.Main %* -b 0.0.0.0
FILE "OpenKM.cfg"
This one for:
+ preview of files (pdf, office, images)
+ export and fix repository???
+ start in Italian Language (the file is "it-IT.txt" in root directory)
Code: Select all
ORIGINAL
#system.ocr=/usr/bin/cuneiform
#system.openoffice.path=/usr/lib/openoffice
#system.imagemagick.convert=/usr/bin/convert
#system.swftools.pdf2swf=/usr/bin/pdf2swf
#system.antivir=/usr/bin/clamscanhibernate.dialect=org.hibernate.dialect.HSQLDialecthibernate.hbm2ddl=create
#application.url=http://localhost:8080/OpenKM/com.openkm.frontend.Main/index.jsp

MODIFIED
#system.ocr=/usr/bin/cuneiform
#system.openoffice.path=/usr/lib/openoffice
#system.openoffice.tasks=5
#system.openoffice.port=2222
#system.imagemagick.convert=/usr/bin/convert
#system.swftools.pdf2swf=/usr/bin/pdf2swf
#system.antivir=/usr/bin/clamscanhibernate.dialect=org.hibernate.dialect.HSQLDialecthibernate.hbm2ddl=none
#application.url=http://localhost:8080/OpenKM/com.openkm.frontend.Main/index.jsp
#repository.config=repository.xml
#default.lang=it-IT.txt
#system.ghostscript.ps2pdf=/usr/bin/ps2pdf
#system.convert=/usr/bin/convert
Output of run.bat
Code: Select all
        at java.lang.Thread.run(Unknown Source)
06:55:57,777 WARN  [DocConverter] system.openoffice.path not configured
06:55:57,777 WARN  [DocConverter] and also system.openoffice.server not configur
ed
06:57:06,610 WARN  [RegisteredExtractors] There was a problem extracting text fr
om '/okm:root/setup.log'
06:57:47,026 WARN  [RegisteredExtractors] Mark not supported in java.io.InputStr
eamReader 

I don't understand the configuration, I make some changes in administration tab. Why they don't stay?
Other changes are impossible: change language, modify a translation etc ..
"Application error
Class: java.lang.NullPointerException
Message: null"

If I try to login with created user (user role), I see this screen attached
Attachments
RepositoryException.jpg
RepositoryException.jpg (27.07 KiB) Viewed 4728 times
 #11935  by jllort
 
remember after first openkm startup ... parameters are configured on database ( administrator tab ) not on OpenKM.cfg, there will only store only two parameters about database for example :
Code: Select all
hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
hibernate.hbm2ddl=create
 #12119  by christian80it
 
Here with same/some problems...

I have changed the openoffice version with older 3.2
reinstalled swftools (first question: this program need configuration??)
reinstalled openkm addin

the configuration tab is "see the attached file"

But i have a second question: In "C:\jboss-4.2.3.GA\bin\" i have only pdf2swf ... but haven't
/bin/clamscan
/bin/cuneiform
/bin/ps2pdf
/bin/convert
/lib/openoffice
Attachments
Config 1.jpg
Config 1.jpg (224.11 KiB) Viewed 4624 times
 #12133  by jllort
 
To solve perm germ problem increase ( and put at first line of run.sh, I think on run.sh it's included by default ).
Code: Select all
JAVA_OPTS="-Xms512m -Xmx2048m -XX:PermSize=128m -XX:MaxPermSize=256m 
About programs path obviously will not run with path you've set on application you must set real programs path, for example for openoffice will be something like this C:\\Program Files\\OpenOffice.org 3
 #12234  by christian80it
 
Ok now it's working a lot of document files preview.. THANKS YOU VERY MUCH!! :) :) :)

Images aren't previewed.. for the images preview Can I use the swftools? In the SWFtools path are there jpg2swf.bat, gif2swf.bat, png2swf.bat and more others..
or Is It only possible with imagemagick? Exist an installation file correct for windows system?

For use another port (like 66863)..
Is It correct? Or I must change other parameters?
Code: Select all
application.url	- String - 	http://localhost:66863/OpenKM/index.jsp 
 #12277  by jllort
 
for images you must use convert.exe ( imagemagick )
about application.url = URI from all computer ( here is good idea using some subdomain openkm.subdomain.x/OpenKM etc... )
We encourage using apache proxy to prevent intrusions, it's not good idea sharing jboss port ( has some secutiry problems ). In intranet environment there's no problem on 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.