cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoît Clouet <>
Subject Re: can't start cocoon under root
Date Thu, 04 Jul 2002 15:58:23 GMT
> ->there is an error message in my catalin.out like this:
> Xlib: connection to "" refused by server
> Xlib: No protocol specified
> ->the cocoon page puts out the following
> org.apache.cocoon.ProcessingException: Error compiling sitemap:
> java.lang.InternalError: Can't connect to X11 window server using ':0.0'
> as the value of the DISPLAY variable.
I think batik uses the display (which explains why you can't use cocoon
on a headless station).

The user root is not allowed to access your display through the network.

XFree 86 allows display of programs to be exported on distant hosts. It
might be misconfigured in your case
Try the command : 

xhost +

(dangerous on a network) or 

xhost +
or either

xhost +<your IP address>

point to
for more explanations.

Doc taken form :

UNIX with X server

Cocoon is bundled with the Batik (SVG rasterization toolkit) to deliver
SVG imaging capabilities. Batik uses Java java.awt library, which (at
least in Sun JDK before 1.4) requires graphics display. This means that
X server must be running and Cocoon should have permission to connect to

Easiest way to avoid X server connection problem (and to have mentioned
permission) is to install and run Cocoon and entire servlet engine of
your choice under regular user account.

For security, and many other reasons, X server can be replaced by Xfvb
or PJA (alternative awt implementation).

[Note] Sun JDK 1.4 does not require graphics display anymore, but Java
has to be started with the argument -Djava.awt.headless=true


Benoît Clouet

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message