Thanks Mark for your suggestion. But by privileged, did you mean to add an entry like below on context.xml?
<Context privileged="true"> </Context> On Fri, Jun 20, 2014 at 5:46 PM, Mark Thomas <ma...@apache.org> wrote: > On 20/06/2014 12:49, Rahul R wrote: > > Hi > > > > I am trying to migrate something which was working under apache to > tomcat. > > I had an html form which takes user input values and pass those values > and > > executes some cgi scripts. But when I moved html and cgi under tomcat, > the > > html form is loading properly, but when I click submit, its giving 404 > > error for the cgi execution. > > > > I have my html files under ROOT and cgi scripts under ROOT/WEB-INF/cgi > > Tomcat Version: 7.0.54 > > > > And in my html form I have mentioned the cgi location as > > <action='./WEB-INF/cgi/read_toggle.cgi'> > > > > I followed the steps mentioned in the below url. > > > > > http://www.wellho.net/solutions/java-running-cgi-scripts-in-apache-tomcat.html > > > > I don't see anything in the catalina.out or any other logs. Kindly me > help > > to fix this issue. > > Try using the real Tomcat documentation rather than some random Google > result that doesn't even bother to mention which version of Tomcat it > was written for (hint: it wasn't written for Tomcat 7). > > Given how you have configured Tomcat, the behaviour you are seeing is > exactly as expected. If you want your script to work with the minimum of > changes you need to: > - Make your web application privileged > - Use <action='./read_toggle.cgi'> > > Mark > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Thanks, Regards, Rahul R .~. /V\ // \\ /( )\ ^`~'^ Mob: 09008030921