cancel
Showing results for 
Search instead for 
Did you mean: 

NO PREVIEW IN 4.2D

marcello_modica
Champ in-the-making
Champ in-the-making
[FONT=Arial Black]Well, i find time to write correctly and update this post. [/FONT]
[SIZE=4]I want to configure OOoJodConverter subsystem on 4.2d CE[/SIZE]
[FONT=Arial Black]I try to install from scratch Alfresco 4.2d con ubuntu 12.04 LTS.[/FONT]
[FONT=Arial Black]The enviroment is: O.S Ubuntu 12.04LTS, Alfresco 4.2d community edition.[/FONT]
[FONT=Arial Black]
[/FONT]
[FONT=Arial Black]I think many users want to config it, with difficult, see link below:[/FONT]
[FONT=Arial Black]
[/FONT]
http://forums.alfresco.com/forum/installation-upgrades-configuration-integration/installation-upgrad...


http://forums.alfresco.com/forum/installation-upgrades-configuration-integration/installation-upgrad...




The output for third party tools is, here we can evice tools path:

Using CATALINA_BASE:   /opt/alfresco/tomcat
Using CATALINA_HOME:   /opt/alfresco/tomcat
Using CATALINA_TMPDIR: /opt/alfresco/tomcat/temp
Using JRE_HOME:      /opt/alfresco/java/jdk1.7.0_25
Using CLASSPATH:     /opt/alfresco/tomcat/bin/bootstrap.jar:/opt/alfresco/tomcat/bin/tomcat-juli.jar
alfresco@cms:~$ whereis soffice
soffice: /usr/bin/soffice /usr/bin/X11/soffice
alfresco@cms:~$ whereis pdf2swf
pdf2swf: /usr/local/bin/pdf2swf
alfresco@cms:~$ whereis convert
convert: /usr/local/bin/convert
alfresco@cms:~$ whereis liberoffice
liberoffice:
alfresco@cms:~$ whereis libreoffice
libreoffice: /usr/bin/libreoffice /etc/libreoffice /usr/lib/libreoffice /usr/bin/X11/libreoffice /usr/share/libreoffice /usr/share/man/man1/libreoffice.1.gz
alfresco@cms:~$ whereis gs
gs: /usr/bin/gs /usr/bin/X11/gs /usr/share/man/man1/gs.1.gz

The tools version  output is:

alfresco@cms:~$ soffice –version
LibreOffice 3.5


alfresco@cms:~$ pdf2swf –version
pdf2swf - part of swftools 0.9.2
alfresco@cms:~$ convert –version
Version: ImageMagick 6.8.6-10 2013-09-19 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: fontconfig freetype gslib jng jp2 jpeg lcms png ps png tiff zlib

I want to configure OOoJodConverter subsystem on 4.2d CE. Based on path parameters I update  shared global.properties file with this line:

###########################################
#LOGCONSULTING CUSTOMIZATIONS
#######################################


dir.root=/opt/alfresco/alf_data
#IMPORTANT: comment dir.keystore


db.username=alfresco
db.password=alfresco


db.schema.update=true


db.driver=org.postgresql.Driver
db.url=jdbcSmiley Tongueostgresql://localhost:5432/alfresco


index.recovery.mode=AUTO


authentication.chain=alfrescoNtlm1:alfrescoNtlm


alfresco.rmi.services.host=0.0.0.0


#
# External locations
#————-
# LibreOffice
ooo.exe=/usr/lib/libreoffice/program/soffice.bin
ooo.enabled=false
ooo.port=8100
jodconverter.officeHome=/usr/lib/libreoffice
jodconverter.portNumbers=8101,8102,8103
jodconverter.enabled=true
# ImageMagick installation
img.root=/usr/local
img.exe=/usr/local/bin/convert
# SWFTools exe
swf.exe=/usr/local/bin/pdf2swf




#SOLR INSTALL


dir.keystore=/opt/alfresco/alf_data/keystore


index.subsystem.name=solr
solr.host=localhost
solr.port=8080
solr.port.ssl=8443


#cifs


cifs.enabled=false
cifs.domain=WORKGROUP
cifs.serverName=${localname}A
cifs.hostannounce=true


#ftp


ftp.enabled=false


[SIZE=5]The error is always the same as in , others users posts:[/SIZE]


