Fop 0.94 on a headless server

2007-09-11 Thread Daniel Muller

Hello,

I just installed the binary version of Fop-0.94 on a server running 
under Fedora Core 5.

I have Java version 1.4.2, and trying to have have fop running.
Generating fo output works fine.
Trying to generate pdf output results in Gtk-WARNING **: cannot open 
display:
Looks like some library uses Gimp toolkit, which needs Xlib. I do not 
have Xlib installed.

I tried setting  -Djava.awt.headless=true but without any effect.
I looked at several places and found this problem mentioned but not 
really solved.


So my questions are :
* just to know : which is the library using Gtk ?
* do I need to install Xlib or is there another solution ?
* do I need an X server running ?

Or in short : has anybody *solved* this problem, and how ?

Thank you for your help.
Daniel

--

 Daniel Muller: ICTT / EEA
Responsable Mastère MDSI  Option 3A IC/SI
Ecole Centrale de Lyon
36, av. Guy de Collongue 
69134 ECULLY Cedex


 e-mail: [EMAIL PROTECTED] fax: +33 (0)4 78 43 37 17


begin:vcard
fn:Daniel Muller
n:Muller;Daniel
org;quoted-printable:Ecole Centrale de Lyon;D=C3=A9partement EEA
adr:;;36, avenue Guy de Collongue;ECULLY;;69134;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Responsable Mast=C3=A8re MDSI  Option 3A IC/SI
tel;work:+33 4 72 18 60 89
tel;fax:+33 4 78 43 37 17
x-mozilla-html:TRUE
version:2.1
end:vcard


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

Re: Fop 0.94 on a headless server

2007-09-11 Thread Roberto Nunnari

Hi Daniel.


Daniel Muller wrote:

Hello,

I just installed the binary version of Fop-0.94 on a server running 
under Fedora Core 5.

I have Java version 1.4.2, and trying to have have fop running.
Generating fo output works fine.
Trying to generate pdf output results in Gtk-WARNING **: cannot open 
display:
Looks like some library uses Gimp toolkit, which needs Xlib. I do not 
have Xlib installed.

I tried setting  -Djava.awt.headless=true but without any effect.
I looked at several places and found this problem mentioned but not 
really solved.


So my questions are :
* just to know : which is the library using Gtk ?
* do I need to install Xlib or is there another solution ?


Yes. You need to install Xlib



* do I need an X server running ?


No. just use -Djava.awt.headless=true




Or in short : has anybody *solved* this problem, and how ?


Yes. It is very common to run a server in headless mode (i.e. w/o X)




Thank you for your help.
Daniel

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



--
Robi


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



Re: Fop 0.94 on a headless server

2007-09-11 Thread Daniel Muller

Hi Robi,

Thanks for the help.
I now installed Xlib, I am using -Djava.awt.headless=true, and still 
have this frustrating message :

Gtk-WARNING **: cannot open display:

Does somebody know anything else I should configure to get it run ?
What could I do to find out what is missing ?

Daniel

Roberto Nunnari wrote:

Hi Daniel.


Daniel Muller wrote:

Hello,

I just installed the binary version of Fop-0.94 on a server running 
under Fedora Core 5.

I have Java version 1.4.2, and trying to have have fop running.
Generating fo output works fine.
Trying to generate pdf output results in Gtk-WARNING **: cannot open 
display:
Looks like some library uses Gimp toolkit, which needs Xlib. I do not 
have Xlib installed.

I tried setting  -Djava.awt.headless=true but without any effect.
I looked at several places and found this problem mentioned but not 
really solved.


So my questions are :
* just to know : which is the library using Gtk ?
* do I need to install Xlib or is there another solution ?


Yes. You need to install Xlib



* do I need an X server running ?


No. just use -Djava.awt.headless=true




Or in short : has anybody *solved* this problem, and how ?


Yes. It is very common to run a server in headless mode (i.e. w/o X)




Thank you for your help.
Daniel

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





--

 Daniel Muller: ICTT / EEA
Responsable Mastère MDSI  Option 3A IC/SI
Ecole Centrale de Lyon
36, av. Guy de Collongue 
69134 ECULLY Cedex


 e-mail: [EMAIL PROTECTED] fax: +33 (0)4 78 43 37 17


begin:vcard
fn:Daniel Muller
n:Muller;Daniel
org;quoted-printable:Ecole Centrale de Lyon;D=C3=A9partement EEA
adr:;;36, avenue Guy de Collongue;ECULLY;;69134;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Responsable Mast=C3=A8re MDSI  Option 3A IC/SI
tel;work:+33 4 72 18 60 89
tel;fax:+33 4 78 43 37 17
x-mozilla-html:TRUE
version:2.1
end:vcard


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

Re: Fop 0.94 on a headless server

2007-09-11 Thread Roberto Nunnari

Hi Daniel,

that should be enough.. you're probably still missing some library or
you're not correctly passing the define to the jvm when you
launch your servlet container (tomcat?). Check your logs!

