<DIV>
<DIV>Hi to all<BR></DIV>
<DIV>I would implement mapserver in tomcat as servlet but I have found a lot of<BR>problems in start with it!<BR><BR>So:<BR>1) is there sites that implement mapserver as servlet in tomcat that I can<BR>view?<BR>2) Some one have a piece of basic code that I can compile as servlet in<BR>&nbsp;tomcat for view how it run? &nbsp;I have load the java Howto.<BR><BR>Do you have examples so I can see how can I work<BR>with mapserver functions and servlets?<BR>I have been seeing the wiki, but I can not really find what I want.<BR><BR>I have done the example of loading a library that apears in:<BR><BR><A class=fixed href="https://webmail.upv.es/horde/util/go.php?url=http%3A%2F%2Fwww.unicolet.org%2Fmapserver%2Ftomcat.html&amp;Horde=324c42e307e8eddcfaf3545b63ecab4e" target=_blank>http://www.unicolet.org/mapserver/tomcat.html</A><BR><BR>and it works, but when I want to complete the JavaMapscript.java code with other<BR>mapserver comands, it doesn't work:<BR><BR>import
 edu.umn.gis.mapscript.*;<BR><BR>public class JavaMapscript {<BR>&nbsp;&nbsp; &nbsp;private static JavaMapscript instance=null;<BR><BR>&nbsp;&nbsp; &nbsp;private JavaMapscript() {<BR>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;try {<BR>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;System.loadLibrary("mapscript");<BR>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;} catch (Exception e) {<BR>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;e.printStackTrace();<BR>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;System.err.println("* error loading native library *");<BR>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;System.err.println("Error is: "+e);<BR>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}<BR>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;System.out.println(" * mapscript native library loaded *");<BR>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;mapObj map = new mapObj("test.map");<BR>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;imageObj img = map.draw();<BR>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;//img.save("result", map);*/<BR>&nbsp;&nbsp;
 &nbsp;}<BR><BR>&nbsp;&nbsp; &nbsp;public static JavaMapscript getInstance() {<BR>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;System.out.println("Try to instantiate Mapscript");<BR>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;System.out.flush();<BR>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if ( instance == null ) {<BR>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;instance = new JavaMapscript();<BR>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}<BR>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;return instance;<BR>&nbsp;&nbsp; &nbsp;}<BR>}<BR><BR>And even worse, when I do any modifications and I put the new .class file in the<BR>server, I have an error because it says that the library was already loaded, and<BR>my only solution now to solve it is to turn off the server and turn it on again.<BR><BR>Hope someone can help me<BR><BR>Thank you<BR><BR>Jose Luis<BR></DIV></DIV><p>
                <hr size=1><br><table><tr><td><a href="http://es.rd.yahoo.com/mail_es/tagline/mail/image/*http://es.mail.yahoo.com"><img src="http://eur.i1.yimg.com/eur.yimg.com/i/es/mail/mails.gif" height=80 width=230 alt="Nuevo Correo Yahoo!" border=0 align="left"></a></td></tr></table>