Tomcat help

Simon Haddon simon at SIBERN.COM.AU
Thu Aug 3 23:52:16 PDT 2006


Hi,

I think that yo will find that it is finding the jar file.  The problem is
that mapscript.jar can't find mapscript.so .  You need to make sure that
the shared library is in the tomcat library path as well.  You might need
to define of extend LD_LIBRARY_PATH or maybe use java.library.path . Would
need to check

Cheers,
Simon Haddon

> I am able to compile a java mapscript file from the command line using:
>
> javac -classpath ./mapscript.jar MapServerTest.java
>
> But when i try to turn my code into a servelt and run it over Tomcat i
> keep getting:
>
> java.lang.UnsatisfiedLinkError: no mapscript in java.library.path
>
> I have tried adding:
> export CLASSPATH=./mapscript.jar
> to my ./startup.sh file but that does not seem to help.  Am i missing a
> setting somewhere, why cant Tomcat find the .jar file?  I have it in the
> same directory as my .java file and also in /common/lib and /shared/lib
>
> Thank you for any help that you can provide
>



More information about the MapServer-users mailing list