>Could you face (again) with right access issue related to tomcat user ?<br>
<br>No, this time I'm sure the user has access right to files :)<br><br>>Could you give a try with default config file path, i.e /etc/tinyows.xml ?<br>
<br>I do some tests.<br>I guess the issue was to access the Environment variables from cgi in tomcat.<br>So to avoid (and verify) this .<br>I modify the code of tinyows and put hardcode in "ows.c" the value for config_file.<br>
this is the code I change.<br><br> /* Config Files */<br>(add this) --> buffer_add_str(o->config_file, "/home/archivio/tomcat/server/tinyows-settings/config.xml");<br>/* if (getenv("TINYOWS_CONFIG_FILE")) {<br>
buffer_add_str(o->config_file, getenv("TINYOWS_CONFIG_FILE"));<br> } else if (getenv("TINYOWS_MAPFILE")) {<br> buffer_add_str(o->config_file, getenv("TINYOWS_MAPFILE"));<br>
o->mapfile = true;<br> } else<br> buffer_add_str(o->config_file, OWS_CONFIG_FILE_PATH);<br>*/<br><br>But still nothing change .<br>So I can say that the issue is not to access the config_file.<br><br>
Now try to use <br><br>/etc/tinyows.xml<br><br>...<br><br><br><div class="gmail_quote">2011/9/1 Olivier Courtin <span dir="ltr"><<a href="mailto:olivier.courtin@gmail.com">olivier.courtin@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Wed, Aug 31, 2011 at 11:40 PM, Andrea Peri <<a href="mailto:aperi2007@gmail.com">aperi2007@gmail.com</a>> wrote:<br>
<br>
Andrea,<br>
<br>
> I tested the r604.<br>
> [...] work great with Apache.<br>
<br>
Goodie !<br>
And thanks for report and tests !<br>
<div class="im"><br>
><br>
> Unfortunately again with tomcat I have the same trouble: :(<br>
><br>
> INFO: cgi-tinyows: runCGI (stderr):Unrecognized character \x7F in column 1<br>
<br>
</div><div class="im">> I guess the problem is to pass the environment variable<br>
> TINYOWS_CONFIG_FILE<br>
><br>
> But apparently it is passed infact I can check the environment variables are<br>
> passed to a cgi standard (in tomcat)<br>
> I have used the same "printenv" cgi from apache .<br>
> It report me that the CGI is see-ing all the variables of environment<br>
> (tinyows_config_file too).<br>
><br>
> ----<br>
><br>
> ....<br>
> TERM="xterm"<br>
> TINYOWS_CONFIG_FILE="/home/archivio/tomcat/server/tinyows-settings/config.xml"<br>
> USER="tomcat"<br>
> XFILESEARCHPATH="/usr/dt/app-defaults/%L/Dt"<br>
> X_TOMCAT_SCRIPT_PATH="/home/archivio/tomcat/tomcat-website/webapps/geoportale/WEB-INF/cgi-tiny/printenv"<br>
> _="/usr/local/java/jdk1.6.0_26/bin/java"<br>
<br>
</div>Could you give a try with default config file path, i.e /etc/tinyows.xml ?<br>
Could you face (again) with right access issue related to tomcat user ?<br>
<br>
<br>
If someone else already experienced Tomcat CGI and TinyOWS, don't be shy :)<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Olivier<br>
_______________________________________________<br>
TinyOWS-users mailing list<br>
<a href="mailto:TinyOWS-users@lists.maptools.org">TinyOWS-users@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/tinyows-users" target="_blank">http://lists.maptools.org/mailman/listinfo/tinyows-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br><br>