at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:724)
2013-09-20 12:19:37,914  INFO  [web.scripts.ImapServerStatus] [http-bio-8080-exec-1] Successfully retrieved IMAP server status from Alfresco: disabled
2013-09-20 12:20:20,123  INFO  [management.subsystems.ChildApplicationContextFactory] [http-bio-8080-exec-13] Starting 'Transformers' subsystem, ID: [Transformers, default]
2013-09-20 12:20:20,171  ERROR [content.transform.TransformerConfigDynamicTransformers] [http-bio-8080-exec-13] Cannot create dynamic transformer transformer.complex.JodConverter.Image as sub transformers could not be found or created ("JodConverter.2Pdf|pdf|complex.PDF.Image").
2013-09-20 12:20:20,171  ERROR [content.transform.TransformerConfigDynamicTransformers] [http-bio-8080-exec-13] Cannot create dynamic transformer transformer.complex.JodConverter.Pdf2swf as sub transformers could not be found or created ("JodConverter.2Pdf|pdf|Pdf2swf").
2013-09-20 12:20:20,171  ERROR [content.transform.TransformerConfigDynamicTransformers] [http-bio-8080-exec-13] Cannot create dynamic transformer transformer.JodConverter.Html2Pdf as sub transformers could not be found or created ("JodConverter|odt|JodConverter").
2013-09-20 12:20:20,171  ERROR [content.transform.TransformerConfigDynamicTransformers] [http-bio-8080-exec-13] Cannot create dynamic transformer transformer.JodConverter.2Pdf as sub transformers could not be found or created ("JodConverter|JodConverter.Html2Pdf").
2013-09-20 12:20:20,171  ERROR [content.transform.TransformerConfigDynamicTransformers] [http-bio-8080-exec-13] Cannot create dynamic transformer transformer.complex.JodConverter.PdfBox as sub transformers could not be found or created ("JodConverter.2Pdf|pdf|PdfBox").
2013-09-20 12:20:20,252  INFO  [management.subsystems.ChildApplicationContextFactory] [http-bio-8080-exec-13] Startup of 'Transformers' subsystem, ID: [Transformers, default] complete
2013-09-20 12:20:23,326  INFO  [web.scripts.MimetypesQuery] [http-bio-8080-exec-7] Successfully retrieved mimetypes information from Alfresco.
6 REPLIES 6

scopio
Champ in-the-making
Champ in-the-making
I am having the same problem. do you have a fix for this

I try to install this jars (https://maven.alfresco.com/nexus/content/groups/public/com/artofsolving/jodconverter-core/) in the share/lib tomcat directory. The error is different but the problem persist.
I do not understand if the community edition can use this subsystem. Can you explain me?

I open a JIRA: https://issues.alfresco.com/jira/browse/ALF-20108

Anyone found a solution?

braguzz
Champ in-the-making
Champ in-the-making
(SOLVED) my problem was a mis-configuration of image-magick in /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/thirdparty/default/imagemagick-transform.properties
(I don't know the reason because of with 4.2.c worked)

I put this
# External executable locations
img.root=/usr
img.dyn=${img.root}/lib
img.exe=${img.root}/local/bin/convert
#img.coders=${img.root}/modules/coders
#img.config=${img.root}/config
img.gslib=${img.root}/share/ghostscript/9.05/lib


in that file and thumb works as it should.

thanks!

PS.
I've disable jodconverter, but at start I have some errors like
2013-10-09 08:25:31,235  ERROR [content.transform.TransformerConfigDynamicTransformers] [http-bio-8080-exec-7] Cannot create dynamic transformer transformer.complex.JodConverter.Pdf2swf as sub transformers could not be found or created ("JodConverter.2Pdf|pdf|Pdf2swf").

I dont know why….

zannafar
Champ in-the-making
Champ in-the-making
Hello Marcello,

Your problem with your online preview with Office files is because Alfresco don't have access to a LibreOffice application (transformation service) so it cannot convert it to PDF and PDF2SWF could do the rest of the preview (transform pdf to sfw).

I can see the following lines in your alfresco-global.properties
   <strong>jodconverter.officeHome=/usr/lib/libreoffice
   jodconverter.portNumbers=8101,8102,8103
   jodconverter.enabled=true</strong>

Did you change this configuration manually? Was enabled before <strong>ooo.enabled</strong>?

As I can see your Alfresco server could not make LibreOffice work as service (JodConverter). I've tried a couple times and it does not work just changing from one subsystem (ooo) to the other (jodconverter). Checking a solution for that I've found this link in <a href="http://docs.alfresco.com/community/index.jsp?topic=%2Fcom.alfresco.community.doc%2Fconcepts%2Finstal...">docs.alfresco.com</a>. It seems to be a validation with Alfresco full installer, it check if some libraries are present in the installation server to allow JodConverter works normally, if those libraries are not present installer disables JodConverter and enable direct transformation (ooo.enabled=true).

Try installing this libraries to make LibreOffice works and you will have no problems with preview.

Another option if you are in a hurry is install OpenOffice 3.3 and configure Alfresco transformation service to use this OpenOffice.

Best regards,
Diego.

PD: I can see in jodconverter port numbers 8101,8102,8103, I have seen always just one port here, it could be causing some troubles with transformation services too. I could recommend to you fix this first and try with the rest. BYE.

omaha2002
Champ in-the-making
Champ in-the-making
Not sure if it's the same problem but I installed a fresh Alfresco 4.2.e and didn't see previews.

Turned out I had to install  Libxinerama

In Ubuntu 12.04.3 LTS  ->    "apt-get install libxinerama-dev libxft-dev libxi-dev"   as root