Monday, February 28, 2011

Configuring Alfresco Community Edition for OpenOffice Document Transforms

this is for alfresco version 3.4.d

have been getting an error similar to the following after configuring a rule in alfresco for converting documents from MS formats to Open Document formats:

Failed to run Actions due to error: 02050010 Transformer for 'application/msword' source mime type and 'application/pdf' target mime type was not found. Operation can't be performed

since I'm now having to dig for the second time on this, figured I'd write it down.

See the following pages:

http://wiki.alfresco.com/wiki/Setting_up_OpenOffice_for_Alfresco (most details)
http://wiki.alfresco.com/wiki/Repository_Configuration (location of the .properties file)

the long and the short of it is this:

find the location of the "alfresco-global.properties" file

[root@OPS5-Alfresco ~]# locate alfresco-global.properties
/opt/alfresco-3.4.d/tomcat/shared/classes/alfresco-global.properties

if you open this file, look for the following line:

ooo.enabled=false

change to true using your favorite editor (vi, nano, etc)
restart alfresco

service alfresco restart (bounces tomcat and mysql)

to know when the alfresco system is up, use "tail -f /opt/alfresco-3.4.d/tomcat/logs/catalina.<date>.log" and look for the line:

INFO: Server startup in 136056 ms

this will confirm that when alfresco starts, OpenOffice will be started with the service and able to convert documents.  Happy uploading!