mapscript in TOMCAT

Victor Herrero Cazurro la_barrenadora at HOTMAIL.COM
Tue Jun 12 05:53:48 EDT 2007


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/



More information about the mapserver-users mailing list