<br><font size=2 face="sans-serif">Hi</font>
<br>
<br><font size=2 face="sans-serif">Maybe</font>
<br><font size=2 face="sans-serif">http://article.gmane.org/gmane.comp.gis.mapserver.user/18799/</font>
<br><font size=2 face="sans-serif">is helpfull. </font>
<br>
<br><font size=2 face="sans-serif">Benedikt</font>
<br>
<br><font size=2><tt>UMN MapServer Users List <MAPSERVER-USERS@LISTS.UMN.EDU>
schrieb am 20.04.2006 13:42:09:<br>
<br>
> Hi,<br>
> <br>
> I'm have a fairly annoying issue when trying to load a map file into
a java <br>
> mapObj object when running in windows XP. I'm using mapserver
4.8.3 as <br>
> distributed with ms4w 1.5.1 - i'm also using the mapscript.dll and
<br>
> mapscript.jar as distributed with that ms4w. My app is a servlet
that runs <br>
> under tomcat 5.5, with a sun 1.5 jvm. I'm fairly confident my
paths etc. <br>
> are fine.<br>
> <br>
> The java code really just boils down to one line:<br>
> <br>
> mapObj mapobj = new mapObj(sMapFilename);<br>
> <br>
> The exception is thrown by that statement. And is..<br>
> <br>
> java.lang.UnknownError: No such file or directory<br>
> edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native
Method)<br>
> edu.umn.gis.mapscript.mapObj.<init>(mapObj.java:312)<br>
> myapp.ModifiedMapObj.<init>(ModifiedMapObj.java:48)<br>
> myapp.Test.doGet(Test.java:37)<br>
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)<br>
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br>
> <br>
> I'm sure it finds my map file fine, as if you pass a messed up string
it <br>
> gives a different error (java.io.IOException).<br>
> <br>
> I'm also confident there's nothing wrong with my .map file as the
test one <br>
> is simple (map file attached below anyway), everything is in the same
<br>
> directory and it works fine with a cgi wms request on the same windows
<br>
> machine. And...<br>
> (here's the annoying bit)<br>
> ..it also works fine when I deploy exactly the same compiled code
with <br>
> exactly the same .map file and shp files on my linux (fedora) box.
On that <br>
> box it's a slightly different version of mapserver/mapscript (compiled
them <br>
> myself), tomcat 5 not 5.5 and a sun 1.4 jvm - but still, why does
the code <br>
> work on that box and not on windows?<br>
> <br>
> If anyone has any ideas at all it would be much appreciated?<br>
> <br>
> Thanks, James<br>
> <br>
> ---.map file contents---<br>
> <br>
> #<br>
> # Start of WMS Server map file<br>
> MAP<br>
> NAME WMS_server<br>
> IMAGECOLOR 250 250 250<br>
> SIZE 800 600<br>
> STATUS ON<br>
> PROJECTION<br>
> "init=epsg:27700"<br>
> END<br>
> EXTENT 275000 180000 285000 190000<br>
> <br>
> SYMBOLSET OSMMsymbolsTest.sym<br>
> FONTSET fonts.txt<br>
> UNITS METERS<br>
> <br>
> WEB<br>
> IMAGEPATH "/ms4w/tmp/ms_tmp/"<br>
> IMAGEURL "/ms_tmp/"<br>
> END<br>
> <br>
> LAYER<br>
> NAME TopographicArea<br>
> METADATA<br>
> "wms_title" "TopographicArea"<br>
> END<br>
> TYPE POLYGON<br>
> STATUS ON<br>
> DATA TopographicArea<br>
> PROJECTION<br>
> "init=epsg:27700"<br>
> END<br>
> CLASS<br>
> NAME "default"<br>
> STYLE<br>
> COLOR 255 204 153<br>
> OUTLINECOLOR 0 0 0<br>
> END<br>
> END<br>
> END<br>
> END # Map File<br>
</tt></font>