Mapscript/Java Tomcat
Umberto Nicoletti
umberto.nicoletti at GMAIL.COM
Mon Jun 27 05:31:19 PDT 2005
Remove mapscript.jar from your app WEB-INF/lib and put it in
TOMCAT_HOME/common/lib.
If I recall correctly 4.4.2 should have the native library loading
code already in place in mapscript.jar so you do not have to call
System.loadLibrary() for your servlet.
Regards,
Umberto
On 6/27/05, Ajay Ranipeta <sc0rp10nau at yahoo.com.au> wrote:
> Hi Umberto,
>
> Thx for the quick response. I've set the directory in the PATH variable, as
> well as the CLASSPATH (thought this might help). I've pretty much run out of
> ideas and this list is my last resort. As mentioned before, wierd thing is,
> it works fine as a standalone app, just not as a web-app under tomcat.
>
> Now, I've followed your suggestion, and copied all the dll files (from
> hobu's 4.4.2 zip file) to the system32 folder. Now this has been a bit of a
> progress. Checking the tomcat log files, it says it has loaded the dll
> successfully (got this from a System.out statement after the loadLibrary
> statement). Now the next step, creating a map object (mapObj map = new
> mapObj("path/to/map/file.map") ) throws the following error:
>
> === start error ===
> java.lang.UnsatisfiedLinkError: new_mapObj
> edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method)
> edu.umn.gis.mapscript.mapObj.<init>(mapObj.java:332)
> ...
> ...
> === end error ===
>
> Any ideas?
>
> cheers,
> AJ
>
More information about the MapServer-users
mailing list