J.D. - 2013-10-06

In LibreOffice 3.4 and above, the soffice startup parameters have been changed from "-" to "--".
Additionally, there are additional startup parameters available in LibreOffice 3.4 and above that will allow soffice.bin to better run in the background. These are:

These are in addition to the startup parameters already suggested in the DougDocX setup.pdf documentation, and summarized here, but with a "--" instead of the formerly used "-":

These options apply to both Linux and Windows versions of LibreOffice. So, for a Linux install, assuming that LibreOffice is installed at /opt/libreoffice3.4, the command line to run soffice.bin in the background would look like this:

/opt/libreoffice3.4/program/soffice.bin --accept=socket,host=,port=8100;urp;StarOffice.ServiceManager --norestore --invisible --nolockcheck --headless --nologo --nofirststartwizard

You may need single-quotes arount the accept parameter, like this:
/opt/libreoffice3.4/program/soffice.bin --accept='socket,host=,port=8100;urp;StarOffice.ServiceManager' --norestore --invisible --nolockcheck --headless --nologo --nofirststartwizard

If you are accessing the openoffice services across the network instead of on the same machine as the Tomcat server, the actual IP of the machine would be used instead of the shown above. In this case, you'd also have to edit ddxreports.properties to tell the DougDocX web application where to find the service.

At this time, I have still not been successful using soffice.bin from LibreOffice 4.x distributions with DougDocX. However, soffice.bin and all the relevant jar files are present in LibreOffice 4.x, so it should work. If you have any insight on using the soffice in LibreOffice 4.x distributions, please comment here.

Last edit: J.D. 2013-10-06