Page 1 of 1

openoffice.org3 Centos6

PostPosted:Sat Jan 07, 2012 5:52 pm
by michael.schefczyk
Hello,

My aim is to install OpenKM 5.1.8 on a Centos 6.2 64bit virtual machine. I am currently using the community version of Knowledgetree on a Windows 2008 server, but I sense that there may be no further updates which would limit that system's use in the future (e.g., indexing files in up to date pdf-versions). Hence, I would like to switch. I do get OpenKM to run, however, indexing and searching will not work and preview does not work on office documents.

Starting JBoss, I persistently get (followed by a lot of additional output):
Code: Select all
WARN  [RepositoryStartupServlet] invalid officeHome: it doesn't contain soffice.bin: /usr/lib64/openoffice.org3/program
java.lang.IllegalStateException: invalid officeHome: it doesn't contain soffice.bin: /usr/lib64/openoffice.org3/program
OpenOffice 3.2.1 is installed, since I set up the Centos system as a desktop machine. When I "cd" to the directory above (i.e. /usr/lib64/openoffice.org3/program), a file named soffice.bin is definitively there. Hence, I do not understand the warning.

The post "OpenKM can not find soffice.bin" on this forum deviates to another cause which does not resolve my issue. There, jllort wrote on December 16, 2011 that installing openoffice on Centos would not be trivial - which is most probably true. Obviously, my knowledge about OpenOffice (and many linux issues) is quite limited. At least, I did not manage to reinstall OpenOffice using the commands stated by jllort. The rpms downloaded have different names (org3 and 3.2.1 instead of just org and 3.1.1) and a "headless" file is not in sight. Doing the rpm -ivh leads to depenencies which cannot be resolved in a trivial manner (e.g., via yum install despite including RPMForge and EPEL).

Any help would be very welcome!

Michael

Re: openoffice.org3 Centos6

PostPosted:Sat Jan 07, 2012 8:53 pm
by Bart
try /usr/lib64/openoffice.org3 and restart jboss

Don't forget to set hibernate.hbm2ddl to none (OpenKM.cgf)

Re: openoffice.org3 Centos6

PostPosted:Sun Jan 08, 2012 4:55 pm
by michael.schefczyk
Thank you very much, Bart!

Preview now works with all file formats. I did learn that the openoffice path may not point to the directory containing soffice.bin itsel, but rather to the folder one level above.

What does not work is searching and thus probably indexing. I seem to be in the same category as multiple other recent posters who are unable to search. Any help on that issue would still be very welcome.

Michael Schefczyk

Re: openoffice.org3 Centos6

PostPosted:Mon Jan 09, 2012 11:17 am
by jllort
To ensure openoffice if correctly configured with openkm, simply try convert .doc or .odt to pdf ( at toolbar there's option to downloading document as pdf ). If it goes right openffice is correctly configured with openkm.

Re: openoffice.org3 Centos6

PostPosted:Mon Jan 09, 2012 2:01 pm
by michael.schefczyk
Thank you very much. The configuration of openoffice appears to be correct as the download as pdf-function does work. I will just keep reading the "search doesn't work" thread in order to find out what the other issue is.

Re: openoffice.org3 Centos6

PostPosted:Tue Jan 10, 2012 7:20 am
by jllort
is soffice program running ?
you should not have any other openoffice instance opened on the server, could cause problems ! soffice service started by openkm should be the only one active.

Re: openoffice.org3 Centos6

PostPosted:Sat Jan 14, 2012 5:37 pm
by michael.schefczyk
In the meantime, I got openoffice to work correctly. The only major thing still not working is searching for text in pdf files. Previewing works with all major file types. Tesseract also works well from the command line interface on tif-files. However, when uploading a pdf-file, the terminal lists the following error
Code: Select all
18:19:59,453 WARN  [PdfTextExtractor] PDF does not contains text layer
18:19:59,455 WARN  [RegisteredExtractors] There was a problem extracting text from '/okm:root/testpdf.pdf'
The file in question does yield full OCR/search results on the demo machine.

Can someone please point me to what to look for? Thanks a lot Michael

Re: openoffice.org3 Centos6

PostPosted:Mon Jan 16, 2012 12:15 pm
by pavila
Please, don't mix issues in the same forum thread. Open a new one for this problem.