Hi again, this is a continuation of the previous post
Running under openSuSE 11.3, I now removed the OpenOffice packages from the machine (all of them, for sure) and installed the minimal ammount of LibreOffice packages This is the new package list:
Code: Select alllibreoffice-3.3.1.2-2.4.2.x86_64
libreoffice-branding-upstream-3.3.1.2-2.2.1.noarch
libreoffice-calc-3.3.1.2-2.2.3.x86_64
libreoffice-calc-extensions-3.3.1.2-2.2.3.x86_64
libreoffice-components-3.3.1.2-2.2.3.x86_64
libreoffice-draw-3.3.1.2-2.2.3.x86_64
libreoffice-draw-extensions-3.3.1.2-2.2.3.x86_64
libreoffice-filters-3.3.1.2-2.2.3.x86_64
libreoffice-filters-optional-3.3.1.2-2.2.3.x86_64
libreoffice-icon-theme-crystal-3.3.1.2-2.2.3.noarch
libreoffice-impress-3.3.1.2-2.2.3.x86_64
libreoffice-impress-extensions-3.3.1.2-2.2.3.x86_64
libreoffice-l10n-extras-3.3.1.2-2.2.3.noarch
libreoffice-libs-core-3.3.1.2-2.2.3.x86_64
libreoffice-libs-extern-3.3.1.2-2.2.3.x86_64
libreoffice-libs-gui-3.3.1.2-2.2.3.x86_64
libreoffice-math-3.3.1.2-2.2.3.x86_64
libreoffice-pyuno-3.3.1.2-2.2.3.x86_64
libreoffice-ure-3.3.1.2-2.2.3.x86_64
libreoffice-writer-3.3.1.2-2.2.3.x86_64
libreoffice-writer-extensions-3.3.1.2-2.2.3.x86_64
I just tried the most advanced version of OpenKM -> 5.1.5. The others will be tested if I found a solution
Just move the directory with the previous setup to another one, unziped the tar.gz file. Then edited the OpenKM.org file to be
Code: Select all#system.ocr=/usr/bin/cuneiform
system.ocr=/usr/bin/tesseract
system.openoffice.path=/usr/lib64/libreoffice
system.imagemagick.convert=/usr/bin/convert
#system.swftools.pdf2swf=/usr/bin/pdf2swf
system.swftools.pdf2swf=/usr/local/bin/pdf2swf
system.antivir=/usr/bin/clamscan
hibernate.dialect=org.hibernate.dialect.HSQLDialect
#hibernate.hbm2ddl=create
hibernate.hbm2ddl=none
#application.url=http://localhost:8080/OpenKM/com.openkm.frontend.Main/index.jsp
The first time hibernate was create, then changed to none.
I started the application with
Code: Select all~# cd /srv/openkm-5.1.5
~# date >> log1.txt & ./bin/run.sh -b 0.0.0.0 >> log1.txt 2>> log2.txt &
and the log file has the warning
Code: Select all16:25:10,059 WARN [RepositoryStartupServlet] officeHome must exist and be a directory
java.lang.IllegalArgumentException: officeHome must exist and be a directory
at org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.checkArgument(DefaultOfficeManagerConfiguration.java:160)
at org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.setOfficeHome(DefaultOfficeManagerConfiguration.java:50)
But the
officeHome is set up as
/usr/lib64/libreoffice, and inside this path (folder) the
/program/soffice.bin exists.
Now I'm not so sure about LibreOffice, but maybe it is the JVM (or not) in the opensuse 11.3 machine. The opensuse 11.4 machine that works fine also uses this JVM.
Code: Select all~# java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.7) (suse-1.2.1-x86_64)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
But just a so simple code of checking an existing folder or file doesn't seems to me the reason for this...
Any ideas are welcome!
Prof. Andrés A. Nogueiras Melendez
Electronic Technology Department, University of Vigo, Spain