Hello,
I'm attempting to tie the Cewolf package into a some
data stored in a database.
When I deployed the example application into a Jakarta-
Tomcat 4.0 server, running on SuSE Linux v7.2, I got the
following error :
javax.servlet.ServletException: Can't connect to X11
window server using ':0.0' as the value of the DISPLAY
variable.
I've seen this before when attempting to run an X11
application as root. Does this mean I need to set up my
development environment to run as a non-privileged user?
Let me know,
- Tim Fulmer
Logged In: YES
user_id=641334
If you have a 1.4 or greater JDK you can fix with the
following sys property
java.awt.headless=true
In tomcat set your env variable CATALINA_OPS to be the following
CATALINA_OPS=-Djava.awt.headless=true
And tomcat will set the sys property when it starts up.
This is only with
jdk 1.4 or greater. If you are running an earlier version
of java run the following
command: "xhost +". Careful though this will grant access
to anyone connecting to your x11 server. Hope this helps.
Logged In: YES
user_id=654192
Hi,
I tried using the xhost command, but that is not available in
our sun system. By the way, why is a X server required?
Thanks.
toppo_gigio
Logged In: YES
user_id=574032
The Vm needs to have access to the graphics context. Please
consult the Help forum where this problem has been fixed.
Logged In: YES
user_id=654192
We were using the same non-super user both to start tomcat
and the graph environment, and all we had to be sure was
that the first request was made while the (ReflectionX)
session was still open. Afterwards, we could even shut down
our workstation :)