[Mapserver-users] "mapserv(): Web application error. No template provided."

Jason Ruiter Jason.Ruiter at altarum.org
Tue Aug 26 10:36:56 EDT 2003


Greetings,

I'm new to mapserver and am trying to get mapserver 4.0 working.  I'm 
trying to run through the tutorial.  I've modified all of the paths, and 
some of the pages (for instance, s1ex1.html) work.  The rest of the 
time, tho, I get:

"mapserv(): Web application error. No template provided."

I've tried this is mapserver36 and mapserver4.  I've attached my 
mapserver configuration, the html file in question and the map file in 
question.

Any help appreciated...

Thanks
Jason

---------------------------

My mapserver4 configuration:

/usr/lib/cgi-bin$ ./mapserv -v
MapServer version 4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT 
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7 
INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE


The HTML file:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>MapServer 3.5 Tutorial</title>
<link type="text/css" rel="stylesheet" 
href="/projects/tutorial35/ms35.css" />
</head>

<body bgcolor="#ffffff">

<h3>Section 1<br>
Example 2 ? A Single Layer with Multiple Classes</h3>

<p><strong>Description:</strong><br>
   This example shows you how to create a static web map from a single 
data layer.&nbsp;
   The layer is shown with three classes, one for each state-- Michigan, 
Minnesota,
   and Wisconsin.</p>
<p>Sometimes (most of the time, actually) we like to break our data 
layer into
   logical &quot;classes&quot; based on an attribute (or set of 
attributes). Say

   we want to show each state in Big Ten college athletics colors, if 
for no other
   reason. (Apologies to Michigan State and to those who prefer maroon. Have
   a look at the map file listing to see how it's done.</p>


<p>[<a href="s1ex2_map.html">Map File Listing</a>]<br>
<img border="1"
src="/cgi-bin/mapserv?map=/var/www/projects/tutorial35/s1/s1ex2.map&amp;mode=map">
</p>

<p><a href="index.html">Back to Section 1</a> | <a 
href="/projects/tutorial35/s1/s1ex3.html">Proceed
   to Example 3 </a> </p>
</body>
</html>
NAME S1EX2
EXTENT -97.238976 41.619778 -82.122902 49.38562
SIZE 400 300
SHAPEPATH "/var/www/projects/tutorial35/data"
LAYER # States
   NAME "states"
   DATA states_ugl
   STATUS DEFAULT
   TYPE POLYGON
   CLASSITEM "STATE"
   CLASS # Michigan class
     NAME "Michigan"
     EXPRESSION "Michigan"
     COLOR 0 0 128
     OUTLINECOLOR 0 0 0
   END # end of Michigan class object
   CLASS # Minnesota class
     NAME "Minnesota"
     EXPRESSION "Minnesota"
     COLOR 255 255 0
     OUTLINECOLOR 0 0 0
   END # end of Minnesota class object
   CLASS # Wisconsin class
     NAME "Wisconsin"
     EXPRESSION "Wisconsin"
     COLOR 255 0 0
     OUTLINECOLOR 0 0 0
   END # end of Wisconsin class object
END # end of layer object
END # end of map file



-------The map file-----------


-- 
Jason Ruiter
Research Computer Engineer, Emerging Technologies Group
Altarum Institute
Ann Arbor, Michigan, USA
(v)734.302.4724 (f)734.302.4991 (m)734.476.8299
Jason.Ruiter at Altarum.org

-- 
Jason Ruiter
Research Computer Engineer, Emerging Technologies Group
Altarum Institute
Ann Arbor, Michigan, USA
(v)734.302.4724 (f)734.302.4991 (m)734.476.8299
Jason.Ruiter at Altarum.org




More information about the mapserver-users mailing list