Mapscript/Java Tomcat

Ajay Ranipeta sc0rp10nau at YAHOO.COM.AU
Mon Jun 27 20:57:21 PDT 2005


Hi Umberto,

I've already done that. It still doesn't fix the problem. I've even followed
Daniel Caldeweyher's How-to on Tomcat 5.5
(http://ms.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55/view) and that
hasn't helped much either.

Any idea's?

btw, I've even copied the nad directory to the system32 as well. I've used
ListDLL's app from SysInternals, to check what dll's are being loaded, and
they seem consistent with the desktop test app that i've done. So the only
thing i can think of is the map file not being loaded properly or found. But
i'm sure it should throw an IOException.

I've seriously am out of ideas, and seriously losing my hair over this.

Hope you guys can help.

Cheers,
Ajay


On Mon, 27 Jun 2005 14:31:19 +0200, Umberto Nicoletti
<umberto.nicoletti at GMAIL.COM> wrote:

>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