Re: tomcat + linux + graphics

2001-05-04 Thread Benoit Jacquemont

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

2001-05-04 Thread Kevin Sangeelee

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.




Re: tomcat + linux + graphics

2001-05-04 Thread chris brown

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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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

2001-05-04 Thread Wouter Boers

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:[EMAIL PROTECTED]]
Sent: 04 May 2001 13:58
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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