Page 1 of 1
Setup OKM 6.2 community on Ubuntu 12.04 - my notes
PostPosted:Thu Oct 11, 2012 3:14 pm
by macjaeger
Congratulations to releasing OKM 6.2, and thank you very much!
I'd like to get my fingers dirty on the community-edition of 6.2, but I run into a lot of problems in all my installation attempts. Most of the (publicly) available documentation is somewhat outdated, eg. referring to jboss while 6.x uses tomcat, or referring to sun/oracle jre-6 in ubuntu, although sun/oracle jre was dropped from ubuntu repositories a good while ago. The same goes for Open/LibreOffice, etc.
It would really help to know which versions of linux (preferably ubuntu), java, open/libre-office etc. YOU consider a good ground for installing OKM 6.2. Right now I'm never sure if I misconfigured OKM, or just don't have the right versions of some 3rd-party-software installed. Could anyone provide a description of a "known to work" software assembly? Thanks!
Re: Which linux to install OKM 6.2 to?
PostPosted:Thu Oct 11, 2012 4:58 pm
by jllort
installer comes with java embeded, have you got any problem on it ?
Re: Which linux to install OKM 6.2 to?
PostPosted:Thu Oct 11, 2012 6:37 pm
by macjaeger
Thank you for the quick reply!
Starting tomcat and OpenKM is ok, but while i'm exploring the software i run into problems which may or may not be caused by missing or wrong version of java.
For example: I tried document preview with .odt and .pdf files, but i get "Error in application/vnd.oasis.opendocument.text to PDF conversion", obviously there's something wrong with either my openoffice-installation or -configuration. But I can't say if a) openoffice is installed wrong, b) it's the wrong version of openoffice, c) openoffice is missing some other dependencies, d) it's misconfigured, or...
The same goes for imagemagick, swftools, ... There are just too many things that might be wrong, which leaves me poking around in a trial-and-error scheme. That's why I'd love to have a list of basic requirements that would help narrow the scope of poking around.
How to setup OKM 6.2 community on Ubuntu?
PostPosted:Thu Oct 11, 2012 9:46 pm
by macjaeger
Ok, after some more trial & error (and especially emptying caches where ever i found them: browser, java, tomcat...) i got my openkm server up and running on Ubuntu 12.04. Document conversion seems to work (can convert .odt to .pdf via toolbar / menu) using LibreOffice (Ubuntu default), as well as pdf2swf. But preview is only possible with zviewer, flexpaper gets stuck spinning it's wheel in the upper right corner. And I still can't use scanner.jar and uploader.jar because of java security exception "attempted to open sandboxed jar
http://192.168.0.66:8080/OpenKM/uploader.jar as Trusted-Only". Any ideas?
Re: Setup OKM 6.2 community on Ubuntu - but how?
PostPosted:Fri Oct 12, 2012 2:43 pm
by macjaeger
So I tried a little harder, and now I can use uploader.jar and scanner.jar, but I had to sign both applets using jarsigner and keytool.
Still flexpaper doesn't work, zviewer does though. So again: any ideas?
Re: Setup OKM 6.2 community on Ubuntu - but how?
PostPosted:Fri Oct 12, 2012 3:13 pm
by macjaeger
Continuing my findings...
Scanner applet does its job, but I have a problem with previewing tif-images. All other formats work as expected, but after scanning to tif-file there is an error-window "Conversion: The document is not open" and a ballontip "Document url not provided or invalid". The scanned image file is ok, i can download it and it looks like it should, but there seems to be a problem with tif-to-swf conversion: "Conversion: Error: May not be a PDF file (continuing anyway)".
Re: Setup OKM 6.2 community on Ubuntu 12.04 - my notes
PostPosted:Fri Oct 12, 2012 4:07 pm
by jllort
have you configured convert ( image magick ? )
about previsualization zviewer runs correctly but not flexpaper is that ?
Re: Setup OKM 6.2 community on Ubuntu 12.04 - my notes
PostPosted:Fri Oct 12, 2012 9:35 pm
by macjaeger
Yes, imagemagick is installed (version 6.6.9-7), system.imagemagick.convert is set to /usr/bin/convert, and i tested the conversion from tif to jpg in the shell successfully. The problem is limited to .tif files, all other image-formats are can be previewed without problems (using zviewer).
Preview of .odt, .pdf and all image formats (except tif) works when zviewer is selected. When i switch to flexpaper an restart tomcat, preview doesn't work for any files at all; flexpaper loads ("initializing"), i can even open the version info by clicking on "flexpaper"-logo, but it seems like it is stuck after fully receiving the document (the little circle icon in the upper right corner is constantly spinning around the number 100).
Re: Setup OKM 6.2 community on Ubuntu 12.04 - my notes
PostPosted:Sat Oct 13, 2012 5:01 pm
by pavila
Do you see any error in the text console?
Re: Setup OKM 6.2 community on Ubuntu 12.04 - my notes
PostPosted:Sat Oct 13, 2012 6:25 pm
by macjaeger
No. There are no errors in the console, not in the log-files either. The conversion to .swf is successfull, i downloaded the .swf-file to my desktop and could view it in my browser. I checked my flash installation (it's up to date) and tried with firefox and chrome, same results.
So this is not a "known problem" but restricted to my installation? Then I'll try a little more...
Re: Setup OKM 6.2 community on Ubuntu 12.04 - my notes
PostPosted:Mon Oct 15, 2012 1:27 pm
by pavila
Try to clean $TOMCAT_HOME/repository/cache/pdf/* and $TOMCAT_HOME/repository/cache/swf/* to re-create the conversion files.
Re: Setup OKM 6.2 community on Ubuntu 12.04 - my notes
PostPosted:Mon Oct 15, 2012 4:34 pm
by macjaeger
Thank you for the advice, but i tried that already - didn't help. The conversion works, the .swf-files seem fine (can be viewed in flash-viewer after dowload to desktop). I confirmed from another client PC and tried firefox, chrome and internet explorer, but the result is always the same, concluding that the problem has to come from my OKM installation...
[Update]
I followed up on the same error in other systems (e.g. drupal) and found the problem (and solution): I was missing the option "-T 9" (setting flash version in header) in swf2pdf commandline, which didn't cause any problems with zviewer, but obviously crashed flexpaper... After fixing this, flexpaper works like a charm!
Re: Setup OKM 6.2 community on Ubuntu 12.04 - my notes
PostPosted:Thu Oct 18, 2012 11:40 am
by pavila
Please, don't mix problems in the same forum thread because is difficult to follow.