I am developing web application using Java + OpenOffice to generate report documents.

A tomcat server and the war file is installed on a Fedora machine.

Below code works fine to create writer documents on Windows OS but giving error on the Fedora machine while calling from client side using war file:

```
String oooExeFolder = "/usr/lib/openoffice.org3/program";              
XComponentContext xContext = BootstrapSocketConnector.bootstrap(oooExeFolder);

XMultiComponentFactory xMultiComponentFactory = xContext.getServiceManager();

XComponentLoader xcomponentloader = (XComponentLoader) UnoRuntime.queryInterface(XComponentLoader.class, xMultiComponentFactory.createInstanceWithContext("com.sun.star.frame.Desktop", xContext));

XComponent xcomp = xcomponentloader.loadComponentFromURL(filep[i], "_blank", 0, new PropertyValue[0]);

```

This is the Error :

```
CE> /usr/lib/openoffice.org3/program/soffice.bin X11 error: Can't open display: 
CE>    Set DISPLAY environment variable, use -display option
CE>    or check permissions of your X-Server
CE>    (See "man X" resp. "man xhost" for details)

```

Can anyone help to identify possible causes for this problem?