<div dir="ltr"><div><div><div><div><div><div>You should create a webapp empty with a web.xml on a WEB-INF folder as usual.<br></div>After this you <br><br></div>in the WEB-INF you create a cgi folder and refer it in the webxml.<br>
<br>name it as example:<br><br>"WEB-INF/cgi-folder-for-mapserver"<br><br>copy in it the executable "mapserv"<br><br>in the web.xml put something like this:<br><br><br>  <servlet><br>    <servlet-name>cgi-mapserver</servlet-name><br>
    <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class><br>    <init-param><br>      <param-name>debug</param-name><br>      <param-value>0</param-value><br>    </init-param><br>
    <init-param><br>      <param-name>cgiPathPrefix</param-name><br>      <param-value>WEB-INF/cgi-folder-for-mapserver</param-value><br>    </init-param><br>    <init-param><br>      <param-name>executable</param-name><br>
      <param-value></param-value><br>    </init-param><br>    <init-param><br>      <param-name>passShellEnvironment</param-name><br>      <param-value>true</param-value><br>
    </init-param><br>    <load-on-startup>5</load-on-startup><br>  </servlet><br><br>  <servlet-mapping><br>    <servlet-name>cgi-mapserver</servlet-name><br>    <url-pattern>/cgi-or-whatyou-want</url-pattern><br>
  </servlet-mapping><br>  <servlet-mapping><br>    <servlet-name>cgi-mapserver</servlet-name><br>    <url-pattern>/cgi-or-whatyou-want/*</url-pattern><br>  </servlet-mapping><br><br>
</div><div>Pay attention to the passShellEnvironment set to true otherwise the mapserver don't see the environments variables.<br><br></div><div></div>The same configuration more or less work for <br></div>tinyows (we use also it usually with tomcat )<br>
</div>and for qgis-server (we use it also)<br><br></div>Regards<br><div><br></div><div>Andrea Peri<br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/19 maven apache <span dir="ltr"><<a href="mailto:apachemaven0@gmail.com" target="_blank">apachemaven0@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Andrea Peri:<div><br></div><div>Can you give me more details about how to setup the environment? </div>
<div><br>I have read the documents, but I have not find too many about J2EE.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">

<br><br><div class="gmail_quote">2013/7/19 Andrea Peri <span dir="ltr"><<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr"><div><div><div>Surely yes.<br><br></div>We are using a mapserver with a tomcat environment.<br></div><div>You must set the servlet-cgi.<br><br></div><div>We use it without the fastcgi option.<br></div><div>


<br>
</div><div></div></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/19 maven apache <span dir="ltr"><<a href="mailto:apachemaven0@gmail.com" target="_blank">apachemaven0@gmail.com</a>></span><br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi:<div><br></div><div>I am trying to create a OGC WMS service using the J2EE, however we can not use something like GeoServer since it use the SLD to render the map while we use ESRI ArcGIS to render the map. Then we have the mxd file.</div>





<div><br></div><div>Then I post a question at <a href="http://gis.stackexchange.com/questions/66374/is-it-possible-to-create-ogc-wms-service-based-on-the-arcgis-mxd-file-and-data-i" target="_blank">gis.stackexchange.com</a>, to ask for help. </div>





<div><br></div><div>And someone tell me I can use Map Server.</div><div><br></div><div>So I wonder if this is possible?</div></div>
<br></div></div>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br>
</font></span></div>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br>
</div>