Discussion:
X11 problems
(too old to reply)
Michael Dreeling
2005-01-26 12:31:42 UTC
Permalink
Hi,
I am trying to start magicdraw on my Mandrake machine running WL8.1 SP3 using their API. I am trying to start it from a Bean which i have deployed.

I receive the error "Can't connect to X11 window server using ':0.0"

The API does not support headless mode.

I have tried doing the following:

in /etc/profile, i set
X :50 &
export DISPLAY=localhost:50.0

then i do an "init 1" and an "init 3" to restart everything.

so i would expect that since Weblogic is started by root, that i would have screen 50 available for X Windows apps.

However, no matter how i try to set environment variables, it always says "Can't connect to X11 window server using ':0.0"

Where is Weblogic reading this value from?

Thanks for any help!
Michael
bill kemp
2005-01-26 15:19:26 UTC
Permalink
Not sure about where it is reading the DISPLAY env variable, but the spec
prohibits creating a UI from within an ejb. So, what you are trying may not
be possible.

Bill
Post by Michael Dreeling
Hi,
I am trying to start magicdraw on my Mandrake machine running WL8.1 SP3
using their API. I am trying to start it from a Bean which i have deployed.
Post by Michael Dreeling
I receive the error "Can't connect to X11 window server using ':0.0"
The API does not support headless mode.
in /etc/profile, i set
X :50 &
export DISPLAY=localhost:50.0
then i do an "init 1" and an "init 3" to restart everything.
so i would expect that since Weblogic is started by root, that i would
have screen 50 available for X Windows apps.
Post by Michael Dreeling
However, no matter how i try to set environment variables, it always says
"Can't connect to X11 window server using ':0.0"
Post by Michael Dreeling
Where is Weblogic reading this value from?
Thanks for any help!
Michael
Frank Nielsen
2005-01-27 08:32:42 UTC
Permalink
Hi,

Maybe you are looking for this jvm option?!

-Djava.awt.headless=true

Works from v1.4

Chers Frank

Loading...