First, you are probably better off subscribing to the Apache JServ users list
(sign up instructions are available at http://java.apache.org) for
JServ-specific questions like this.

Second, what is the nature of the servlet you were trying to execute (the error
happens at the call to the init() method of one of your startup servlets) when
this error occurs?  Does it refer to any of the AWT graphics routines?  The
reason I ask is that the message implies you are trying to create an AWT window
or something like that.

The reference to the DISPLAY environment variable is the X-Windows way to
discover what video monitor on what server to generate video output on.  The
name ":0.0" is the typical name for the local display on the server that JServ
is running on.

If this is your machine, make sure that JServ is running under the same
username as the user logged in to that machine (and running X-Windows on it).
If it's a different username, try using the "xhost" command to add permissions
for someone else to write to the display.

If you are not actually trying to render any graphical output, you might also
try unsetting the DISPLAY environment variable for the username that Apache
JServ is running as.

Craig McClanahan


"Jolin, Paul W." wrote:

> > Can anyone tell me why am I getting this error at startup?  I am running
> > Apache 1.3.4 and JServ 1.0b2.
> >
> > java.lang.InternalError: Can't connect to X11 window server using ':0.0'
> > as the value of the DISPLAY variable.
> >         at
> > org.apache.jserv.JServServletManager.load_init(JServServletManager.java:47
> > 6)
> >         at
> > org.apache.jserv.JServServletManager.loadServlet(JServServletManager.java:
> > 383)
> >         at
> > org.apache.jserv.JServServletManager.loadStartupServlets(JServServletManag
> > er.java:500)
> >         at
> > org.apache.jserv.JServServletManager.init(JServServletManager.java:282)
> >         at org.apache.jserv.JServ.init(JServ.java:289)
> >         at org.apache.jserv.JServ.main(JServ.java:124)
> >
> >
>
> ___________________________________________________________________________
> 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

___________________________________________________________________________
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

Reply via email to