cancel
Showing results for 
Search instead for 
Did you mean: 

preview doesn't work

liang
Champ in-the-making
Champ in-the-making
Hi,
After following the guide: http://wiki.alfresco.com/wiki/Alfresco_on_Eclipse. I find the preview function doesn't work. I am pretty sure that I configure ImageMagick and SWFTools into System path. Here is the error message from alfresco.log:
———————————————————————————————–
ImageMagickContentTransformerWorker not available: 01220000 Failed to perform ImageMagick transformation:
Execution result:
   os:         Windows XP
   command:    [./ImageMagick/bin/convert, D:\apache-tomcat-6.0.35\temp\Alfresco\ImageMagickContentTransformerWorker_init_source_7633881362727849680.gif[0], D:\apache-tomcat-6.0.35\temp\Alfresco\ImageMagickContentTransformerWorker_init_target_248480273820017425.png]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./ImageMagick/bin/convert": CreateProcess error=2, The system cannot find the file specified
13:43:04,037 ERROR [org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker] Failed to start a runtime executable content transformer:
Execution result:
   os:         Windows XP
   command:    [./bin/pdf2swf, -V]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "./bin/pdf2swf": CreateProcess error=2, The system cannot find the file specified
13:43:04,037 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
13:43:04,037 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]
13:43:04,614 ERROR [org.alfresco.util.exec.RuntimeExecBootstrapBean] Bootstrap command failed:
Execution result:
   os:         Windows XP
   command:    [soffice, -accept=socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager, -env:UserInstallation=file:///D:/apache-tomcat-6.0.35/bin/alf_data/oouser, -nologo, -headless, -nofirststartwizard, -nocrashrep, -norestore]
   succeeded:  false
   exit code:  2
   out:       
   err:        Cannot run program "soffice": CreateProcess error=2, The system cannot find the file specified
13:43:05,705 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
———————————————————————————————–

Any idea? Thanks in advance!
2 REPLIES 2

jonash
Champ in-the-making
Champ in-the-making
Hi,

You need to configure the path of OpenOffice, ImageMagick and swftools in your alfresco-global.properties file.
On Windows your settings should look like this: (the exact paths can be different)


ooo.exe=soffice
ooo.enabled=false
jodconverter.officeHome=C:/Program Files/OpenOffice.org 3
jodconverter.portNumbers=8101
jodconverter.enabled=true
img.root=C:/Program Files/ImageMagick-6.7.5-Q16
img.exe=C:/Program Files/ImageMagick-6.7.5-Q16/convert.exe
swf.exe=C:/Program Files/SWFTools/pdf2swf

Hope this helps.

tusharpatel88
Champ in-the-making
Champ in-the-making
You need to provide openoffice and imagemagik path in global.properties below are my configuration for windows.

ooo.exe=C:\\Program Files (x86)\\OpenOffice.org 3\\program\\soffic.exe
ooo.enabled=true
jodconverter.officeHome=C:\\Program Files (x86)\\OpenOffice.org 3
jodconverter.portNumbers=8101
jodconverter.enabled=true
img.root=C:\\Program Files\\ImageMagick-6.8.9-Q8
img.exe=C:\\Program Files\\ImageMagick-6.8.9-Q8\\convert.exe