Try Xvfb, standard in X11R6. And set your display to :1

- Paul Philion

Mario wrote:
>
> > Create a file /etc/X0.host (or X0.hosts, check the man page) with the name
> > 'localhost' and restart the Xserver.
>
> It still doesn't work, againt the error
>  500 Internal Server Error
>  Send:
>  java.lang.InternalError: Can't connect to X11 window server using ':0.0'
>  as the   value of the DISPLAY variable.
> appears.
>
> Did anybody experience similar problems with the java-method getToolkit()
> and the X-Server on irix or other unix-systems? I didn't want to go to deep
> into things like the configuration of the X-Server. Write once, run
> everywhere?!
>
> Thanks,
> Mario
>
> My environment is jrun2.2.1, irix, NS Enterprise Server 3.5
>
> > -----Original Message-----
> > From:   A mailing list for discussion about Sun Microsystem's Java
> > Servlet API Technology. [mailto:[EMAIL PROTECTED]] On Behalf
> Of
> > Mario
> > Sent:   Friday, February 26, 1999 5:41 AM
> > To:     [EMAIL PROTECTED]
> > Subject:        Toolkit, X-Server, image-processing
>
> > Hallo,
>
> > a servlet reads an image sent by the client and uses a helper class I
> wrote
> > to do some postproduction (scaling, ...).
> > I use the Toolkit.getDefaultToolkit()-method to get a toolkit.
> > Everything works fine when testing it on a local machine.
> > But on the server the error
> >    500 Internal Server Error
> >    Send:
> >    java.lang.InternalError: Can't connect to X11 window server using
> ':0.0'
> > as the   value of the DISPLAY variable.
> > is produced. I know the DISPLAY-variable in the environment has to point
> to
> > the x-Server. I also tried to set it to the ip-number followed by :0.0,
> but
> > the same error appeared.
> > Any ideas? Can I avoid using the Toolkit and getDefaultToolkit? There is a
> > stub-Toolkit on the ACME-Site, but it only works on SUN.
>
> > Thanks,
> > Mario
>
> > My environment is jrun2.2.1, irix, NS Enterprise Server 3.5
>
> ___________________________________________________________________________
> 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