This issue should be solved with version 1.4 of the JDK from Sun. Check out
this bug in Sun's bug parade for more information:
http://developer.java.sun.com/developer/bugParade/bugs/4281163.html
We're currently using Xvfb for handling image resizing under a headless Unix
box and it works quite well. Launching Xvfb is non-trivial -- here are the
settings we used:
/usr/X11R6/bin/Xvfb :0 -screen 0 640x480x8 -fp "unix/:-1" &
This command launches Xvfb, and sets the X display to run on :0.0 The 'fp'
setting sets the font setting to use unix/:-1, which is the xfs font server.
To launch orion, make sure you set the DISPLAY environment variable. Our
launch script looks like this:
#!/bin/sh
export DISPLAY=:0.0
/usr/java/jdk1.3/bin/java -jar orion.jar > stdout.txt 2> errors.txt &
The first time it starts up, you'll get a bunch of errors (Font specified in
font.properties...) from the JVM, but it seems to work fine after that.
This is one of my biggest peeves in the current version of the JDK, and I'm
looking forward to JDK 1.4 primarily for this reason (that and scroll mouse
support!).
Good luck,
Darren.
--
Darren Gibbons [EMAIL PROTECTED]
OpenRoad Communications ph: 604.681.0516
Internet Application Development fax: 604.681.0916
Vancouver, B.C. http://www.openroad.ca
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> [EMAIL PROTECTED]
> Sent: Thursday, April 05, 2001 6:34 AM
> To: Orion-Interest
> Subject: How to set the X-Window DISPLAY on Orion
>
>
>
> Hi,
>
> We're using Oracle Reports Server on UNIX with Orion. Oracle Reports
> requires an X-Windows session on UNIX platforms. Basic inquiries such as
> font availability and font metrics are resolved through
> X-Windows, not just
> rasterization of graphic images. Reports is a bitmapped product
> and needs a
> window runtime environment. So I've set up a Virtual Frame Buffer using
> Xvfb I did some testing and when I set the DISPLAY=:1.0 and run xclock the
> virtual frame buffer works just fine.
>
> But whenever we attempt to use Reports without an Xterm running we get
> "can't open display". So I believe the issue is actually with the
> Application Server not knowing where to look for the DISPLAY. My
> understanding is that with Apache's JServer you can tell it to
> use the Xvfb
> instead of the the normal X server by making an entry in the
> jserv.properties file. How can I do this with Orion?
>
> Thanks!
>
> Rob Lent
> Lead Database Analyst
> AXA Client Services
>
>
>
>
>