Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Linux - Servlet - X Problem

0 views
Skip to first unread message

Guenther Schoebel

unread,
Aug 28, 2000, 3:00:00 AM8/28/00
to
(Linux Suse 6.2, KLG/JClass Chart)

i 've programmed a servlet with a chart inside,
to run this under linux i need the X-Window started,

but even if i start X-Windows with xinit,

i get the error message

/usr/lib/jdk1.1.7/bin/../lib/i686/green_threads/libawt.so: undefined
symbol: XtShellStrings (libawt.so)
java.lang.UnsatisfiedLinkError: no awt in shared library path
at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:323)
at
org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java)

whats wrong ???

Guenther.Schoebel.vcf

dhag...@millibits.com

unread,
Aug 28, 2000, 9:20:57 PM8/28/00
to
There are typically several reasons why your servlets cannot perform AWT
operations:

1. Your servlet engine was not started with a $DISPLAY
environment variable set. Add this setting to the script
you use to start your servlet engine.

2. The account running the servlet engine does not have
permissions to connect to the specified $DISPLAY. This
will typically occur if your servlet engine runs as
nobody but you are logged in as yourself.

3. The display isn't running.

Typically, the best solution is to have your servlet
engine's startup script start a Xvfb server at a high
numbered display, like :10.0 with some strict magic-
cookie based authentication for whatever account runs
your servlet engine. That way your servlet engine can
generate images without affecting your logged-in
session(s).

-=- D. J.

In article <39AA1F84...@bmw.de>,


Sent via Deja.com http://www.deja.com/
Before you buy.

0 new messages