cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco trying to use jod instead of libreoffice

schiem
Champ in-the-making
Champ in-the-making
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



3 REPLIES 3

eswbitto
Confirmed Champ
Confirmed Champ
Can you go here https://localhost/share/page/modules/deploy take a look at the modules that are loaded onto your alfresco install. I know that I Have added a couple of addons that break preview and had to remove them. It "might" help…so no guarantee's.

schiem
Champ in-the-making
Champ in-the-making
Thanks for the reply!

I don't have my certs configured properly, so https:// is no go.  But here is the list of files from my /opt/alfresco-4.2.e/tomcat/webapps/share/modules and my /opt/alfresco-4.2.e/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/modules:

<blockcode>
about-share-min.js      cloud-auth.js           create-site.js          delete-site.css         edit-site.css           form/                   rules/                  social-publish-min.js
about-share.css         create-event-min.js     data-lists/             delete-site.js          edit-site.js            header/                 simple-dialog-min.js    social-publish.css
about-share.js          create-event.css        data-picker-min.js      document-details/       editors/                images/                 simple-dialog.js        social-publish.js
blog/                   create-event.js         data-picker.css         document-picker/        email-form-min.js       property-picker-min.js  simple-editor-min.js    taglibrary/
cloud/                  create-site-min.js      data-picker.js          documentlibrary/        email-form.css          property-picker.css     simple-editor.css       wiki/
cloud-auth-min.js       create-site.css         delete-site-min.js      edit-site-min.js        email-form.js           property-picker.js      simple-editor.js       
</blockcode>

and

<blockcode>
about-share.get.desc.xml               create-site.get.html.ftl          delete-site.get_en.properties         edit-site.get_en.properties        property-picker.get_en.properties
about-share.get.html.ftl               create-site.get.js                delete-site.get_es.properties         edit-site.get_es.properties        property-picker.get_es.properties
about-share.get.js                     create-site.get.properties        delete-site.get_fr.properties         edit-site.get_fr.properties        property-picker.get_fr.properties
blog                                   create-site.get_de.properties     delete-site.get_it.properties         edit-site.get_it.properties        property-picker.get_it.properties
browse-docfolder.get.desc.xml          create-site.get_en.properties     delete-site.get_ja.properties         edit-site.get_ja.properties        property-picker.get_ja.properties
browse-docfolder.get.html.ftl          create-site.get_es.properties     delete-site.get_nb_NO.properties      edit-site.get_nb_NO.properties     property-picker.get_nb_NO.properties
browse-docfolder.get.properties        create-site.get_fr.properties     delete-site.get_nl.properties         edit-site.get_nl.properties        property-picker.get_nl.properties
browse-docfolder.get_de.properties     create-site.get_it.properties     delete-site.get_pt_BR.properties      edit-site.get_pt_BR.properties     property-picker.get_pt_BR.properties
browse-docfolder.get_en.properties     create-site.get_ja.properties     delete-site.get_ru.properties         edit-site.get_ru.properties        property-picker.get_ru.properties
browse-docfolder.get_es.properties     create-site.get_nb_NO.properties  delete-site.get_zh_CN.properties      edit-site.get_zh_CN.properties     property-picker.get_zh_CN.properties
browse-docfolder.get_fr.properties     create-site.get_nl.properties     delete-site.post.desc.xml             email-form.get.desc.xml            remove-component.post.desc.xml
browse-docfolder.get_it.properties     create-site.get_pt_BR.properties  delete-site.post.json.ftl             email-form.get.html.ftl            remove-component.post.html.ftl
browse-docfolder.get_ja.properties     create-site.get_ru.properties     delete-site.post.json.js              email-form.get.js                  remove-component.post.json.js
browse-docfolder.get_nb_NO.properties  create-site.get_zh_CN.properties  discussions                           email-form.get.properties          rules
browse-docfolder.get_nl.properties     create-site.post.desc.xml         document-details                      email-form.get_de.properties       search
browse-docfolder.get_pt_BR.properties  create-site.post.json.ftl         document-picker.get.desc.xml          email-form.get_en.properties       social-publish.get.desc.xml
browse-docfolder.get_ru.properties     create-site.post.json.js          document-picker.get.html.ftl          email-form.get_es.properties       social-publish.get.html.ftl
browse-docfolder.get_zh_CN.properties  dashlet                           document-picker.get.js                email-form.get_fr.properties       social-publish.get.js
cloud                                  data-picker.get.desc.xml          document-picker.get.properties        email-form.get_it.properties       social-publish.get.properties
create-event.get.config.xml            data-picker.get.html.ftl          document-picker.get_de.properties     email-form.get_ja.properties       social-publish.get_de.properties
create-event.get.desc.xml              data-picker.get.properties        document-picker.get_en.properties     email-form.get_nb_NO.properties    social-publish.get_en.properties
create-event.get.html.ftl              data-picker.get_de.properties     document-picker.get_es.properties     email-form.get_nl.properties       social-publish.get_es.properties
create-event.get.js                    data-picker.get_en.properties     document-picker.get_fr.properties     email-form.get_pt_BR.properties    social-publish.get_fr.properties
create-event.get.properties            data-picker.get_es.properties     document-picker.get_it.properties     email-form.get_ru.properties       social-publish.get_it.properties
create-event.get_de.properties         data-picker.get_fr.properties     document-picker.get_ja.properties     email-form.get_zh_CN.properties    social-publish.get_ja.properties
create-event.get_en.properties         data-picker.get_it.properties     document-picker.get_nb_NO.properties  feed                               social-publish.get_nb_NO.properties
create-event.get_es.properties         data-picker.get_ja.properties     document-picker.get_nl.properties     googledocs                         social-publish.get_nl.properties
create-event.get_fr.properties         data-picker.get_nb_NO.properties  document-picker.get_pt_BR.properties  header                             social-publish.get_pt_BR.properties
create-event.get_it.properties         data-picker.get_nl.properties     document-picker.get_ru.properties     html.status.ftl                    social-publish.get_ru.properties
create-event.get_ja.properties         data-picker.get_pt_BR.properties  document-picker.get_zh_CN.properties  links                              social-publish.get_zh_CN.properties
create-event.get_nb_NO.properties      data-picker.get_ru.properties     documentlibrary                       notice                             taglibrary
create-event.get_nl.properties         data-picker.get_zh_CN.properties  edit-site.get.desc.xml                property-picker.get.desc.xml       webview
create-event.get_pt_BR.properties      delete-site.get.desc.xml          edit-site.get.html.ftl                property-picker.get.html.ftl       wiki
create-event.get_ru.properties         delete-site.get.html.ftl          edit-site.get.js                      property-picker.get.js
create-event.get_zh_CN.properties      delete-site.get.properties        edit-site.get.properties              property-picker.get.properties
create-site.get.desc.xml               delete-site.get_de.properties     edit-site.get_de.properties           property-picker.get_de.properties
</blockcode>

schiem
Champ in-the-making
Champ in-the-making
Well I'm terribly embarassed.  I changed
<blockcode>
img.exe=usr/bin/convert
swf.exe=usr/local/bin/pdf2swf
</blockcode>
to
<blockcode>
img.exe=/usr/bin/convert
swf.exe=/usr/local/bin/pdf2swf
</blockcode>

and everything is working.  Silly typo on my part.