Problem statement β Getting java.awt.HeadlessException while trying to initialize java.awt.Component from the application as the tomcat environment does not have any head(terminal).
Issue β The linux virtual environment was setup without a virtual display terminal. Tried to install virtual display β Xvfb, but Xvfb has been taken off by the redhat community.
Solution β Installed βxorg-x11-drv-vmware.x86_64β using yum install xorg-x11-drv-vmware.x86_64 and executed startx. Finally set the display to :0.0 using export DISPLAY=:0.0 and then executed xhost +