Return-Path: Delivered-To: apmail-xmlgraphics-fop-users-archive@www.apache.org Received: (qmail 55451 invoked from network); 5 Nov 2008 16:04:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Nov 2008 16:04:58 -0000 Received: (qmail 91290 invoked by uid 500); 5 Nov 2008 16:05:03 -0000 Delivered-To: apmail-xmlgraphics-fop-users-archive@xmlgraphics.apache.org Received: (qmail 91273 invoked by uid 500); 5 Nov 2008 16:05:03 -0000 Mailing-List: contact fop-users-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: fop-users@xmlgraphics.apache.org Delivered-To: mailing list fop-users@xmlgraphics.apache.org Received: (qmail 91262 invoked by uid 99); 5 Nov 2008 16:05:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2008 08:05:03 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2008 16:03:45 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Kxkrq-0001m4-7r for fop-users@xmlgraphics.apache.org; Wed, 05 Nov 2008 08:04:26 -0800 Message-ID: <20343295.post@talk.nabble.com> Date: Wed, 5 Nov 2008 08:04:26 -0800 (PST) From: Ronald McDonald To: fop-users@xmlgraphics.apache.org Subject: Error while processing xml and xslt files to pdf MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: dbraband@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hello, I'd like to produce a pdf file with fop from an xml with a xslt file using the following command: fop -c fopconf.xconf -xml my.xml -xsl my.xsl -pdf my.pdf Mac OS X with fop installed via ports does everything right, I get the expected result as a pdf. But using the same command on a remote debian system, i get the following error: "(.:XXXXX): Gtk-WARNING **: cannot open display:" Where "XXXXX" semms to be a random number that changes on every call. I looked at the fop-script and enabled the debug mode. This display the following command under Mac OS X: /System/Library/Frameworks/JavaVM.framework/Home/bin/java" -classpath "/opt/local/share/java/fop/0.94/lib/xmlgraphics-commons-1.2.jar :/opt/local/share/java/fop/0.94/lib/xml-apis-1.3.02.jar :/opt/local/share/java/fop/0.94/lib/xercesImpl-2.7.1.jar :/opt/local/share/java/fop/0.94/lib/xalan-2.7.0.jar :/opt/local/share/java/fop/0.94/lib/serializer-2.7.0.jar :/opt/local/share/java/fop/0.94/lib/commons-logging-1.0.4.jar :/opt/local/share/java/fop/0.94/lib/commons-io-1.3.1.jar :/opt/local/share/java/fop/0.94/lib/batik-all-1.6.jar :/opt/local/share/java/fop/0.94/lib/avalon-framework-4.2.0.jar :/opt/local/share/java/fop/0.94/build/fop.jar" -Djava.awt.headless=true org.apache.fop.cli.Main "-c" "fopconf.xconf" "-xml" "my.xml" "-xsl" "my.xsl" "-pdf" "my.pdf" For working on command line, I have to add the "-Djava.awt.headless=true" in the fop script as seen above. Enabling the debug mode on debian I get the following command: /usr/bin/java -classpath "/usr/share/java/xmlgraphics-commons.jar :/usr/share/java/xercesImpl.jar :/usr/share/java/servlet-api.jar :/usr/share/java/commons-logging.jar :/usr/share/java/batik-all.jar :/usr/share/java/xml-apis.jar :/usr/share/java/xalan2.jar :/usr/share/java/serializer.jar :/usr/share/java/avalon-framework.jar :/usr/share/java/commons-io.jar :/usr/share/java/fop.jar:" -Djava.awt.headless=true org.apache.fop.cli.Main "-c" "my.xconf" "-xml" "my.xml" "-xsl" "my.xsl" "-pdf" "my.pdf" The "-Djava.awt.headless=true" was already in the fop script on debian lenny. When i comment the following line in my xslt file everything works fine, without the Gtk-Warning: I have tried different image types (gif, bmp, jpg and png) and vector grapics (svg). I also tried embedding the vector graphic with which works fine on the mac, but not on the debian system. I always get the Gtk-Warning on the debian system and the pdf file cannot be opened with a pdf reader. -- View this message in context: http://www.nabble.com/Error-while-processing-xml-and-xslt-files-to-pdf-tp20343295p20343295.html Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org