Hi,
I'm using Tomcat 5.0.12,J2sdk1.5 on Linux Fedora 2 .
I need to have a servlet which displays jpg images
without using Xserver.
I get this error even after starting tomcat with
CATALINA_OPTS=-Djava.awt.headless=true
and also with Xvfb running.
java.awt.HeadlessException
-Original Message-
From: indu ss [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 16, 2004 10:11 AM
To: [EMAIL PROTECTED]
Subject: java.awt.HeadlessException
Hi,
I'm using Tomcat 5.0.12,J2sdk1.5 on Linux Fedora 2 .
I need to have a servlet which displays jpg images
without using Xserver.
I get
: java.awt.HeadlessException
Hi,
I'm using Tomcat 5.0.12,J2sdk1.5 on Linux Fedora 2 .
I need to have a servlet which displays jpg images
without using Xserver.
I get this error even after starting tomcat with
CATALINA_OPTS=-Djava.awt.headless=true
and also with Xvfb running.
java.awt.HeadlessException
\
-Djava.io.tmpdir=$CATALINA_TMPDIR \
-Djava.awt.headless=true \
org.apache.catalina.startup.Bootstrap $@ start \
$CATALINA_BASE/logs/catalina.out 21
fi
But that just resulted in the following error,
java.awt.HeadlessException
,
java.awt.HeadlessException
at
java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121)
at java.awt.Window.(Window.java:266)
at java.awt.Frame.(Frame.java:398)
at java.awt.Frame.(Frame.java:363)
at ImageUtils.loadImage(Unknown Source)
where
\
org.apache.catalina.startup.Bootstrap $@ start \
$CATALINA_BASE/logs/catalina.out 21
fi
But that just resulted in the following error,
java.awt.HeadlessException
at
java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121)
at java.awt.Window.(Window.java:266)
at java.awt.Frame
,
java.awt.HeadlessException
at
java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121)
at java.awt.Window.(Window.java:266)
at java.awt.Frame.(Frame.java:398)
at java.awt.Frame.(Frame.java:363)
at ImageUtils.loadImage(Unknown Source)
where the loadImage() function is simply supposed to load
\
-Dcatalina.base=$CATALINA_BASE \
-Dcatalina.home=$CATALINA_HOME \
-Djava.io.tmpdir=$CATALINA_TMPDIR \
-Djava.awt.headless=true \
org.apache.catalina.startup.Bootstrap $@ start \
$CATALINA_BASE/logs/catalina.out 21
fi
But that just resulted in the following error,
java.awt.HeadlessException
But that just resulted in the following error,
java.awt.HeadlessException
at
java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121)
at java.awt.Window.(Window.java:266)
at java.awt.Frame.(Frame.java:398)
at java.awt.Frame.(Frame.java:363)
at ImageUtils.loadImage(Unknown Source)
where
2003 12:15:04 -0800
Para: Tomcat Users List [EMAIL PROTECTED]
Assunto: Re: Can't connect to X11 window server using '0:0' as the value of the
display and now
java.awt.HeadlessException
The material George gave you is really good. Do you have X11 installed,
even if not running? I am
Hi,
I put System.setProperty(java.awt.headless, true);
in my servlet init method it's ok, but now when I open a Frame,
I get the exception HeadlessException:
java.awt.HeadlessException
at
java.awt.GraphicsEnvironnement.checkHeadless(GraphicsEnvironement.java:121)
at java.awt.window.init
: Georges Roux [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 11:09 AM
To: Tomcat Users List
Subject: Re: Can't connect to X11 window server using '0:0' as the value
of the display and now java.awt.HeadlessException
Hi,
I put System.setProperty(java.awt.headless, true);
in my servlet init
HeadlessException:
java.awt.HeadlessException
at
java.awt.GraphicsEnvironnement.checkHeadless(GraphicsEnvironement.java:121)
at java.awt.window.init(Window.java:226)
at java.awt.Frame.init(Frame.java:398)
...
What can I do?
Georges
Chad Johnson wrote:
If I had to wager a guess you'll need
HeadlessException:
java.awt.HeadlessException
at
java.awt.GraphicsEnvironnement.checkHeadless(GraphicsEnvironement.java:121)
at java.awt.window.init(Window.java:226)
at java.awt.Frame.init(Frame.java:398)
...
What can I do?
Georges
Chad Johnson wrote:
If I had
At 07:18 PM 3/20/2003 +, you wrote:
ok: there is another solution to the headless thing: (I wrote a
graphical servlet that runs on a linux box without X, and had the same
problems: The headless seemed to work, well, kinda, but not to my
liking): So I went the xvfb route: This is a virtual
Difficult to say: What kind of problems?
I start mine using
Xvfb :0 -screen 0 1600x1200x32
{I just added it to rc.local }
On Thu, 2003-03-20 at 19:27, Glenn Parsons wrote:
At 07:18 PM 3/20/2003 +, you wrote:
ok: there is another solution to the headless thing: (I wrote a
graphical
At 07:59 PM 3/20/2003 +, you wrote:
Difficult to say: What kind of problems?
I start mine using
Xvfb :0 -screen 0 1600x1200x32
{I just added it to rc.local }
Will retry with resolution change.
Thanks,
Glenn
-
To
For me the easiest thing was just to provide the right command line options
(java.awt.headless=true) when I started up Tomcat.
At 02:27 PM 3/20/03 -0500, you wrote:
At 07:18 PM 3/20/2003 +, you wrote:
ok: there is another solution to the headless thing: (I wrote a
graphical servlet that runs
java.awt.HeadlessException
ok: there is another solution to the headless thing: (I wrote a
graphical servlet that runs on a linux box without X, and had the same
problems: The headless seemed to work, well, kinda, but not to my
liking): So I went the xvfb route: This is a virtual frame buffer to can
install
Yep: Done correctly, this is probably the more 'correct' solution, but,
and I'm probably opening myself to a lot of flamebait, but I do suspect
that using something like Xvfb might give some advantages that using
headless won't. For example, and I'm just guessing, but I think that
'headless' is
:0' as the value
ofthe display and now java.awt.HeadlessException
Yep: Done correctly, this is probably the more 'correct' solution, but,
and I'm probably opening myself to a lot of flamebait, but I do suspect
that using something like Xvfb might give some advantages that using
headless won't
March 2003 21:47
To: Tomcat Users List
Subject: Re: Can't connect to X11 window server using '0:0' as the value
ofthe display and now java.awt.HeadlessException
Yep: Done correctly, this is probably the more 'correct' solution, but,
and I'm probably opening myself to a lot of flamebait, but I do suspect
22 matches
Mail list logo