You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Weissenbacher <MW...@net4you.net> on 2001/05/04 11:17:17 UTC

tomcat + linux + graphics

i'm having big problems with graphics dynamically created with tomcat on
linux. on windows, the servlet works fine, on linux i have to start tomcat
going to the server, starting X and then starting tomcat. i want to do this
automatically and i want to connect tomcat to X windows without going to the
server. did anybody solve this problem? it would help to get a working
startup script for tomcat including the connection to a running X.

thanks,
michael


RE: tomcat + linux + graphics

Posted by Wouter Boers <Wo...@MphasiS.com>.
I also ran into that problem. There is a freeware/opensource program
available that emulates the X-server, called Xvbf. It works for me. So you
don't need a full blown X-server and save the CPU and memory overhead it
consumes.

Wouter

-----Original Message-----
From: chris brown [mailto:dev@reflexe.fr]
Sent: 04 May 2001 13:58
To: tomcat-user@jakarta.apache.org; benoit.jacquemont@smile.fr
Subject: Re: tomcat + linux + graphics


According to the current specs for JDK1.4, this issue should become a thing
of the past (see "'Headless' Java" proposal).  But then, JDK1.4 isn't
available yet... so you'll need to wait a bit for that solution...

-Chris

----- Original Message -----
From: "Benoit Jacquemont" <be...@smile.fr>
To: <to...@jakarta.apache.org>
Sent: Friday, May 04, 2001 11:26 AM
Subject: Re: tomcat + linux + graphics


> Hi,
>
> I had the same problem some time ago. I need to generate graphics with AWT
> and due to problem with JVM, I needed to install a X server.
> The first solution that came to my mind was to start an xterm after
launching
> the X server in the rc.local with a -e option to launch a script running
> tomcat.
>
> So I had a X server that consume memory and CPU on a Web server that do
not
> need any graphics interface...
>
> Then I found a library that replace some AWT classes and allow you to
> generate graphics without any X server running !!
> The package is a GNU one, it's called PJA and you can download it from the
> following website:
> http://www.eteks.com
>
> So, I installed this package (no need to recompile, just some add to the
java
> command line of tomcat), removed the X server from my web server, and save
> disk space, save CPU ressource and freed a lot of memory !!
>
>
> So, my advice is you should try it, and forget about Java limitation of
the
> JVM !
>
> Benoît
>
>
> > i'm having big problems with graphics dynamically created with tomcat on
> > linux. on windows, the servlet works fine, on linux i have to start
tomcat
> > going to the server, starting X and then starting tomcat. i want to do
this
> > automatically and i want to connect tomcat to X windows without going to
> > the server. did anybody solve this problem? it would help to get a
working
> > startup script for tomcat including the connection to a running X.
> >
> > thanks,
> > michael


Re: tomcat + linux + graphics

Posted by chris brown <de...@reflexe.fr>.
According to the current specs for JDK1.4, this issue should become a thing
of the past (see "'Headless' Java" proposal).  But then, JDK1.4 isn't
available yet... so you'll need to wait a bit for that solution...

-Chris

----- Original Message -----
From: "Benoit Jacquemont" <be...@smile.fr>
To: <to...@jakarta.apache.org>
Sent: Friday, May 04, 2001 11:26 AM
Subject: Re: tomcat + linux + graphics


> Hi,
>
> I had the same problem some time ago. I need to generate graphics with AWT
> and due to problem with JVM, I needed to install a X server.
> The first solution that came to my mind was to start an xterm after
launching
> the X server in the rc.local with a -e option to launch a script running
> tomcat.
>
> So I had a X server that consume memory and CPU on a Web server that do
not
> need any graphics interface...
>
> Then I found a library that replace some AWT classes and allow you to
> generate graphics without any X server running !!
> The package is a GNU one, it's called PJA and you can download it from the
> following website:
> http://www.eteks.com
>
> So, I installed this package (no need to recompile, just some add to the
java
> command line of tomcat), removed the X server from my web server, and save
> disk space, save CPU ressource and freed a lot of memory !!
>
>
> So, my advice is you should try it, and forget about Java limitation of
the
> JVM !
>
> Benoît
>
>
> > i'm having big problems with graphics dynamically created with tomcat on
> > linux. on windows, the servlet works fine, on linux i have to start
tomcat
> > going to the server, starting X and then starting tomcat. i want to do
this
> > automatically and i want to connect tomcat to X windows without going to
> > the server. did anybody solve this problem? it would help to get a
working
> > startup script for tomcat including the connection to a running X.
> >
> > thanks,
> > michael


Re: tomcat + linux + graphics

Posted by Benoit Jacquemont <be...@smile.fr>.
Hi,

I had the same problem some time ago. I need to generate graphics with AWT 
and due to problem with JVM, I needed to install a X server.
The first solution that came to my mind was to start an xterm after launching 
the X server in the rc.local with a -e option to launch a script running 
tomcat.

So I had a X server that consume memory and CPU on a Web server that do not 
need any graphics interface...

Then I found a library that replace some AWT classes and allow you to 
generate graphics without any X server running !!
The package is a GNU one, it's called PJA and you can download it from the 
following website:
http://www.eteks.com

So, I installed this package (no need to recompile, just some add to the java 
command line of tomcat), removed the X server from my web server, and save 
disk space, save CPU ressource and freed a lot of memory !!


So, my advice is you should try it, and forget about Java limitation of the 
JVM !

Benoît


> i'm having big problems with graphics dynamically created with tomcat on
> linux. on windows, the servlet works fine, on linux i have to start tomcat
> going to the server, starting X and then starting tomcat. i want to do this
> automatically and i want to connect tomcat to X windows without going to
> the server. did anybody solve this problem? it would help to get a working
> startup script for tomcat including the connection to a running X.
>
> thanks,
> michael

Re: tomcat + linux + graphics

Posted by Kevin Sangeelee <ke...@susa.net>.
One solution is to use the Xvfb (virtual X frame buffer) to avoid having
to run a full blown X server on your box. 

On Fri, 4 May 2001, Michael Weissenbacher wrote:

> i'm having big problems with graphics dynamically created with tomcat on
> linux. on windows, the servlet works fine, on linux i have to start tomcat
> going to the server, starting X and then starting tomcat. i want to do this
> automatically and i want to connect tomcat to X windows without going to the
> server. did anybody solve this problem? it would help to get a working
> startup script for tomcat including the connection to a running X.