Re: AW: need X running tomcat

2002-06-11 Thread Zsolt Koppany

Hi,

what is a headless option? Could you provide an example?

Zsolt

On Thursday 06 June 2002 10:51, Ralph Einfeldt wrote:
 Alternativly use JDK 1.4 with the headless option
 to create the images.

  -Ursprüngliche Nachricht-
  Von: Michael Reutter [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 6. Juni 2002 09:52
  An: Tomcat Users List
  Betreff: need X running tomcat
 
 
  my servlets need some fonts to generate some images.
  Now I have to do the following to start tomcat:


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




AW: AW: need X running tomcat

2002-06-11 Thread Ralph Einfeldt

Have a look at:
http://java.sun.com/j2se/1.4/docs/guide/awt/AWTChanges.html#headless
http://forum.java.sun.com/thread.jsp?forum=20thread=132877

 -Ursprüngliche Nachricht-
 Von: Zsolt Koppany [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 09:34
 An: Tomcat Users List
 Betreff: Re: AW: need X running tomcat
 
 
 Hi,
 
 what is a headless option? Could you provide an example?
 
 Zsolt
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




need X running tomcat

2002-06-06 Thread Michael Reutter

Hi!

I'm running tomcat 3.3.1 on a linux box!

my servlets need some fonts to generate some images.
Now I have to do the following to start tomcat:

(no X is running)
login as root
startx 
export DISPLAY=myserver:0
tomcat.sh start

or

start xdm
login as root
tomcat.sh start

1. Am I on the right way???

2. How to automate this, so my tomcat runs after a reboot ...


thanks
michi

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




AW: need X running tomcat

2002-06-06 Thread Ralph Einfeldt

Better user Xvfb.

Depending on the distribution you use you can
place a start script like this in /etc/init.d or 
/etc/rc.d/init.d to start xvfb.

XVFB=/usr/X11R6/bin/Xvfb
XVFBARGS=:99 -screen 0 1024x768x24 -fbdir /var/run -ac
PIDFILE=/var/run/xvfb.pid
case $1 in
  start)
echo -n Starting virtual X frame buffer: Xvfb
start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile
--background --exec $XVFB -- $XVFBARGS
echo .
;;
  stop)
echo -n Stopping virtual X frame buffer: Xvfb
start-stop-daemon --stop --quiet --pidfile $PIDFILE
echo .
;;
  restart)
$0 stop
$0 start
;;
  *)
echo Usage: /etc/init.d/xvfb {start|stop|restart}
exit 1
esac

exit 0

This is what we use for debian.
:99 is the value for the xserver id that must be set 
in the DISPLAY env.

DISPLAY=localhost:99.0

Additionaly you have to define a link in /etc/rc?.d to this file
for the run levels where you need the Xvfb. (This is for debian,
other distributions 

For tomcat you can do the same.

 -Ursprüngliche Nachricht-
 Von: Michael Reutter [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 6. Juni 2002 09:52
 An: Tomcat Users List
 Betreff: need X running tomcat
 
 
 Hi!
 
 I'm running tomcat 3.3.1 on a linux box!
 
 my servlets need some fonts to generate some images.
 Now I have to do the following to start tomcat:
 
 (no X is running)
 login as root
 startx 
 export DISPLAY=myserver:0
 tomcat.sh start
 
 or
 
 start xdm
 login as root
 tomcat.sh start
 
 1. Am I on the right way???
 
 2. How to automate this, so my tomcat runs after a reboot ...
 
 
 thanks
 michi
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




AW: need X running tomcat

2002-06-06 Thread Ralph Einfeldt

Alternativly use JDK 1.4 with the headless option 
to create the images.

 -Ursprüngliche Nachricht-
 Von: Michael Reutter [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 6. Juni 2002 09:52
 An: Tomcat Users List
 Betreff: need X running tomcat
 
 
 my servlets need some fonts to generate some images.
 Now I have to do the following to start tomcat:
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: need X running tomcat

2002-06-06 Thread Wouter Boers List

Which JVM do you use? If I'm correct, this bug in the JVM is supposed to
be fixed in JVM 1.4.

Wouter

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] 
Sent: donderdag 6 juni 2002 10:47
To: Tomcat Users List
Subject: AW: need X running tomcat


Better user Xvfb.

Depending on the distribution you use you can
place a start script like this in /etc/init.d or 
/etc/rc.d/init.d to start xvfb.

XVFB=/usr/X11R6/bin/Xvfb
XVFBARGS=:99 -screen 0 1024x768x24 -fbdir /var/run -ac
PIDFILE=/var/run/xvfb.pid case $1 in
  start)
echo -n Starting virtual X frame buffer: Xvfb
start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile
--background --exec $XVFB -- $XVFBARGS
echo .
;;
  stop)
echo -n Stopping virtual X frame buffer: Xvfb
start-stop-daemon --stop --quiet --pidfile $PIDFILE
echo .
;;
  restart)
$0 stop
$0 start
;;
  *)
echo Usage: /etc/init.d/xvfb {start|stop|restart}
exit 1
esac

exit 0

This is what we use for debian.
:99 is the value for the xserver id that must be set 
in the DISPLAY env.

DISPLAY=localhost:99.0

Additionaly you have to define a link in /etc/rc?.d to this file for the
run levels where you need the Xvfb. (This is for debian, other
distributions 

For tomcat you can do the same.

 -Ursprüngliche Nachricht-
 Von: Michael Reutter [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 6. Juni 2002 09:52
 An: Tomcat Users List
 Betreff: need X running tomcat
 
 
 Hi!
 
 I'm running tomcat 3.3.1 on a linux box!
 
 my servlets need some fonts to generate some images.
 Now I have to do the following to start tomcat:
 
 (no X is running)
 login as root
 startx 
 export DISPLAY=myserver:0
 tomcat.sh start
 
 or
 
 start xdm
 login as root
 tomcat.sh start
 
 1. Am I on the right way???
 
 2. How to automate this, so my tomcat runs after a reboot ...
 
 
 thanks
 michi
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




AW: need X running tomcat

2002-06-06 Thread Ralph Einfeldt

It was not a bug, but a missing feature.

Yes it is solved from 1.4 on, if you use an 
additional headless option.

 -Ursprüngliche Nachricht-
 Von: Wouter Boers List [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 6. Juni 2002 10:54
 An: 'Tomcat Users List'
 Betreff: RE: need X running tomcat
 
 Which JVM do you use? If I'm correct, this bug in the JVM is 
 supposed to be fixed in JVM 1.4.
 
 Wouter

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: AW: need X running tomcat

2002-06-06 Thread Michael Reutter

Am Donnerstag,  6. Juni 2002 11:05 schrieben Sie:
 It was not a bug, but a missing feature.

 Yes it is solved from 1.4 on, if you use an
 additional headless option.


thanks - works great!!!

michi

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]