Re: CGI script to work on Tomcat

2014-06-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 6/21/14, 9:46 AM, André Warnier wrote: > Christopher Schultz wrote: >> The OP. Look up in the configuration: the "executable" is set to >> "perl". > > That's just the default, as it comes in the standard Tomcat > distribution. See also

Re: CGI script to work on Tomcat

2014-06-21 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 6/20/14, 6:19 PM, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rahul, On 6/20/14, 3:10 PM, Rahul R wrote: This is from my conf/web.xml cgi org.apache.c

Re: CGI script to work on Tomcat

2014-06-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 6/20/14, 7:59 PM, David Kerber wrote: > On 6/20/2014 6:19 PM, André Warnier wrote: > > ... > >>> Finally, if the Perl script isn't that complicated, you should >>> consider re-writing it in Java since you are using a Java >>> applicatio

Re: CGI script to work on Tomcat

2014-06-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 6/20/14, 6:19 PM, André Warnier wrote: > Christopher Schultz wrote: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 >> >> Rahul, >> >> On 6/20/14, 3:10 PM, Rahul R wrote: >>> This is from my conf/web.xml >>> >>> cgi >>> >>> org.apa

Re: CGI script to work on Tomcat

2014-06-20 Thread David Kerber
On 6/20/2014 6:19 PM, André Warnier wrote: ... Finally, if the Perl script isn't that complicated, you should consider re-writing it in Java since you are using a Java application server. It will be much easier to deal with everything that way. Who said that the cgi-bin script was perl ? (no

Re: CGI script to work on Tomcat

2014-06-20 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rahul, On 6/20/14, 3:10 PM, Rahul R wrote: This is from my conf/web.xml cgi org.apache.catalina.servlets.CGIServlet debug 0 cgiPathPrefix WEB-INF/cgi passShellEnvironment true executable perl 5

Re: CGI script to work on Tomcat

2014-06-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rahul, On 6/20/14, 3:10 PM, Rahul R wrote: > This is from my conf/web.xml > > cgi > > org.apache.catalina.servlets.CGIServlet > > > debug 0 > cgiPathPrefix > WEB-INF/cgi > passShellEnvironment > true > executable > perl > > 5 >

Re: CGI script to work on Tomcat

2014-06-20 Thread Rahul R
This is from my conf/web.xml cgi org.apache.catalina.servlets.CGIServlet debug 0 cgiPathPrefix WEB-INF/cgi passShellEnvironment true executable perl 5

Re: CGI script to work on Tomcat

2014-06-20 Thread André Warnier
Rahul R wrote: More info: http://localhost:8180/toggle_read.html is html. But after using in the html the url loading is http://localhost:8180/read_toggle.cgi and again its giving 404 error. :( Are you listening to what you are told ? Did you read https://tomcat.apache.org/tomcat-7.0-doc/cgi-

Re: CGI script to work on Tomcat

2014-06-20 Thread Rahul R
More info: http://localhost:8180/toggle_read.html is html. But after using in the html the url loading is http://localhost:8180/read_toggle.cgi and again its giving 404 error. :( On Fri, Jun 20, 2014 at 5:59 PM, Rahul R wrote: > Thanks Mark for your suggestion. But by privileged, did you mean

Re: CGI script to work on Tomcat

2014-06-20 Thread Rahul R
Thanks Mark for your suggestion. But by privileged, did you mean to add an entry like below on context.xml? On Fri, Jun 20, 2014 at 5:46 PM, Mark Thomas wrote: > On 20/06/2014 12:49, Rahul R wrote: > > Hi > > > > I am trying to migrate something which was working under apache to > tomcat.

Re: CGI script to work on Tomcat

2014-06-20 Thread Mark Thomas
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

CGI script to work on Tomcat

2014-06-20 Thread Rahul R
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 40