[Geoserver-users] X connection broken when requesting getMap

Hello list,

i am trying to run Geoserver 1.6.5 on a machine with Tomcat 5. The operating system ist Suse.
Geoserver correctly handels all XML-based requests like WFS-getFeature or getCapabilities. But when I start a getMap-Request, the Tomcat is shut down. These are the error messages:

X connection to localhost:15.0 broken (explicit kill or server shutdown).

X11 connection rejected because of wrong authentication.

Has anyone an idea how to solve this problem?

Matthias Drews ha scritto:

Hello list,
i am trying to run Geoserver 1.6.5 on a machine with Tomcat 5. The operating system ist Suse.
Geoserver correctly handels all XML-based requests like WFS-getFeature or getCapabilities. But when I start a getMap-Request, the Tomcat is shut down. These are the error messages:

X connection to localhost:15.0 broken (explicit kill or server shutdown).

X11 connection rejected because of wrong authentication.

Has anyone an idea how to solve this problem?

Shuts down? Which JDK are you using? GeoServer works fine with Sun
JDK, I'd advise against using OpenJDK for the time being.
A Sun JDK should complain that X cannot be reached, but definitely
should not shout down.

Besides that, you should start Tomcat adding the "-Djava.awt.headless=true" option so that it does not try to reach
for X (you can do so by adding the option among the java options
in tomcat/bin/catalina.sh).

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Thank you!
Adding the headless-option solved the problem.

---
Matthias Drews
phone: +49 (89) 121528-0 mailto:matthias.drews@anonymised.com
fax: +49 (89) 121528-79 http://www.gaf.de
GAF AG Arnulfstr. 197 D-80634 Muenchen Germany

Vorstand: Dr. Peter Volk, Aufsichtsratsvorsitzender: Marcello Maranesi
Amtsgericht Muenchen HRB 140 509, Firmensitz: Muenchen

-----Ursprüngliche Nachricht-----
Von: Andrea Aime [mailto:aaime@anonymised.com]
Gesendet: Dienstag, 7. Oktober 2008 12:10
An: Matthias Drews
Cc: geoserver-users@lists.sourceforge.net
Betreff: Re: [Geoserver-users] X connection broken when requesting getMap

Matthias Drews ha scritto:

Hello list,

i am trying to run Geoserver 1.6.5 on a machine with Tomcat 5. The
operating system ist Suse.
Geoserver correctly handels all XML-based requests like WFS-getFeature
or getCapabilities. But when I start a getMap-Request, the Tomcat is
shut down. These are the error messages:

X connection to localhost:15.0 broken (explicit kill or server shutdown).

X11 connection rejected because of wrong authentication.

Has anyone an idea how to solve this problem?

Shuts down? Which JDK are you using? GeoServer works fine with Sun JDK, I'd advise against using OpenJDK for the time being.
A Sun JDK should complain that X cannot be reached, but definitely should not shout down.

Besides that, you should start Tomcat adding the "-Djava.awt.headless=true" option so that it does not try to reach for X (you can do so by adding the option among the java options in tomcat/bin/catalina.sh).

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.