Richard Yee wrote:
>
> You are getting it because your servlet needs to access the X Window server
> to process the image.  You can resolve the problem by doing the following:
>
> One way is to set your DISPLAY variable in the window that you start
> Tomcat.  You should set it as follows: DISPLAY = 127.0.0.1:0.0  and then
> export the variable.
>

 Just a quick note: using a local X display is fine
solution if you're just experimenting and need to get
up and running, but it's not appropriate for
production use.

 It's very easy for a console user (like an admin) to
stop the X server without realizing there's a
production web server depending on it. People just
don't generally think to themselves "I'd better not
stop this totally unrelated GUI server because the
server might crash" Having a GUI running is just one
more thing to go wrong. Xvfb is still one more thing
to go wrong, but it's not something people are as
likely to accidently kill.

 If you need to run something in production, Richard's
other suggestions (xvfb or searching the archives for
references to Java libraries that don't require X)
are much better.

 Jeers to Sun, they should have known better, but it
looks like it's fixed in 1.4.


--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to