Servlet using Xvfb needs DISPLAY set
Hello
I have a servlet that uses an old version of 3rd party charting package to create PNG images. I am currently migrating this servlet from Tomcat to SJSAS and suffering with the error:
===================
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
===================
To work under Solaris in the past, it always needed the virtual frame buffer Xvfb to be running. As an alternative to Xvfb I looked at using Java's new headless functionality:
System.setProperty("java.awt.headless","true")
I did not have much luck with this, "access denied". Given that I'm using a 3rd party class for doing the chart it was probably a bad idea anyway.
Thus after going back to running Xvfb I am unable to set the DISPLAY variable programatically:
System.setProperty("DISPLAY","localhost:0.0")
For the same reason "access denied"
It seems to me I need to set the environment variable DISPLAY somewhere within SJSAS. I have SJSAS 8.2 on my PC and we have version 8.1 on the target server. The setting of system properties seems to have changed quite dramatically between these two versions.
Any ideas ?

