On May 2, 2005, at 9:58 AM, Warren Young wrote:
Glen Mazza wrote:

a class), the bottom of [3] indicates that the problem may be with your X Windowing system, but if not, a search on "NoClassDefFoundError" and "AWT" returns 6000+ hits [4] (add "FOP" to the search to get down to 140.)

One of the biggest differences between these two FC3 boxes is that the one not having problems is a desktop system, and the other is a server system used primarily through ssh. The trivial answer, to run fop while an X server is available (i.e. DISPLAY is set and legit), isn't enough, however.


Perhaps this thread will help whoever is able to attack this problem:

http://forum.java.sun.com/thread.jspa? forumID=20&hilite=false&start=15&threadID=132877&range=15&q=

Basically, it seems that Java sometimes expects a window system to be present, and there are ways to dispel that notion. I don't see that there's any need for FOP to have access to a window system.

When I was attempting to tackle this problem I found a few hacks which made it possible to skirt the window server issue (essentially by faking the AIX 4.1 system running IBM JRE 1.3 into thinking it had a window server present through the use of a different video driver). However, it never really worked. The primary problem I found was that Batik required a window server[1]. I had better success using PJA[2], although it required some extra hacking in Java.


In the end, I simplified things by making certain I had no SVG in my FO (for glyphs I just used Symbol fonts). In addition, rather than output to PDF, which made running on a headless server rather challenging, my output went to PostScript and then�I'd cat the .ps file to a postscript printer. It was a workaround hack but it worked.

Regards,

Web Maestro Clay

[1]
http://xml.apache.org/fop/graphics.html#batik
[2]
http://www.eteks.com/pja/en
--
<[EMAIL PROTECTED]> - <http://homepage.mac.com/webmaestro/>
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to