The final command that actually executes the jvm should be
something like:
# java -Djava.awt.headless=true -cpyourClasspath MainClass [opts]

see the position of the define.. order is important!

Hope that helps.


Check your logs and make sure
Daniel Muller wrote:

Hi Robi,

Thanks for the help.
I now installed Xlib, I am using -Djava.awt.headless=true, and still 
have this frustrating message :

Gtk-WARNING **: cannot open display:

Does somebody know anything else I should configure to get it run ?
What could I do to find out what is missing ?

Daniel

Roberto Nunnari wrote:

Hi Daniel.


Daniel Muller wrote:

Hello,

I just installed the binary version of Fop-0.94 on a server running 
under Fedora Core 5.

I have Java version 1.4.2, and trying to have have fop running.
Generating fo output works fine.
Trying to generate pdf output results in Gtk-WARNING **: cannot open 
display:
Looks like some library uses Gimp toolkit, which needs Xlib. I do not 
have Xlib installed.

I tried setting  -Djava.awt.headless=true but without any effect.
I looked at several places and found this problem mentioned but not 
really solved.


So my questions are :
* just to know : which is the library using Gtk ?
* do I need to install Xlib or is there another solution ?


Yes. You need to install Xlib



* do I need an X server running ?


No. just use -Djava.awt.headless=true




Or in short : has anybody *solved* this problem, and how ?


Yes. It is very common to run a server in headless mode (i.e. w/o X)




Thank you for your help.
Daniel

-
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]



--
Robi


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



Getting Ariel font recognized

2007-09-11 Thread buddy
This is probably a bit of a basic question to users on this
list, so I apologize in advance.  I know XML and XSLT very
well,

but an not a FOP expert (yet :-) ).  

 

I upgraded to latest version of FOP, but the Ariel font is
not being recognized.  Can someone help me with what I need
to 

do to get Ariel to happen?  I read some of the documentation
on Fonts registering, but still a bit unclear.

 

Thanks in advance.

 

 

 



Re: Getting Ariel font recognized

2007-09-11 Thread Adrian Cumiskey
My initial/first thought is that the font is called 'Arial' and *not* 
'Ariel'? :-S


My advice is to please carefully read and check your configuration 
against http://xmlgraphics.apache.org/fop/trunk/fonts.html.  If you are 
still having problems its probably best if you post up your fop.xconf.


Adrian.

buddy wrote:
This is probably a bit of a basic question to users on this list, so I 
apologize in advance.  I know XML and XSLT very well,


but an not a FOP expert (yet J ).  

 

I upgraded to latest version of FOP, but the Ariel font is not being 
recognized.  Can someone help me with what I need to


do to get Ariel to happen?  I read some of the documentation on Fonts 
registering, but still a bit unclear.


 


Thanks in advance.

 

 

 




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



Re: using newFOP only once

2007-09-11 Thread Nicolas Baumann
Nicolas Baumann nicos109 at free.fr writes:

 
 Hello
 
 I'm experimenting some performance issue due to the newFOP method which takes 
 the ouputstream as argument :
 fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out)
 This is called every time a pdf is generated, and takes an especially long 
time 
 the first time it is called. So what I want to do is to call it once when the 
 server loads, by doing this without the outputstream :
 fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent)
 and then do the transformation with Transformer.transform().
 But before doing each transormation, I need to set the outputstream, but the 
 Fop.setOutputStream() method is deprecated, so what should I do ?
 
 Thanks,
 Nicolas.
 


I've just seen that I can't do this anyway, the outputstream must be set 
directly by the newFop method or it throws :
org.apache.fop.apps.FOPException: OutputStream has not been set




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



reference-orientation and rtf output

2007-09-11 Thread Richard Sweeney

Hi,

I was wondering if reference-orientation is supported in Rich Text output. I 
can get it work fine when producing a PDF, but the same xsl:fo doesn't work 
for RTF output and the console doesn't flag any errors.


Here's a fragment of the xsl:fo

fo:table-cell display-align=center border=0.5pt solid black
   fo:block-container reference-orientation=0
fo:block text-align=center

If it isn't supported, I was wondering if there might be a work around that 
anyone could suggest.


I'm using 0.93 but I can also just compile my own version from svn if need 
be.


Thanks

Richard

_
The next generation of Hotmail is here!  http://www.newhotmail.co.uk


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



RE: Getting Arial font recognized - disregard

2007-09-11 Thread buddy
I got it!  No need to respond.

 

 

  _  

From: buddy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 11, 2007 9:29 AM
To: 'fop-users@xmlgraphics.apache.org'
Subject: Getting Ariel font recognized

 

This is probably a bit of a basic question to users on this
list, so I apologize in advance.  I know XML and XSLT very
well,

but an not a FOP expert (yet :-) ).  

 

I upgraded to latest version of FOP, but the Ariel font is
not being recognized.  Can someone help me with what I need
to 

do to get Ariel to happen?  I read some of the documentation
on Fonts registering, but still a bit unclear.

 

Thanks in advance.