[mapserver-users] How to run MapServer with Tomcat 4.1?
"Morin, Marc-André"
Marc-Andre.Morin at drdc-rddc.gc.ca
Fri Nov 8 11:23:33 PST 2002
Hi everybody,
I'm trying to run MapServer Demo Application with Tomcat 4.1 from Apache.
If I have well understood the documention about it (
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html ), my CGI
script has to be placed in the WEB-INF folder of my web application.
My web.xml file seems like that:
<web-app>
<display-name>MapServer Demo</display-name>
<description>
MapServer Demo Application
</description>
<servlet>
<servlet-name>cgi</servlet-name>
<servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
<init-param>
<param-name>clientInputTimeout</param-name>
<param-value>100</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>6</param-value>
</init-param>
<init-param>
<param-name>cgiPathPrefix</param-name>
<param-value>WEB-INF/cgi-bin</param-value>
</init-param>
<load-on-startup>5</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>cgi</servlet-name>
<url-pattern>/cgi-bin/*</url-pattern>
</servlet-mapping>
</web-app>
And my demo_init.html file seems like that:
<html>
<head><title>MapServer Demo Interface</title></head>
<body bgcolor="#FFFFFF">
<center><h2>MapServer Demo Interface</h2></center>
<p><hr><p>
Click on the initialize button to fire up the demo with 3 layers turned on
will be accessible for browsing. The
data are of Itasca County, MN and were derived, for the most part, from USGS
1:24,000 quadrangles. Some things to note are:
<form method=GET action="/cgi-bin/mapserv.exe">
<input type="hidden" name="map" value="C:/Program Files/Apache Group/Tomcat
4.1/webapps/mapserver_demo/demo.map">
<input type="hidden" name="layer" value="lakespy2">
<input type="hidden" name="layer" value="dlgstln2">
<input type="hidden" name="zoomsize" value=2>
<input type="hidden" name="program" value="/cgi-bin/mapserv.exe">
<input type="hidden" name="map_web_imagepath" value="C:/Program Files/Apache
Group/Tomcat 4.1/webapps/mapserver_demo/tmp/">
<input type="hidden" name="map_web_imageurl"
value="http://localhost:8080/mapserver_demo/tmp/">
<center><input type="submit" value="Initialize"></center>
</form>
<p><hr><p>
If anyone could help me, it would be really appreciated!
Thanks in advance,
Marc-André
More information about the MapServer-users
mailing list