OpenOffice 4 modo listening no abre documentos
Publicado: Jue Ene 08, 2015 4:36 pm
Hola, a ver si me podeis echar una mano, tengo una aplicación desarrollada en java que utiliza OpenOffice Writter para mostrar archivos. Hasta las versiones 3.xx no había problema: se configuraba el archivo setup para que se quedara listening por el puerto 8100, lanzo quickstart.exe y la aplicación cuando tenía que mostrar algo en formato sxw levantaba openoffice.
Ahora en la versión 4 se que hay un sustituto para setup, main, pues bien añado esas líneas de configuración al main y no consigo que la aplicación me levante openoffice. Indicar que netstat -an me muestra por tcp el 8100 en listening y cuando hago telnet localhost 8100 tambien funciona.
Indicar que sigo estos pasos:
The main.xcd file is located in the following directory: Windows: <OpenOffice_install_dir>\openoffice.org\basis<version_number>\share\registry UNIX:<OpenOffice_install_dir>/openoffice.org/basis<version_number>/share/registry
Search for the element <node oor:name="Office">. This element contains several <prop/> elements.
Insert the following <prop/> element on the same level as the existing elements, as the first element:
<prop oor:name="ooSetupConnectionURL" oor:type="xs:string">
<value>socket,host=localhost,port=8100;urp;</value>
</prop>
This configures OpenOffice to provide a socket on port 8100, where it will serve connections via the UNO remote protocol (URP). Be careful to block port 8100 for connections from outside your network in your firewall. Using port 8100 is recommended. However, it might be necessary to adjust the port number if port 8100 is already in use on your machine. In this case, replace 8100 in the element with the port number that you want to use.
After making changes to the Setup.xcu or main.xcd file, stop and restart the Quickstarter (Windows) or soffice (UNIX or Windows).
¿Ha cambiado algo en la versión 4? ¿Tengo que modificar algo más?
Ahora en la versión 4 se que hay un sustituto para setup, main, pues bien añado esas líneas de configuración al main y no consigo que la aplicación me levante openoffice. Indicar que netstat -an me muestra por tcp el 8100 en listening y cuando hago telnet localhost 8100 tambien funciona.
Indicar que sigo estos pasos:
The main.xcd file is located in the following directory: Windows: <OpenOffice_install_dir>\openoffice.org\basis<version_number>\share\registry UNIX:<OpenOffice_install_dir>/openoffice.org/basis<version_number>/share/registry
Search for the element <node oor:name="Office">. This element contains several <prop/> elements.
Insert the following <prop/> element on the same level as the existing elements, as the first element:
<prop oor:name="ooSetupConnectionURL" oor:type="xs:string">
<value>socket,host=localhost,port=8100;urp;</value>
</prop>
This configures OpenOffice to provide a socket on port 8100, where it will serve connections via the UNO remote protocol (URP). Be careful to block port 8100 for connections from outside your network in your firewall. Using port 8100 is recommended. However, it might be necessary to adjust the port number if port 8100 is already in use on your machine. In this case, replace 8100 in the element with the port number that you want to use.
After making changes to the Setup.xcu or main.xcd file, stop and restart the Quickstarter (Windows) or soffice (UNIX or Windows).
¿Ha cambiado algo en la versión 4? ¿Tengo que modificar algo más?