How to run Java Mapscript in a servlet ON WINDOWS on Tomcat 5.5 (MS4W 1.5.1)?

Frederico Lucca fredlucca at GMAIL.COM
Thu May 4 18:00:19 EDT 2006


Rot,

I don't know about the application that you have downloaded, but you need 2
things to start.
1) A DLL file named libmapscript.so (linux) or libmapscript.dll (windows)
2) A JAR file named mapscript.jar

The jar file has all references to access the dll file. Using the jar as a
library in your jsp or servlet you can use mapserver.

After this, you need to understand the mapfile structure.
http://mapserver.gis.umn.edu/docs/reference/mapfile

I'm sending a example application that read a mapfile and export a image.

Good luck,

Fred
On 5/4/06, frottoli at tiscali.it <frottoli at tiscali.it> wrote:
>
> Hi,
> I need help to run Java MapScript on Windows on Tomcat 5.5 (I'm a
> newbie about MapScript programming and about configuring servlet
> containers or similar).
> My problem is that I should build servlets or Java ServerPages that
> interact with MapServer through Java MapScript.
> I have downloaded MS4W 1.5.1 (that already includes Java MapScript,
> according to the documentation) but if I'm not wrong it cointains only
> Apache and not a servlet conainer, so I downloaded also Tomcat 5.5.
> But how have I to configure Tomcat 5.5 ON WINDOWS to run the version
> of Java MapScript included in MS4W?
> Can anyone suggest me where I have to put the files provided with MS4W
> (if it is necessary to change their position) and provide me the code
> necessary to run Java MapScript in a servlet?
> Please, I need detailed explanations because I have really no
> experience in these things, but I MUST early produce a running Java
> application for a very important assigment.
> Thanks to all.
>    Rot
>
>
>
>
>
> Milioni di oggetti, impossibile non trovare quello che cerchi.
>
> Dallo spillo all'elefante, non ti stupire.
>
> Sei su eBay!
>
> http://adfarm.mediaplex.com/ad/ck/724-7199-4110-179?id=2
>
>


--
"Everything under the sun is in tune
But the sun is eclipsed by the moon"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060504/1c462186/attachment.html


More information about the mapserver-users mailing list