Raja Sekhar Kommu wrote:
>
> We are trying to generate an image dynamically in a servlet.
> ... we are getting the following exception :
>
> Exception occured java.lang.InternalError: Can't connect
> to X11 window server using ':0.0' as the value of the
> DISPLAY variable.
>
> We did set the DISPLAY variable to XServer. Still we are
> getting this error.
>
Hard to tell what the problem is without more data, but
here are a couple of quick thoughts:
- WebSphere-specific questions tend to get better answers
over on the WebSphere-specific support groups.
- Search the servlet-interest archives using "xvfb" as
the search term to get a list of past discussions about
the whole java-on-unix-server-wants-X11 thing. Esp.
the parts where it's suggested that using a normal X
display in production isn't such a good idea.
- What did you set the DISPLAY to? Websphere obviously
thinks it's ":0.0", but is that what you set it to?
You didn't give a platform, but assuming Unix, did
you set DISPLAY on the command line, then "echo" it
back to see if it really got set, then start websphere
from the same shell? Obvious stuff, but sometimes
it's so obvious you can't see it :-)
- JDK 1.4 has a "headless" option for doing graphics
without connecting to an X server at all (but it has
limitations) You can activate is using:
-Djava.awt.headless=true
on the command line.
--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html