0

The buildear command is as follows :

    buildear -s -x /Archive/My_App.archive -o /app/Script_Sql/Jen_Workspace/My_App.ear -p /app/Script_Sql/Jen_Workspace/My_App

The EAR is getting created but i am getting below error :

    Caused by: java.awt.HeadlessException:
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    at sun.awt.HeadlessToolkit.getScreenSize(HeadlessToolkit.java:261)
    at com.extensibility.rock.l.doGetWorkArea(Platform.java:197)
    at com.extensibility.rock.l.a(Platform.java:193)
    at com.extensibility.rock.u.<clinit>(Screen.java:52)

I did read about Java's "headless" installation capabilty wherein it allows installation without GUI/AWT libraries (please correct me if I am wrong). I tried setting the value of DISPLAY (export DISPLAY=localhost:0.0) but didn't work. Please suggest any solution for this. FYI - I don't have root or sudo privileges on the UNIX server.

rohit k.
  • 128
  • 1
  • 14

1 Answers1

0

The buildear utility requires an X server to be executed.

To work around this, try adding java.property.java.awt.headless=true in the bwengine.tra. If it doesn't do the trick, you might want to ask your sys admin to install and configure Xvfb, a virtual X server.

Nicolas Heitz
  • 664
  • 5
  • 10
  • Thanks for the answer, Nicholas. But it didnt work. If you are from TIBCO background, will this error affect my EAR ? or will it affect my processes in any way ? – rohit k. Jul 04 '14 at 11:51
  • Unfortunately I am not really surprised. Now you are left with the Xvfb option. This is what most people do to overcome this error (unless you can have an actual X server set up on the UNIX server, of course). – Nicolas Heitz Jul 04 '14 at 11:57
  • To answer your question, this error only occurs when trying to build an EAR using the `buildear` executable (or when using `buildlibrary` to build a DTL) in a headless environment. It is not a runtime error and won't affect your processes at all. – Nicolas Heitz Jul 05 '14 at 09:36