mapscript in TOMCAT

Victor Herrero Cazurro la_barrenadora at HOTMAIL.COM
Tue Jun 12 04:44:51 PDT 2007


Thanks Umberto,

I have already obtained it, was path of the Tomcat, finally I have put

"PATH = C:\ms4w\Apache\cgi-bin;C:\ms4w\Apache\cgi-bin\mapscript\java;%PATH%"


>From: "Umberto Nicoletti" <umberto.nicoletti at gmail.com>
>To: "Victor Herrero Cazurro" <la_barrenadora at hotmail.com>
>CC: MAPSERVER-USERS at lists.umn.edu
>Subject: Re: [UMN_MAPSERVER-USERS] mapscript in TOMCAT
>Date: Tue, 12 Jun 2007 12:25:02 +0200
>
>This path you wrote in the first email:
>
>"path = C:\ms4w\Apache\cgi-bin;C:\ms4w\Apache\cgi-bin\mapscript\java"
>
>should probably be:
>
>PATH = C:\ms4w\Apache\cgi-bin;C:\ms4w\Apache\cgi-bin\mapscript\java;%PATH%
>
>The latter preserves previous path settings, while the former resets
>the path completely, which is probably not what you intended to do.
>
>HTH,
>Umberto
>
>On 6/12/07, Victor Herrero Cazurro <la_barrenadora at hotmail.com> wrote:
>>Ok, but what path??? because this class it works correctly in stand alone
>>application. Then the path of SO is correctly, or not? I think, that the
>>problem is in path of TOMCAT. It is as if TOMCAT did not take the same 
>>path
>>that the SO.
>>
>>thanks in advance,
>>
>>
>> >From: Umberto Nicoletti <umberto.nicoletti at GMAIL.COM>
>> >Reply-To: Umberto Nicoletti <umberto.nicoletti at GMAIL.COM>
>> >To: MAPSERVER-USERS at LISTS.UMN.EDU
>> >Subject: Re: [UMN_MAPSERVER-USERS] mapscript in TOMCAT
>> >Date: Tue, 12 Jun 2007 11:58:49 +0200
>> >
>> >mapscript.dll depends on other dlls that are not found in that path.
>> >Use a tool like dependency walker to find out dependencies and add
>> >them to the path.
>> >
>> >Umberto
>> >
>> >On 6/12/07, Victor Herrero Cazurro <la_barrenadora at hotmail.com> wrote:
>> >>Good morning!!
>> >>
>> >>I have a web application, the method who call mapscript class, it works
>> >>correctly in stand alone application, but when run in TOMCAT, throw a
>> >>exception:
>> >>
>> >>"GRAVE: Servlet.service() para servlet action lanzó excepción
>> >>java.lang.UnsatisfiedLinkError: no mapscript in java.library.path
>> >>         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
>> >>         at java.lang.Runtime.loadLibrary0(Runtime.java:822)
>> >>         at java.lang.System.loadLibrary(System.java:993)
>> >>         at
>> >>edu.umn.gis.mapscript.mapscriptJNI.<clinit>(mapscriptJNI.java:23)
>> >>         at edu.umn.gis.mapscript.mapObj.<init>(mapObj.java:276)
>> >>         at es.nomenclator.struts.model.WFS.getfeature(WFS.java:24)"
>> >>
>> >>The line that reference is:
>> >>
>> >>"mapObj map = new
>> >>mapObj("C:\\ms4w\\Apache\\htdocs\\mapserver\\app\\app.map");"
>> >>
>> >>I have a environment variable:
>> >>
>> >>"path = C:\ms4w\Apache\cgi-bin;C:\ms4w\Apache\cgi-bin\mapscript\java"
>> >>
>> >>in this path are "mapscript.dll" and "mapscript.jar"
>> >>
>> >>And "mapscript.jar" is in classpath to web application.
>> >>
>> >>Can somebody tell me what happend??
>> >>
>> >>Thanks
>> >>
>> >>_________________________________________________________________
>> >>¿Estás pensando en cambiar de coche? Todas los modelos de serie y 
>>extras
>> >>en
>> >>MSN Motor. http://motor.msn.es/researchcentre/
>> >>
>>
>>_________________________________________________________________
>>Descubre la descarga digital con MSN Music. Más de un millón de canciones.
>>http://music.msn.es/
>>

_________________________________________________________________
Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN Amor 
& Amistad. http://match.msn.es/match/mt.cfm?pg=channel&tcid=162349



More information about the MapServer-users mailing list