01-30-2008 09:40 PM
03:02:22,398 User:System INFO [domain.schema.SchemaBootstrap] No changes were made to the schema.
03:02:23,101 User:System ERROR [util.exec.RuntimeExecBootstrapBean] Bootstrap command failed:
Execution result:
os: Linux
command: "/usr/lib/openoffice.org2.0/program/soffice" "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file:///%2Fopt/alfresco/2.1-b/oouser" -nologo -headless -nofirststartwizard -nocrashrep -norestore
succeeded: false
exit code: 2
out:
err: "/usr/lib/openoffice.org2.0/program/soffice": not found
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="openOfficeStartupBootstrap" class="org.alfresco.util.exec.RuntimeExecBootstrapBean" >
<property name="startupCommands">
<list>
<ref bean="openOfficeStartupCommand" />
</list>
</property>
<property name="failOnError">
<value>false</value>
</property>
</bean>
<bean id="openOfficeStartupCommand" class="org.alfresco.util.exec.RuntimeExec">
<property name="commandMap">
<map>
<entry key=".*">
<value><![CDATA["/usr/lib/openoffice.org2.0/program/soffice" "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file:///%2Fopt/alfresco/2.1-b/oouser" -nologo -headless -nofirststartwizard -nocrashrep -norestore]]></value>
</entry>
</map>
</property>
<property name="waitForCompletion">
<value>false</value>
</property>
<property name="errorCodes">
<value>2</value>
</property>
</bean>
</beans>
02-12-2008 11:41 AM
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="openOfficeStartupBootstrap" class="org.alfresco.util.exec.RuntimeExecBootstrapBean" >
<property name="startupCommands">
<list>
<ref bean="openOfficeStartupCommand" />
</list>
</property>
<property name="failOnError">
<value>false</value>
</property>
</bean>
<bean id="openOfficeStartupCommand" class="org.alfresco.util.exec.RuntimeExec">
<property name="commandMap">
<map>
<entry key=".*">
<value><![CDATA[/usr/lib/openoffice/program/soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file:///usr/lib/openoffice" -nologo -headless -nofirststartwizard -nocrashrep -norestore]]></value>
</entry>
</map>
</property>
<property name="waitForCompletion">
<value>false</value>
</property>
<property name="errorCodes">
<value>2</value>
</property>
</bean>
</beans>03-04-2008 10:30 AM
Hi,
Openoffice gets installed in Linux under /usr/lib/openoffice/program (depends on the linux distro.
openoffice-startup-context.xml is essential to bootstrap openoffice when the server is started.
The openoffice-startup-context.xml file should be modified to point to the correct location of the openoffice installation.<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="openOfficeStartupBootstrap" class="org.alfresco.util.exec.RuntimeExecBootstrapBean" >
<property name="startupCommands">
<list>
<ref bean="openOfficeStartupCommand" />
</list>
</property>
<property name="failOnError">
<value>false</value>
</property>
</bean>
<bean id="openOfficeStartupCommand" class="org.alfresco.util.exec.RuntimeExec">
<property name="commandMap">
<map>
<entry key=".*">
<value><![CDATA[/usr/lib/openoffice/program/soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file:///usr/lib/openoffice" -nologo -headless -nofirststartwizard -nocrashrep -norestore]]></value>
</entry>
</map>
</property>
[/quote]
Like the original poster, I, too continue to receive a log message stating that Open Office is not able to be started. To solve this problem I am starting Open Office outside of the Alfresco start process.
I believe that Alfresco has some sort of error in attempting to start Open Office. My main evidence to support this is that if I take the Open Office Startup Command, i.e.
/usr/lib/openoffice/program/soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file:///usr/lib/openoffice" -nologo -headless -nofirststartwizard -nocrashrep -norestore
and put it in a separate shell script and run it as the same user as Alfresco, it works perfectly fine.
I don't know what you mean when you say that "[b]openoffice-startup-context.xml[/b] is essential to bootstrap openoffice when the server is started." I think what you mean to say is that it is essential that Open Office be started as part of the Alfresco process. My own limited testing supports the notion that Alfresco will interoperate with a separately started Open Office instance correctly.
Kind regards,
Jim Greer
03-27-2008 05:14 AM
Hi,
Like the original poster, I, too continue to receive a log message stating that Open Office is not able to be started. To solve this problem I am starting Open Office outside of the Alfresco start process.
I believe that Alfresco has some sort of error in attempting to start Open Office. My main evidence to support this is that if I take the Open Office Startup Command, i.e.
02-03-2014 06:25 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.