Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 62324 invoked from network); 10 Oct 2005 12:47:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Oct 2005 12:47:52 -0000 Received: (qmail 51167 invoked by uid 500); 10 Oct 2005 12:47:36 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 51149 invoked by uid 500); 10 Oct 2005 12:47:36 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 51138 invoked by uid 99); 10 Oct 2005 12:47:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2005 05:47:36 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_30_40,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [194.146.226.164] (HELO sd106.sivit.org) (194.146.226.164) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2005 05:47:37 -0700 Received: from localhost (localhost [127.0.0.1]) by sd106.sivit.org (Postfix) with ESMTP id 1523253AE2 for ; Mon, 10 Oct 2005 16:02:24 +0300 (EEST) Received: from sd106.sivit.org ([127.0.0.1]) by localhost (sd106.sivit.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29690-06 for ; Mon, 10 Oct 2005 16:02:23 +0300 (EEST) Received: by sd106.sivit.org (Postfix, from userid 1025) id CF3A953AE0; Mon, 10 Oct 2005 16:02:23 +0300 (EEST) Received: from appserver (unknown [82.76.35.208]) by sd106.sivit.org (Postfix) with ESMTP id C840E53AE0 for ; Mon, 10 Oct 2005 16:02:21 +0300 (EEST) Message-ID: <00aa01c5cda1$df23eef0$1600000a@appserver> From: "Viorel Dragomir" To: "Tomcat Users List" References: Subject: Re: Problems with graphics on Tomcat 5.5.9 Date: Mon, 10 Oct 2005 15:52:35 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00A7_01C5CDB2.A23C9800" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.3790.1830 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.3790.1830 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on sd106.sivit.org X-Spam-Level: X-Virus-Scanned: by amavisd-new-20030616-p10 at wylog.com X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-102.2 required=5.0 tests=AWL,BAYES_00,HTML_30_40, HTML_MESSAGE,USER_IN_WHITELIST autolearn=ham version=3.0.3 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_NextPart_000_00A7_01C5CDB2.A23C9800 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable What exception ? [ If it's not confidential. :) ] Viorel Dragomir . .. ------------------------------------------------------------------- ----- Original Message -----=20 From: Mauricio Fernandez A.=20 To: Tomcat Users List=20 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=3Dtrue option as I read in some forums #export CATALINA_OPTS=3D"-Djava.awt.headless=3Dtrue" #/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 =3D Path; this.background =3D null; //System.setProperty returns the current value before assignment String vrPropiedad =3D System.setProperty("java.awt.headless", "true"); // Log the before assignment value to a log file to debug logger.debug("BEFORE =3D java.awt.headless =3D " + vrPropiedad); //and log the after assignmet value to a log file too vrPropiedad =3D System.getProperty("java.awt.headless"); logger.debug("NOW =3D java.awt.headless =3D " + 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 =3D = java.awt.headless =3D true <-- It is True! 2005-10-10 11:18:24,746 [-t] DEBUG [Graficador] - NOW =3D = java.awt.headless =3D 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: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org ------=_NextPart_000_00A7_01C5CDB2.A23C9800--