ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Spectrum OneClick WebApp not launching due to the following error: "java.awt.AWTError: Can't connect to X11 window server"


Article ID: 238851


Updated On:


CA Spectrum DX NetOps


Spectrum OneClick WebApp does not launch due to the following error: "java.awt.AWTError: Can't connect to X11 window server" in the <SPECROOT>/webtomcat/bin/logs/webswing.log file.


Release : All Supported Releases

Component : SPCOCK - Spectrum OneClick


This error is thrown when a required library file is missing in order to run the xvfb process.

Users can run the below command as root to try and manually start this process which will point to the missing file:

$ Xvfb :99 -screen 0 640x480x8 -nolisten tcp

This will generate an error similar to the below:


/usr/bin/xkbcomp: error while loading shared libraries: cannot open shared object file: No such file or directory
XKB: Failed to compile keymap
Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.
Fatal server error:
(EE) Failed to activate virtual core keyboard: 2(EE)


In the above error, the libxkbfile library will need to be installed.

Additional Information

A full list of required libraries and dependencies can be found in our documentation linked below: