Hi Mauricio, I had the same problem. The solution is as follows:
1. Download and install a virtual frame buffer Where to find and how to install: http://testdrive.mapinfo.com/TECHSUPP/MIPROD.NSF/0/a832a07452b9a0e385256f8000760f68?OpenDocument 2. Do not forget to create a script to start xvfb - you will find the script under the link above 3. Edit the startup.sh or catalina.sh as follows: #export DISPLAY export DISPLAY=<IP_of_your_machine_where_Tomcat_is_running>:0.0 export CATALINA_OPTS="-Djava.awt.headless=false" 4. Start xvfb 5. Restart Tomcat ************************************ Mit freundlichem Gruß / kind regards Aliye Edao -----Ursprüngliche Nachricht----- Von: Mauricio Fernandez A. [mailto:[EMAIL PROTECTED] Gesendet: Montag, 10. Oktober 2005 15:06 An: Tomcat Users List Betreff: RE: Problems with graphics on Tomcat 5.5.9 You can see that here, after click on "Graficar": The web test app can be found here http://www.actesoft.com:8080/Prueba/jsp/ and the wanted result after click on "Graficar" is something like this http://www.actesoft.com/ejGrafico/ (static page) Mauricio Fernandez -----Mensaje original----- De: Viorel Dragomir [mailto:[EMAIL PROTECTED] Enviado el: lunes, 10 octubre, 2005 15:53 Para: Tomcat Users List Asunto: Re: Problems with graphics on Tomcat 5.5.9 What exception ? [ If it's not confidential. :) ] Viorel Dragomir . .. ------------------------------------------------------------------- ----- Original Message ----- From: Mauricio Fernandez A. To: Tomcat Users List Sent: Monday, October 10, 2005 14:42 Subject: RE: Problems with graphics on Tomcat 5.5.9 Trying again to make the graphics appear in my web app, I did a test web app and I had been trying to start the Tomcat with -Djava.awt.headless=true option as I read in some forums #export CATALINA_OPTS="-Djava.awt.headless=true" #/usr/java/jakarta-tomcat/bin/startup.sh But they do not appear either The web test app can be found here http://www.actesoft.com:8080/Prueba/jsp/ and the wanted result after click on "Graficar" is something like this http://www.actesoft.com/ejGrafico/ (static page) Also I have try to insert in the Graficador.class constructor the next System.set/getProperties lines public Graficador(String Path){ super(); this.contexto = Path; this.background = null; //System.setProperty returns the current value before assignment String vrPropiedad = System.setProperty("java.awt.headless", "true"); // Log the before assignment value to a log file to debug logger.debug("BEFORE = java.awt.headless = " + vrPropiedad); //and log the after assignmet value to a log file too vrPropiedad = System.getProperty("java.awt.headless"); logger.debug("NOW = java.awt.headless = " + vrPropiedad); } And these are the log file lines the app write 2005-10-10 11:18:15,996 [-t] INFO [index.jsp] - Loading form 2005-10-10 11:18:15,999 [-t] INFO [index.jsp] - Form OK ! 2005-10-10 11:18:24,710 [-t] DEBUG [grafica.jsp] - loading page: grafica.jsp 2005-10-10 11:18:24,716 [-t] DEBUG [grafica.jsp] - Creating object: Graficador 2005-10-10 11:18:24,746 [-t] DEBUG [Graficador] - BEFORE = java.awt.headless = true <-- It is True! 2005-10-10 11:18:24,746 [-t] DEBUG [Graficador] - NOW = java.awt.headless = true <-- It is True! 2005-10-10 11:18:24,747 [-t] DEBUG [grafica.jsp] - Creating Category 1 ... OK 2005-10-10 11:18:24,747 [-t] DEBUG [grafica.jsp] - Creating Category 2 ... OK 2005-10-10 11:18:24,748 [-t] DEBUG [grafica.jsp] - Creating Category 3 ... OK 2005-10-10 11:18:24,748 [-t] DEBUG [grafica.jsp] - Giving the control to a Graficador Object, it must make the chart 2005-10-10 11:18:24,769 [-t] DEBUG [Graficador] - Starting chart creation ... 2005-10-10 11:18:24,788 [-t] DEBUG [Graficador] - Data process .... OK 2005-10-10 11:18:25,548 [-t] DEBUG [Graficador] - Creating Chart .... OK 2005-10-10 11:18:25,549 [-t] DEBUG [Graficador] - Making a PNG image from Chart And here the app trhows an exception Any idea is always welcome, thanks. Mauricio Fernandez --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]