Rif: Re: [Mapserver-users] Please Help me
aborruso at spaziogis.it
aborruso at spaziogis.it
Tue May 20 10:57:19 PDT 2003
Hi Michael,
I have tried to url encode my path with the same result.
I have:
-"msLoadMap(): Unable to access file. (c:\nodata\map.map)" when I put the
string in dos cosole
-"The specified CGI application misbehaved by not returning a complete set
of HTTP headers. The headers it did return are:" when I run it from the
browser
What do you think about??
Thank you,
Andrea
|---------+--------------------------->
| | Michael Schulz |
| | <mschulz at webgis.|
| | de> |
| | |
| | 20/05/2003 09.46|
| | |
|---------+--------------------------->
>------------------------------------------------------------------------------------------------------------------------------|
| |
| Per: |
| Cc: aborruso at spaziogis.it, mapserver-users at lists.gis.umn.edu |
| Oggetto: Re: [Mapserver-users] Please Help me |
>------------------------------------------------------------------------------------------------------------------------------|
Hi,
maybe already mentioned, and i am also not sure whether the windows version
stumbles over this or not, but have you tried to url encode the path you
submit
to mapserv? Something like mapserv
"QUERY_STRING=map=c%3a%5cnodata%5cmap.map&mode=map" ? You could try these
encodings also in the url. Just a guess.
Cheers, Michael
Vincent Schut schrieb:
> Andrea,
>
> sorry, but I don't know about that. If you use php_mapscript (which I do)
you
> will get error messages in your browser. I never used the plain mapserver
cgi
> to generate maps, so I don't know if the behaviour you're describing is
> correct or not.
> Someone else on the list should know, though. Hope someone responds to
your
> message. Otherwise, resend it as a new plain question to the list so
others
> will read it :-)
>
> Cheers,
> Vincent.
>
> On Monday 19 May 2003 18:49, aborruso at spaziogis.it wrote:
> > Dear Vincent,
> > probably I'm not able to explain properly my problem. I know either
the
> > path or name of your mapfile is invalid, or mapserver does not have
access
> > to it. That file does not exist.
> > My real problem is that I'm not able to see in my browser an error like
> > that I can see in my dos console ("msLoadMap(): Unable to access
> > file.(/var/mapserver/mapfiles/province2.map)".
> > I read in my browser an "obscure" error: "CGI Error The specified CGI
> > application misbehaved by not returning a complete set of HTTP headers.
The
> > headers it did return are:"
> > When I have had in my server a working mapserver application I had the
> > possibility to read error clearer error messages in my browser. For
this
> > reason I think there is something "strange" in my actual mapserver
> > installation.
> >
> > Thank you,
> >
> > Andrea
> >
> > |---------+--------------------------->
> > |
> > | | Vincent Schut |
> > | | <schut at sarvision|
> > | | .com> |
> > | |
> > | | 19/05/2003 09.39|
> > |
> > |---------+--------------------------->
> > |
> > >
------------------------------------------------------------------------
> > >------------------------------------------------------|
> > >
> > | Per: aborruso at spaziogis.it
> > | | Cc:
> > | mapserver-users at lists.gis.umn.edu, "Palle Due Larsen"
> > | <palle at mail-online.dk> | Oggetto:
Re:
> > | [Mapserver-users] Please Help me
> > | |
> > |
> > >
------------------------------------------------------------------------
> > >------------------------------------------------------|
> >
> > Well, as it sais 'msloadmap (the function that produced the error
message:
> > the
> > mapfile loading function): unable to access file', either the path or
name
> > of
> > your mapfile is invalid, or mapserver does not have access to it. As I
> > think
> > you are on windows I am afraid I can't help you with file access
issues. I
> > have only experience with this on linux. Maybe someone else on the list
can
> >
> > help you with that.
> > But first check if your mapfile is really there and does exist.
> >
> > Regards,
> > Vincent.
> >
> > On Thursday 15 May 2003 20:11, aborruso at spaziogis.it wrote:
> > > Thank you Vincent.
> > > Now I have (in the dos consolle) a normal message error, the message
I
> > > would like to read also in my browser. But in my browser I have:
> > > "CGI Error
> > > The specified CGI application misbehaved by not returning a complete
set
> >
> > of
> >
> > > HTTP headers. The headers it did return are:"
> > > This is the url :
> >
> > http://mapserver.spaziogis.it/cgi-bin/mapserv.exe?map=c:
> > > \nodata\map.map&mode=map
> > >
> > > In my console I have: "msLoadMap(): Unable to access file.
> > > (/var/mapserver/mapfiles/province2.map)".
> > > I have written: mapserv "QUERY_STRING=map=c:
\nodata\map.map&mode=map".
> > >
> > > I have:
> > > <!-- MapServer version 3.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
> >
>
> OUTPUT=WBMP> SUPPO> RTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER
> >
SUPPORTS=WMS_CLIENT INPUT=EPPL7> INPUT=> POSTGIS INPUT=OGR INPUT=GDAL
> >
INPUT=SHAPEFILE -->
> >
> > > Do you have any other advices??
> > >
> > > Thank you for all,
> > >
> > > Andrea
> > >
> > > |---------+--------------------------->
> > > |
> > > | | Vincent Schut |
> > > | | <schut at sarvision|
> > > | | .com> |
> > > | |
> > > | | 15/05/2003 13.43|
> > > |
> > > |---------+--------------------------->
> >
> >
------------------------------------------------------------------------
> >
> > > >------------------------------------------------------|
> > > >
> > > | Per: aborruso at spaziogis.it, "Palle Due Larsen"
> > > | <palle at mail-online.dk>
|
> > > | Cc: mapserver-users at lists.gis.umn.edu
> > > |
> > > | | Oggetto: Re:
> > > |
> > > | [Mapserver-users] Please Help me
> >
> >
------------------------------------------------------------------------
> >
> > > >------------------------------------------------------|
> > >
> > > the correct way to do this is:
> > > ./mapserv
> >
> > "QUERY_STRING=map=/var/mapserver/mapfiles/province2.map&mode=map"
> >
> > > (of course fill in your own mapfile and eventual other parameters. I
> >
> > think
> >
> > > you
> > > need to specify at least map and mode. This example prints the image
data
> > > to
> > > stdout, so you will see your png or gif or whatever scrolling as
ascii on
> > > you
> > > terminal :-)
> > > Works with mapserver-3.7. Don't know if it works with 3.6.x versions.
> > >
> > > Regards,
> > > Vincent.
> > >
> > > On Wednesday 14 May 2003 19:42, aborruso at spaziogis.it wrote:
> > > > Dear Palle,
> > > > I have entered your parmameters and I have had:
> > > > "This script can only be used to decode form results and should be
> > > > initiated as a CGI via a httpd server."
> > > >
> > > > What do you think about?
> > > >
> > > > Thank you,
> > > >
> > > > Andrea
> > > >
> > > > |---------+--------------------------->
> > > > |
> > > > | | "Palle Due |
> > > > | | Larsen" |
> > > > | | <palle at mail-onli|
> > > > | | ne.dk> |
> > > > | |
> > > > | | 13/05/2003 17.33|
> > > > |
> > > > |---------+--------------------------->
> > >
> > >
------------------------------------------------------------------------
> > >
> > > > >------------------------------------------------------|
> > > > >
> > > > | Per: aborruso at spaziogis.it,
> > > > | mapserver-users at lists.gis.umn.edu
> > > > |
> > > > | | Cc:
> > > > |
> > > > | Oggetto: Re: [Mapserver-users] Please Help me
> > >
> > >
------------------------------------------------------------------------
> > >
> > > > >------------------------------------------------------|
> > > >
> > > > Hi Andrea,
> > > >
> > > > Just enter mapserv -query_string="(all your normal CGI parameters)"
> > > >
> > > > Best regards
> > > >
> > > > Palle Due Larsen
> > > > -----Original Message-----
> > > > From: aborruso at spaziogis.it
> > > > To: "Palle Due Larsen" <palle at mail-online.dk>
> > > > Cc: mapserver-users at lists.gis.umn.edu
> > > > Date: Mon, 12 May 2003 09:51:09 +0200
> > > > Subject: Re: [Mapserver-users] Please Help me
> > > >
> > > > > Palle,
> > > > > could you write me a text to use in mapserv from command line,
I'm
> > > > > not able
> > > > > to translate an url to a text for the command line. I know only
> > > > > "mapserv
> > > > > -v".
> > > > > Thank you,
> > > > >
> > > > > Andrea
> > > > >
> > > > > |---------+--------------------------->
> > > > > |
> > > > > | | "Palle Due |
> > > > > | | Larsen" |
> > > > > | | <palle at mail-onli|
> > > > > | | ne.dk> |
> > > > > | |
> > > > > | | 12/05/2003 09.48|
> > > > > |
> > > > > |---------+--------------------------->
> > > > > |
> > > > > >
--------------------------------------------------------------------
> > > > >
> > > > > ----------------------------------------------------------|
> > > > >
> > > > > | Per: aborruso at spaziogis.it
> > > > > |
> > > > > | Cc:
> > > > > |
> > > > > | Oggetto: Re: [Mapserver-users] Please Help me
> > > > > >
> > > > > >
--------------------------------------------------------------------
> > > > >
> > > > > ----------------------------------------------------------|
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Yes, I am aware of that, it was just that your url looked a
little
> > > > > funny, so I thought it might be that mapserver misunderstood
> > > > > something.
> > > > > However, I just checked with my installation (Win2000, IIS,
ms3.6),
> > > > > and
> > > > > I get expected results when using your url, so it must be
something
> > > > > else. Have you tried running mapserv.exe from the command-line -
with
> > > > > those parameters - to see if it's returning a correct result?
> > > > >
> > > > > Best regards
> > > > >
> > > > > Palle
> > > > > -----Original Message-----
> > > > > From: aborruso at spaziogis.it
> > > > > To: "Palle Due Larsen" <palle at mail-online.dk>
> > > > > Date: Mon, 12 May 2003 09:19:58 +0200
> > > > > Subject: Re: [Mapserver-users] Please Help me
> > > > >
> > > > > > Palle,
> > > > > > as you can read in my past email, the map file I want to use in
my
> > > > > > example
> > > > > > does not exist. Then it would be normal to have an error
message,
> > > > >
> > > > > but
> > > > >
> > > > > > I
> > > > > > remember some more specific error messages with the old
version.
> > > > >
> > > > > Then
> > > > >
> > > > > > in my
> > > > > > example it should be appeared a message like: "mapserv:
impossible
> > > > >
> > > > > to
> > > > >
> > > > > > find
> > > > > > test.map". I have instead: "CGI Error The specified CGI
application
> > > > > > misbehaved by not returning a complete set of HTTP headers. The
> > > > > > headers it
> > > > > > did return are:".
> > > > > >
> > > > > > Is this error message normal or is there something wrong in my
> > > > > > installation??
> > > > > >
> > > > > > Thank you,
> > > > > >
> > > > > >
> > > > > > Andrea
> > > > > >
> > > > > > |---------+--------------------------->
> > > > > > |
> > > > > > | | "Palle Due |
> > > > > > | | Larsen" |
> > > > > > | | <palle at mail-onli|
> > > > > > | | ne.dk> |
> > > > > > | |
> > > > > > | | 12/05/2003 09.09|
> > > > > > |
> > > > > > |---------+--------------------------->
> > > > > >
> > > > > >
--------------------------------------------------------------------
> > > > > > ----------------------------------------------------------|
> > > > > >
> > > > > > | Per: aborruso at spaziogis.it,
> > > > > >
> > > > > > mapserver-users at lists.gis.umn.edu
> > > > > >
> > > > > > | Cc:
> > > > > > |
> > > > > > | Oggetto: Re: [Mapserver-users] Please Help me
> > > > > >
> > > > > >
--------------------------------------------------------------------
> > > > > > ----------------------------------------------------------|
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > Could it be that the url is wrong? Your are missing the map
> > > > > > parameter,
> > > > > > try this:
> > > > > >
> > > > > > http://127.0.0.1/cgi-bin/mapserv.exe?map=C:
> > > > > > \Inetpub\wwwroot\mapserver\test.map&mode=map
> > > > > >
> > > > > > Best Regards
> > > > > >
> > > > > > Palle Due Larsen
> > > > > > Carl Bro GIS & IT
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: aborruso at spaziogis.it
> > > > > > To: mapserver-users at lists.gis.umn.edu
> > > > > > Date: Thu, 8 May 2003 19:27:14 +0200
> > > > > > Subject: [Mapserver-users] Please Help me
> > > > > >
> > > > > > > Dear users,
> > > > > > > some time ago I have learned to build a mapserver powered
site
> > > > >
> > > > > (3.2
> > > > >
> > > > > > > version). In the last months I have not had the time to
"study"
> > > > >
> > > > > the
> > > > >
> > > > > > > new
> > > > > > > version and features of mapserver.
> > > > > > > Here is my problem. I have tried to build an update manifold
> > > > > >
> > > > > > powered
> > > > > >
> > > > > > > site.
> > > > > > > I have downloaded ms36gif_gdal_pg_wms.zip and ms35_libs.zip,
then
> > > > >
> > > > > I
> > > > >
> > > > > > > have
> > > > > > > extracted all files where they could be extracted and then I
have
> > > > > > > made a
> > > > > > > simple test; I have written simply this URL:
> > > > > > > http://127.0.0.1/cgi-bin/mapserv.exe?=C:
> > > > > > > \Inetpub\wwwroot\mapserver\test.map&mode=map.
> > > > > > > I have this error message: "CGI Error The specified CGI
> > > > >
> > > > > application
> > > > >
> > > > > > > misbehaved by not returning a complete set of HTTP headers.
The
> > > > > > > headers it
> > > > > > > did return are:"
> > > > > > > The file of the test url does not exist, but I remember that
with
> > > > > >
> > > > > > the
> > > > > >
> > > > > > > old
> > > > > > > versions I had an error message like "it's impossible to
access
> > > > >
> > > > > to
> > > > >
> > > > > > > the file
> > > > > > > ..." (or something similar), instead I have a generic strange
> > > > >
> > > > > error
> > > > >
> > > > > > > message
> > > > > > > and I think there is something strong in my mapserver
> > > > >
> > > > > installation.
> > > > >
> > > > > > > Do you have some tip or advice for me?
> > > > > > >
> > > > > > > I have winxp pro with IIS.
> > > > > > >
> > > > > > >
> > > > > > > Thank you very much,
> > > > > > >
> > > > > > > Andrea
> > > > > > >
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > Mapserver-users mailing list
> > > > > > > Mapserver-users at lists.gis.umn.edu
> > > > > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > > > > >
> > > > > > Få en gratis emailkonto her: www.mail-online.dk
> > > > > > -----------------------------------------------
> > > > > > Deltag i en lille brugerundersøgelse på
> > > > > > nettet, og vind et gavekort på 50.000 kroner..!
> > > > > > www.directoffice.dk/konkurrence
> > > > >
> > > > > Få en gratis emailkonto her: www.mail-online.dk
> > > > > -----------------------------------------------
> > > > > Deltag i en lille brugerundersøgelse på
> > > > > nettet, og vind et gavekort på 50.000 kroner..!
> > > > > www.directoffice.dk/konkurrence
> > > >
> > > > Få en gratis emailkonto her: www.mail-online.dk
> > > > -----------------------------------------------
> > > > Deltag i en lille brugerundersøgelse på
> > > > nettet, og vind et gavekort på 50.000 kroner..!
> > > > www.directoffice.dk/konkurrence
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Mapserver-users mailing list
> > > > Mapserver-users at lists.gis.umn.edu
> > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > >
> > > --
> > > ______________________________________
> > > Vincent Schut
> > > Sarvision B.V.
> > > Wageningen, The Netherlands
> > > www.sarvision.com
> >
> > --
> > ______________________________________
> > Vincent Schut
> > Sarvision B.V.
> > Wageningen, The Netherlands
> > www.sarvision.com
>
> --
> ______________________________________
> Vincent Schut
> Sarvision B.V.
> Wageningen, The Netherlands
> www.sarvision.com
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
--
-----------------------------------------------------------
Michael Schulz in medias res
Dipl.-Geologe Gesellschaft für
Informationstechnologie mbH
Sautierstr. 38, 79104 Freiburg
0761 55695-95 (Fax 96)
mschulz at webgis.de www.webgis.de
More information about the MapServer-users
mailing list