cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 4.0 Community - Document preview does not work

thewalker
Champ in-the-making
Champ in-the-making
Hi,

I have installed Alfresco 4.0 community edition on my Mac running Snow Leopard. The installation was a breeze but try as I might, I am not able to get the document (MS-Word) preview working. The PDF preview works, however.

I am using a pre-installed OpenOffice.

The <ALFRESCO_HOME>/alfresco.log file shows this:


18:33:58,721 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]
18:33:59,139 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
18:33:59,147 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete

And this is what I have in the properties file:


ooo.exe=/Applications/OpenOffice.org.app/Contents/MacOS/soffice.bin
ooo.enabled=true
ooo.port=8100
ooo.port=8100

If I start OpenOffice from the command line with the same path, OpenOffice works.

Any help will be greatly appreciated.
6 REPLIES 6

loftux
Star Contributor
Star Contributor
That looks ok, I have it running with on Lion with
ooo.exe=/Applications/LibreOffice.app/Contents/MacOS/soffice.bin
ooo.enabled=true
img.root=/usr/local
img.dyn=/usr/local/lib
img.exe=/usr/local/bin/convert
swf.exe=/usr/local/bin/pdf2swf

I'm using Brew for convert and pdf2swf.

The "An initial OpenOffice connection could not be established." is just a warning, that always happens. You Should later see a message that it connected.
If you do
netstat -a|grep 8100
Do you see it running?

thewalker
Champ in-the-making
Champ in-the-making
Thanks for the quick reply.

I do not see the connected message in the log and netstat does not show anything on 8100.

Do I need Brew/ImageMagick for convert before this will work?

loftux
Star Contributor
Star Contributor
Do I need Brew/ImageMagick for convert before this will work?
Conversion take several steps, from MS doc via Open Office to PDF via Ppdf2swf to final Flash preview. So yes you will need all to get flash previews.
convert an odf2swf is part of the mac os installer, you can grab them from there if you want.

What if you do
ps aux|grep soffice
do you see an open office process started then?

thewalker
Champ in-the-making
Champ in-the-making
OK, I understand.

ps aux | grep soffice does not find anything either.

Looking through the alfresco.sh script, it appears that it looks for a ctl.sh under the <INSTALLDIR>/openoffice folder. However, there is no openoffice folder under the install dir. I am not sure if this is relevant to the issue.

rkramedjian
Champ on-the-rise
Champ on-the-rise
I am running 0n Mac 10.7.3 with Alfresco 4.0.c and I am not getting the connect or preview. 

when I do the ps aux|grep soffice I only see the grep task in the list.

What do we need to do to get the preview working?

Ron

reva_12
Champ in-the-making
Champ in-the-making
Have you guys resolved this issue? I am facing similar issue and I am unable to start openoffice. Couldnt see anything when I do ps commands. Please help.