Whenever you start your app server (if you're using Tomcat or jBoss or what have you) - you need to have DISPLAY=:1 in your environment:

(bash)
export DISPLAY=:1

(tcsh)
setenv DISPLAY :1

Then just start Tomcat/jBoss/your application - and you should be set.

Brice

Bernardo Buffa Colomÿffffe9 wrote:
I'm not really sure. I believe is enough setting de
DISPLAY environment variable properly.



 --- [EMAIL PROTECTED] escribió: > Yes, I
am running
  
/usr/X11R6/bin/Xvfb :1 -screen 0 800x600x8 &
How do I tell my java env to connect to it?
Thanks,
-Paul


Quoting Bernardo Buffa Colomÿffffe9
<[EMAIL PROTECTED]>:

    
Did U try xvfb (X virtual frame buffer)?
You must configure your environment to tell Java
connect in this X server.

Regards
Bernardo Antonio Buffa Colomé

 --- [EMAIL PROTECTED] escribió: > 
      
I am running embedded fop under Linux, java
        
1.4.1
    
with -Djava.awt.headless=true,
using batik 1.5.1. Every once in a while I get
headless exception, which causes
my app to terminate. I have found a message on
        
that:
    
http://groups.yahoo.com/group/svg-developers/message/31677
  
which seems to match my problem. I wonder if
        
anybody
    
found some solution?
Why would batik try to create Label? Is there
        
any
    
workaround or configuration
parameter that I am missing?

Thanks,
-Paul

java.lang.ExceptionInInitializerError
        at

        
org.apache.batik.ext.awt.image.spi.ImageTagRegistry.getRegistry(ImageTagRegistry.java:273)
  
        at

        
org.apache.batik.bridge.SVGImageElementBridge.createRasterImageNode(SVGImageElementBridge.ja
  
va:280)
        at

        
org.apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(SVGImageElementBridge.java:
  
138)
        at

        
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:182)
  
        at

        
org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:148)
  
        at

        
org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:76)
  
        at

        
org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(PDFRenderer.java:590)
  
(...)
Caused by: java.awt.HeadlessException
        at

        
java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121)
  
        at java.awt.Label.<init>(Label.java:133)
        at java.awt.Label.<init>(Label.java:100)
        at

        
org.apache.batik.ext.awt.image.spi.JDKRegistryEntry.<clinit>(JDKRegistryEntry.java:102)
  

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

      
______________________________________________________________________
  
Correo Yahoo! - 6MB, más protección contra el spam
      
¡Gratis!
    
http://correo.yahoo.es


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


	
	
		
__________________________________________
Correo Yahoo! - 6MB de espacio ¡Gratis!
http://correo.yahoo.es

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

  

Reply via email to