----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Hi,
I'm not positive I know the answer to your question, but I have some
thoughts that might lead you in the right direction.
What is happening is that there appears to be a shared library which
your "java" program can't find that implements the platform-specific
portions of the "awt". It may run fine from the command line, but
the environment variables are different when run from the web server.
On most platforms, the LD_LIBRARY_PATH variable is a PATH-like variable
(colon-separated list of directories) that tells the dynamic linker
where to look for shared libaries. (I think its actually called
"LIBPATH" on AIX.) If this variable is not set and the library is not
in the "default locations" or if the library is not in the LD_LIBRARY_PATH,
the dynamic linker will fail at runtime.
My java installation works fine without specifying this explicitly.
However, you might try the following. In jserv.properties, set the
environment variable with the following line.
wrapper.env=LD_LIBRARY_PATH=/path/to/java/libs
For instance, if I search for my shared libraries in my java installation
(Blackdown Java 1.1.8 v.1, Linux 2.2.5-15, RedHat 6.0)
cd /usr/local/jdk118_v1
find . -name '*.so' -print
(note that shared libs are '*.sl' on HP-UX and '*.a' on AIX)
I find that my shared libraries for Java are in
/usr/local/jdk118_v1/lib/i686/green_threads
/usr/local/jdk118_v1/lib/i686/native_threads
So whichever one I'm using, I'll put that path into the wrapper.env line.
Again, I don't need to do this, so there might be something else wrong with
your installation.
Let us know how this works out.
Stephen
P.S. To do GIF image generation, presumable you are using the GIFEncoder.java
class from acme.com. Please note that to be able to do this, you need an
X server. I have a Linux server hosted by a hosting firm, and it took some
doing before I could get an X server up on a machine which was not meant to
run a local GUI.
>Can anyone help me in my problem or just point to the way how to solve
>it.
>I'm trying to do GIF image on-the-fly in my servlet.
>While I do it in separate class, all goes well, but after
>using same code in servlet I have the a error:
>
>[23/03/2000 06:18:21:718 GMT] java.lang.UnsatisfiedLinkError: no awt in
>shared library path
> at
>org.apache.jserv.JServConnection.processRequest(JServConnection.java:320)
>
> at org.apache.jserv.JServConnection.run(JServConnection.java:188)
> at java.lang.Thread.run(Thread.java)
>
>What's wrong ?
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]