Re: Create images in headless environment
Sunday, January 7, 2007 12:28 PM
We worked on it for a long time, a year ago or so, and found that it depends on the application server. (oh but first yes you do need the X libraries, of course, on unix/linux/mac etc., or else the Microsoft Windows libraries on MS Windows; it's got to use some native graphics library, and those are your 2 choices)
You need that headless stuff (which wasn't there in 1.3 JVM's), and you also need some additional libraries, "pja.jar" I think (?) to be on the initial "boot classpath" of the jvm, not just on the regular CLASSPATH.
We got it working most easily in Tomcat; in Websphere we got it working via some configuration changes (maybe in the admin console? I forget). But for WebLogic we had to change some startup parameters, on the jvm, in the startup scripts (and this differs depending on whether you have a cluster with a node manager, or not). and just imagine the fun, working with a remote set of sysadmins, to change the startup scripts for their clustered servers, just for your one application...... and if you do it wrong, you crash the whole cluster....