MI MapXstreme Java needs an X server?

2000-09-22 Thread David Corbin

I'm trying to write a small client that just creates a .GIF file.  I'm
using MapJ.  Whenever I call toFile() or toImage(), I get an exception
from the MapXtreme Java servlet saying it can't connect to an X Server. 
Please don't tell me your software requires that X be installed to work
correctly.  That's not a very effiecient server it it does.
-- 
David Corbin
Mach Turtle Technologies, Inc.
http://www.machturtle.com
[EMAIL PROTECTED]
--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]



Re: MI MapXstreme Java needs an X server?

2000-09-22 Thread Justin Akehurst

From: David Corbin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: MI MapXstreme Java needs an X server?
Date: Fri, 22 Sep 2000 14:03:18 -0400

I'm trying to write a small client that just creates a .GIF file.  I'm
using MapJ.  Whenever I call toFile() or toImage(), I get an exception
from the MapXtreme Java servlet saying it can't connect to an X Server.
Please don't tell me your software requires that X be installed to work
correctly.  That's not a very effiecient server it it does.

This is a limitation brought about by Java 1.2 and how it renders images.  
The way that people get around this is by obtaining Xvfb from the X 
consortium (http://www.x.org/) and set the DISPLAY variable to point to 
that.

To invoke Xvfb, use this command (as root) :

Xvfb :1 -screen 0 1152x900x8 

then do this command as the user you start your server under
(assuming you are using a Bourne-type shell):

export DISPLAY=":1.0"

Starting MapXtreme's server or Tomcat (which will start the server for you) 
shouldn't have a problem now.

Note: If you are running a flavor of Linux, Xvfb is available as an rpm or 
deb package, if you don't want to compile it from source.  It is usually 
included in a standard installation of X11R6.4

-Justin Akehurst
TerraGraphics, LLC
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.

--
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]