[Mapserver-users] demo config problem

Changqing Zhou czhou at cs.umn.edu
Sat Apr 17 11:15:37 EDT 2004


Run mapserver and demo under Apache web server and it seems fine.

However, it would be nice if somebody can offer some insights on how
to run it on Tomcat.

Thanks,

Changqing

On Fri, 16 Apr 2004, Changqing Zhou wrote:

> Further digging into the threads, I found one silimar issue which was
> resolved by Perry and Yuri:
> http://mapserver.gis.umn.edu/cgi-bin/wilma_glimpse/mapserver-users?query=Unrecognized+character&errors=0&maxfiles=50&maxlines=10&.cgifields=lineonly&.cgifields=restricttofiles&.cgifields=filelist&.cgifields=partial&.cgifields=case
>
> Note: I have the same error in the log:
> 2004-04-16 23:33:18 StandardContext[/mapserver]cgi: runCGI
> (stderr):Unrecognized character \x90 at
> C:\jakarta-tomcat-5.0.19\webapps\mapserver\WEB-INF\cgi\mapserver\mapserv.exe
> line 1.
> 2004-04-16 23:33:18 StandardContext[/mapserver]cgi: runCGI: 1 lines
> received on stderr
>
> In Yuri's thread, the problem was with Apache, while I am running Tomcat,
> just becasue I have Tomcat installed before.
>
> Anybody had any success with Tomcat?
>
> Appreciate your insight!
>
> Changqing
>
> On Fri, 16 Apr 2004, Changqing Zhou wrote:
>
> > Hi, I am having some problem with the demo app - must be something simple
> > I overlooked. Please advise. I appreciate your help.
> >
> > As I saw so many wonderful words on the list about mapserver, I am very
> > anxious to see nice map display in my browser! Good job, U of M GIS people! Go
> > gopher!
> >
> > Changqing
> >
> > The screen is blank. The url is:
> > http://localhost:8080/mapserver/cgi-bin/mapserver/mapserv.exe?layer=lakespy2&layer=dlgstln2&zoomsize=2&map=%2Fjakarta-tomcat-5.0.19%2Fwebapps%2Fmapserver%2Fworkshop%2Fitasca.map&program=%2Fmapserver%2Fcgi-bin%2Fmapserver%2Fmapserv.exe&root=%2Fmapserver%2Fworkshop&map_web_imagepath=%2Ftmp%2F&map_web_imageurl=%2Ftmp%2F&map_web_template=itasca_basic.html
> >
> > Workshop is un-ziped in tomcat:
> >
> > C:\jakarta-tomcat-5.0.19\webapps\mapserver\workshop>dir
> >
> > mapserver4 is installed in cgi:
> >
> > C:\jakarta-tomcat-5.0.19\webapps\mapserver\WEB-INF\cgi\mapserver\mapserv.exe
> >
> > Seems my cgi-bin works fine with mapserv:
> >
> > C:\jakarta-tomcat-5.0.19\webapps\mapserver\WEB-INF\cgi\mapserver>mapserv
> > This script can only be used to decode form results and
> > should be initiated as a CGI process via a httpd server.
> >
> > Here is my workshop index.html config:
> >
> >    <form name="demo" method="GET"
> > action="/mapserver/cgi-bin/mapserver/mapserv.exe"
> > onSubmit="submit_form()">
> >
> > .....
> >
> >       <!-- EDIT THESE HIDDEN VARIABLES -->
> >       <input type="hidden" name="map"
> > value="/jakarta-tomcat-5.0.19/webapps/mapserver/workshop/itasca.map">
> >       <input type="hidden" name="program"
> > value="/mapserver/cgi-bin/mapserver/mapserv.exe">
> >       <input type="hidden" name="root" value="/mapserver/workshop">
> >       <input type="hidden" name="map_web_imagepath" value="/tmp/">
> >       <input type="hidden" name="map_web_imageurl" value="/tmp/">
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> >
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>



More information about the mapserver-users mailing list