cancel
Showing results for 
Search instead for 
Did you mean: 

OpenOffice not starting - CentOS 5.3 - Alfresco 3Stable

signal
Champ in-the-making
Champ in-the-making
I have just completed installing Alfresco on CentOS 5.3, and have only one issue.  It is saying my openoffice is not starting.

22:54:26,464 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be e
stablished.

I have moved openoffice-startup-context.xml to /var/lib/tomcat5/shared/classes/alfresco/extension/bootstrap/

I then edited /var/lib/tomcat5/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties with the following values:

# External executable locations
# ooo.exe=soffice
ooo.exe=/usr/lib/openoffice.org/program/soffice
ooo.user=${dir.root}/oouser
# img.root=./ImageMagick
# img.dyn=${img.root}/lib
# img.exe=${img.root}/bin/convert
# swf.exe=./bin/pdf2swf
img.exe=/usr/bin/convert
swf.exe=/usr/bin/pdf2swf

I see alot of people talk about editing /var/lib/tomcat5/shared/classes/alfresco/extension/custom-repository.properties
however, mine did not have a "external executable locations" section, and being new to Alfresco, I wasn't sure if they had just moved the location of this info
around.

As you can see my soffice does exist:
[root@server2 alfresco]# ls -al /usr/lib/openoffice.org/program/soffice
-rwxr-xr-x 1 root root 3894 Jan 22 12:00 /usr/lib/openoffice.org/program/soffice

I have confirmed that after Alfresco is running there is no soffice running in the background.

There are alot of posts on this, but none that I have seen that are helpful to fix my issue.  I am starting Alfresco by launching tomcat, so I am not using a separate shell script, nor am I using start_oo.sh etc.  I mostly followed the instructions at:

http://wiki.alfresco.com/wiki/Installing_Alfresco_Community_WAR_on_Centos_5

As an aside, should I be editing values in /var/lib/tomcat5/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties or should I only be editing /var/lib/tomcat5/shared/classes/alfresco/extension/custom-repository.properties?

Thanks for any help,

Brian
1 REPLY 1

signal
Champ in-the-making
Champ in-the-making
An update to my posting.  I do have the headless version of openoffice installed:

[root@server2 extension]# rpm -qa|grep openoffice
openoffice.org-base-2.3.0-6.10.el5
openoffice.org-headless-2.3.0-6.10.el5
openoffice.org-core-2.3.0-6.10.el5
openoffice.org-calc-2.3.0-6.10.el5
openoffice.org-writer-2.3.0-6.10.el5
openoffice.org-impress-2.3.0-6.10.el5
openoffice.org-draw-2.3.0-6.10.el5
openoffice.org-graphicfilter-2.3.0-6.10.el5
openoffice.org-pyuno-2.3.0-6.10.el5
openoffice.org-xsltfilter-2.3.0-6.10.el5
openoffice.org-math-2.3.0-6.10.el5

Also I have verified that if I start openoffice manually then launch alfresco, it works fine:

/usr/lib/openoffice.org/program/soffice.bin -accept=socket,host=localhost,port=8100;urp; -nologo -headless -nofirststartwizard &

I did find out that there is a bug in the openoffice wrapper: /usr/lib/openoffice.org/program/soffice, so you have to use /usr/lib/openoffice.org/program/soffice.bin otherwise the -headless option does not work properly. 

But I have my files all updated to use "/usr/lib/openoffice.org/program/soffice.bin" as my office program and launching "service tomcat5 start" does not seem to kickoff openoffice. 

I am wondering if its even trying to run openoffice, I have the openoffice-startup-context.xml  in /var/lib/tomcat5/shared/classes/alfresco/extension/bootstrap/

Brian