Re: Using krysalis with Tomcat to output PDF barcodes

Jeremias Maerki <[email protected]> Tue, 31 Aug 2004 16:24:31 +0200
Newsgroups gmane.comp.krysalis.user
Message-ID <[email protected]>
I don't have a direct answer to your question because I have only
limited Unix know-how, but I can give you a link with three possible
work-arounds to make the graphical environment work under Unix. Maybe
that helps.

http://xml.apache.org/fop/graphics.html#batik

Easiest of the three (if you can use JDK 1.4) is the java.awt.headless
property.

On 31.08.2004 16:14:21 Alexandre Anfray wrote:
> I tested with the same versions as you (jdk-1.3.1_10 and Tomcat 4.1.29) but
> without success. It's not so bad because i have an idea of what (I'm pretty
> sure) avoids the barcode to appear on the PDF. I don't have a real server X
> installed on my machine, that must causes the issue. In fact, the command
> ./fop.sh -fo input_file.fo -pdf output_file.pdf works only if I've started a
> VNCSERVER and exported the variable DISPLAY=0:1
> 
> So I imagine the servlet doesn't work properly because it can't use the
> serverX to output the barcode... and I don't know how to tell him to use for
> example vncserver. Do you know how to fix that?


Jeremias Maerki



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click