OpenOfficeServer
From Plex-XML
For some configurations we use OpenOffice as a service to create PDF/Excel and so on. So here is a little HOWTO
- Install OpenOffice and start it at least one time.
- Download and install the Windows Server 2003 Resource Kit Tools
- Read how to create an own service
- create your service named "OpenOfficeUnoServer" or whatever you want as the name
- run "<Path>\INSTSRV.EXE OpenOfficeUnoServer <Path>\SRVANY.EXE" where <Path> is the Path to the Resource Kit Tools
- Edit the registry Keys :
- create a key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OpenOfficeUnoServer\Parameters
- add there an entry "AppDirectory" with a value of the installation directory of OpenOffice eg. "C:\Program Files\OpenOffice.org 2.0\program\"
- add an Entry "Application" with following Value "AppDirectory from step 2\soffice.exe -headless -accept=socket,host=0.0.0.0,port=9000;urp;"
- the port should correspond to the one in web.xml
- Disable the license dialog of OpenOffice
- edit <AppDirectory>\share\registry\data\org\openoffice\Setup.xcu (for OOo 3 <AppDirectory>\Basis\share\registry\data\org\openoffice\Setup.xcu) and replace
<prop oor:name="ooSetupInstCompleted"> <value>false</value> </prop> <prop oor:name="ooSetupShowIntro"> <value>true</value> </prop>
with
<prop oor:name="ooSetupInstCompleted" oor:type="xs:boolean"> <value>true</value> </prop> <prop oor:name="LicenseAcceptDate" oor:type="xs:string"> <value>yyyy-MM-ddThh:mm:ss</value> </prop> <prop oor:name="FirstStartWizardCompleted" oor:type="xs:boolean"> <value>true</value> </prop>
where the timestamp should be later than the installation of OpenOffice
Hint: If it doesn't work now it's a good tip to reboot your machine. Another tip is to look after a firewall blocking your requests.
64 Bit Vista
Replace step 3. and 4 with the command:
sc create "OpenOfficeUnoServer" start= auto binpath= "C:\<Path>\srvany.exe"
- The spaces after "=" are not optional!
- srvany.exe is part of the Windows Server 2003 Resource Kit Tools



