Hi,
do you use some graphic functions in your project? If so,
you should add the following parameter to Tomcat startup:
-Djava.awt.headless=true
cu
cm
Am 22.09.2005 um 09:07 schrieb Iin Nurhidayat:
Hi All,
I found this error :
" java.lang.InternalError: Can't connect to
You are not supposed to use awt or swing on a java web server.
remove calls to awt/swing or use headless java.
Iin Nurhidayat a écrit :
>Hi All,
>
>I found this error :
>
>" java.lang.InternalError: Can't connect to X11
>window server using ':0.0' as the v
Hi All,
I found this error :
" java.lang.InternalError: Can't connect to X11
window server using ':0.0' as the value of the DISPLAY
variable. "
on UNIX platform.
Please adv.
Thanks
Regards
- IN -
--- Antony GUILLOTEAU <[EMAIL PROTECTED]>
wrote:
>
TED]>
> Data: Sun, 23 Mar 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 Georg
The material George gave you is really good. Do you have X11 installed,
even if not running? I am not a Solaris guy, so don't know what that may
mean in that context.
At 09:09 AM 3/23/03 +, you wrote:
Thanks Micael. Tried the same thing and got the same results.
Looks like Catalina/Tomcat
Here are two uses, if they are of help. I am using Red Hat 7.2 Linux.
FIRST:
public JPEGEncoder(Image image, int quality, OutputStream out) {
MediaTracker tracker = new MediaTracker(this);
tracker.addImage(image, 0);
try {
Hi,
Here is a good link:
http://www.geocities.com/marcoschmidt.geo/java-image-faq.html#x
Hope you enjoy.
Georges
Stephen Riek wrote:
Thanks Micael. Tried the same thing and got the same results.
Looks like Catalina/Tomcat is indeed using headless mode but
it's not working with my Java (1.4) a
Thanks Micael. Tried the same thing and got the same results.
Looks like Catalina/Tomcat is indeed using headless mode but
it's not working with my Java (1.4) and operating system (SunOS 5.6).
I'm presuming you're using this to create/generate graphics in a
servlet ? Do you mind posting sample J
I added the headless flag to catalina.sh as follows:
# - Execute The Requested Command -
echo "Using CATALINA_BASE: $CATALINA_BASE"
echo "Using CATALINA_HOME: $CATALINA_HOME"
echo "Using CATALINA_TMPDIR: $CATALINA_TMPDIR"
echo "Using JAVA_HOME:
> On Thu, 2003-03-20 at 20:36, Micael wrote:
> For me the easiest thing was just to provide the right command line options
> (java.awt.headless=true) when I started up Tomcat.
May I ask, how you did this ? I've also encountered
JNI_OnLoad errors runing on Solaris due, I suspect, the lack of
XWind
lto:[EMAIL PROTECTED]
Sent: 20 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 pro
oesn't have one.
We always used to use this on sun E250s without a display adapter, but now
we use headless as it's more reliable.
Andy
> -Original Message-
> From: p niemandt [mailto:[EMAIL PROTECTED]
> Sent: 20 March 2003 21:47
> To: Tomcat Users List
> Subject
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 pur
what it needs to work (which abstract classes and
interfaces to implement).
Regards,
Chris.
-Original Message-
From: p niemandt [mailto:[EMAIL PROTECTED]
Sent: Friday, 21 March 2003 7:18 a.m.
To: Tomcat Users List
Subject: Re: Can't connect to X11 window server usi
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
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 unsu
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
> >graphi
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 frame
' JVM.
> >>To do that add :
> >>
> >>-Djava.awt.headless=true
> >>
> >>To the :
> >>
> >>CATALINA_OPTS
> >>
> >>environment variable.
> >>
> >>-Chad Johnson
> >>
> >>-Original Messa
er a guess you'll need to run tomcat in a 'headless' JVM.
To do that add :
-Djava.awt.headless=true
To the :
CATALINA_OPTS
environment variable.
-Chad Johnson
-Original Message-
From: Georges Roux [mailto:[EMAIL PROTECTED] Sent: Tuesday,
March 18, 2003 5:32 PM
To: [EMAIL
-
From: 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.hea
TS
environment variable.
-Chad Johnson
-Original Message-
From: Georges Roux [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 5:32 PM
To: [EMAIL PROTECTED]
Subject: Can't connect to X11 window server using '0:0' as the value of
the display
Hello everybody,
Hi run Tomcat 4.1.18
2003 5:32 PM
To: [EMAIL PROTECTED]
Subject: Can't connect to X11 window server using '0:0' as the value of
the display
Hello everybody,
Hi run Tomcat 4.1.18 Standalone on Linux debian(sid)and use
J2sdk1.4.1_01.
I have a servlet which manipulate exif informations in jpg images. it
works
Georges Roux wrote:
Hello everybody,
Hi run Tomcat 4.1.18 Standalone on Linux debian(sid)and use
J2sdk1.4.1_01.
I have a servlet which manipulate exif informations in jpg images.
it works well but when I try to run it on tomcat it fails (error 500)
I have the following error:
"Can't
I can think of cases where headless isn't enough, but if you are that
creative, it deserves another topic ;-)
Zsolt
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Behalf Of Theodore Chen
Sent: Mittwoch, 19. März 2003 00:37
To: Tomcat Users List
Subject: Re: Can
sage-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Behalf Of Theodore Chen
> Sent: Mittwoch, 19. März 2003 00:37
> To: Tomcat Users List
> Subject: Re: Can't connect to X11 window server using '0:0' as the value
> ofthe display
>
>
> T
Tomcat 4.1.18 Standalone on Linux debian(sid)and use J2sdk1.4.1_01.
>
> I have a servlet which manipulate exif informations in jpg images.
> it works well but when I try to run it on tomcat it fails (error 500)
>
> I have the following error:
> "Can't connect to X11 w
> I have a servlet which manipulate exif informations in jpg images.
> it works well but when I try to run it on tomcat it fails (error 500)
>
> I have the following error:
> "Can't connect to X11 window server using '0:0' as the value o
can you try to set the DISPLAY env variable to localhost:0.0
export DISPLAY=localhost:0.0
Filip
> -Original Message-
> From: Georges Roux [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 18, 2003 3:32 PM
> To: [EMAIL PROTECTED]
> Subject: Can't connect to X11 wind
Hello everybody,
Hi run Tomcat 4.1.18 Standalone on Linux debian(sid)and use J2sdk1.4.1_01.
I have a servlet which manipulate exif informations in jpg images.
it works well but when I try to run it on tomcat it fails (error 500)
I have the following error:
"Can't connect to X11 win
30 matches
Mail list logo