You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Zsolt Koppany <zk...@web.de> on 2002/02/15 10:01:04 UTC
Starting server during boot with access to X-Windows
Hi,
I have the following problem:
we want to start tomcat during boot time. The servlets can produce some
charts thus the server needs access to X-Windows (thus the server needs
permission to do that). I do know how to start the server during boot but how
can it be assured that it will have access to X-Windows?
Zsolt
--
Zsolt Koppany
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
Re: Starting server during boot with access to X-Windows
Posted by Chris Faulkner <ch...@ntlworld.com>.
Hi
Have you tried Xvfb which is a virtual frame buffer ? I have a Tomcat app which also needs access to X for drawing. We simply start an Xvfb instance on a virtual display (:1.0,:2.0, etc) and then use that. We
have an xvfb script in init.d for starting which essentially does this.
/usr/X11R6/bin/Xvfb :1.0 -screen 0 1280x1024x24 -shmem & # Starts a virtual 24 bit device on :1.0
and upon shutdown
kill -TERM `cat /tmp/.X1-lock`
Xvfb comes shipped with most ofthe Linux distros and is also available if you look around for Solaris and HP-UX.
Chris
>Hi,
>
>I have the following problem:
>
>we want to start tomcat during boot time. The servlets can produce some
>charts thus the server needs access to X-Windows (thus the server needs
>permission to do that). I do know how to start the server during boot but how
>can it be assured that it will have access to X-Windows?
>
>
>Zsolt
>
>--
>Zsolt Koppany
>
>--
>To unsubscribe: <ma...@jakarta.apache.org>
>For additional commands: <ma...@jakarta.apache.org>
>Troubles with the list: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>