AnsweredAssumed Answered

Alfresco trying to use jod instead of libreoffice

Question asked by schiem on Mar 13, 2014
Latest reply on Mar 25, 2014 by schiem
I'm currently running alfresco-4.2.e Community on Gentoo.  The server itself is running fine, but I can't seem to get previews for anything except images to work (.pdf, .doc, .docx, .txt, .js all say "This document can't be previewed.").  In my alfresco-global.properties I have enabled ooo and disabled jod converter:

<blockcode>
ooo.enabled=true
jodconverter.enabled=false
</blockcode>

However, alfresco seems to be attempting to start jodconverter on startup and throws this error on the startup in alfresco.log:

<blockcode>
14:39:28,023 ERROR [org.alfresco.repo.content.transform.TransformerConfigDynamicTransformers] Cannot create dynamic transformer transformer.complex.JodConverter.Image as sub transformers could not be found or created ("JodConverter.2Pdf|pdf|complex.PDF.Image").
14:39:28,023 ERROR [org.alfresco.repo.content.transform.TransformerConfigDynamicTransformers] Cannot create dynamic transformer transformer.complex.JodConverter.Pdf2swf as sub transformers could not be found or created ("JodConverter.2Pdf|pdf|Pdf2swf").
14:39:28,023 ERROR [org.alfresco.repo.content.transform.TransformerConfigDynamicTransformers] Cannot create dynamic transformer transformer.JodConverter.Html2Pdf as sub transformers could not be found or created ("JodConverter|odt|JodConverter").
14:39:28,023 ERROR [org.alfresco.repo.content.transform.TransformerConfigDynamicTransformers] Cannot create dynamic transformer transformer.JodConverter.2Pdf as sub transformers could not be found or created ("JodConverter|JodConverter.Html2Pdf").
14:39:28,023 ERROR [org.alfresco.repo.content.transform.TransformerConfigDynamicTransformers] Cannot create dynamic transformer transformer.complex.JodConverter.PdfBox as sub transformers could not be found or created ("JodConverter.2Pdf|pdf|PdfBox").
14:39:28,118 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Transformers' subsystem, ID: [Transformers, default] complete
</blockcode>

I have installed pdf2swf, ImageMagick, and GhostScript and have the global properties pointing to the appropriate locations.  Each one works from the terminal fine.  I also have LibreOffice installed and the global properties pointing to soffice.bin:

<blockcode>
ooo.exe=/usr/lib64/libreoffice/program/soffice.bin
ooo.enabled=true
ooo.port=8100
img.root=/opt/alfresco-4.2.e/common
img.dyn=usr/lib64
img.exe=usr/bin/convert
swf.exe=usr/local/bin/pdf2swf
swf.languagedir=/opt/alfresco-4.2.e/common/japanese
img.gslib=${img.root}/share/ghostscript/8.56/lib/
</blockcode>

pdf2swf and imagemagick are in /usr/bin, while ghostscript is in the alfresco installation folder.
There is also an instance of LibreOffice running which was started by alfresco, and a ps aux | grep "soffice" reveals:
<blockcode>
user     12565  0.0  1.0 730004 42552 pts/0    Sl   14:38   0:00 /usr/lib64/libreoffice/program/soffice.bin –accept=socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager -env:UserInstallation=file:///opt/alfresco-4.2.e/alf_data/oouser –headless –nocrashreport –nofirststartwizard –nologo –norestore

</blockcode>

Any ideas how to get previews working?  Am I understanding some part of the configuration incorrectly?  Let me know if there is any other information I should be providing.

Thanks,

Schiem



Outcomes