Re: Perl CGI setup
sorry got it. Thanks for your assistance. Thanks, On Fri, Apr 11, 2008 at 1:11 PM, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: Shabu Khan [mailto:[EMAIL PROTECTED] > > Subject: Re: Perl CGI setup > > > > > http://myhost:8080/WEB-INF/cgi/web_xml_mon.pl?qa-1 > > returns > > - > > HTTP Status 404 - /WEB-INF/cgi/web_xml_mon.pl > > You're not reading or following the advice Hassan and I have been giving > you. Read it again: > > > > > It's the URL you're using that's broken. Just take out > > > the /WEB-INF and leave the rest as is. > > If you take the /WEB-INF out of the URL you're trying to submit, it > should work. > > > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Shabu Khan | Mentis Systems Inc | W: (425) 649-1130 | C: (425) 301-1948 | F: (425) 256-2819 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Perl CGI setup
I know at least Chuck has already responded, but it may need to be emphasized even more. Tomcat will not allow clients to directly request _ANYTHING_ from the WEB-INF directory. This is per the servlet spec. --David Shabu Khan wrote: Thanks Charles. I put it back: cgi /cgi/* and restarted tomcat, we are still back to the same problem. http://myhost:8080/WEB-INF/cgi/web_xml_mon.pl?qa-1 returns - HTTP Status 404 - /WEB-INF/cgi/web_xml_mon.pl type Status report message /WEB-INF/cgi/web_xml_mon.pl description The requested resource (/WEB-INF/cgi/web_xml_mon.pl) is not available. Apache Tomcat/4.1.37-LE-jdk1.4 - On Fri, Apr 11, 2008 at 12:39 PM, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: From: Shabu Khan [mailto:[EMAIL PROTECTED] > Subject: Re: Perl CGI setup > if my scripts/configs are in $CATALINA_HOME/webapps/ROOT/WEB-INF/cgi > directory, what should the url-pattern be? > http://myhostname.FQDN:8080/WEB-INF/cgi/web_xml_mon.pl?qa-1 Your is fine - all that does is select the servlet to pass the request to. It's the URL you're using that's broken. Just take out the /WEB-INF and leave the rest as is. TGIF - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Perl CGI setup
> From: Shabu Khan [mailto:[EMAIL PROTECTED] > Subject: Re: Perl CGI setup > > http://myhost:8080/WEB-INF/cgi/web_xml_mon.pl?qa-1 > returns > - > HTTP Status 404 - /WEB-INF/cgi/web_xml_mon.pl You're not reading or following the advice Hassan and I have been giving you. Read it again: > > It's the URL you're using that's broken. Just take out > > the /WEB-INF and leave the rest as is. If you take the /WEB-INF out of the URL you're trying to submit, it should work. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Perl CGI setup
Thanks Charles. I put it back: cgi /cgi/* and restarted tomcat, we are still back to the same problem. http://myhost:8080/WEB-INF/cgi/web_xml_mon.pl?qa-1 returns - HTTP Status 404 - /WEB-INF/cgi/web_xml_mon.pl type Status report message /WEB-INF/cgi/web_xml_mon.pl description The requested resource (/WEB-INF/cgi/web_xml_mon.pl) is not available. Apache Tomcat/4.1.37-LE-jdk1.4 - On Fri, Apr 11, 2008 at 12:39 PM, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: Shabu Khan [mailto:[EMAIL PROTECTED] > > Subject: Re: Perl CGI setup > > > > > if my scripts/configs are in $CATALINA_HOME/webapps/ROOT/WEB-INF/cgi > > directory, what should the url-pattern be? > > > > > http://myhostname.FQDN:8080/WEB-INF/cgi/web_xml_mon.pl?qa-1 > > Your is fine - all that does is select the servlet to pass > the request to. It's the URL you're using that's broken. Just take out > the /WEB-INF and leave the rest as is. > > TGIF > > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > - > > > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Shabu Khan | Mentis Systems Inc | W: (425) 649-1130 | C: (425) 301-1948 | F: (425) 256-2819 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Perl CGI setup
> From: Shabu Khan [mailto:[EMAIL PROTECTED] > Subject: Re: Perl CGI setup > > if my scripts/configs are in $CATALINA_HOME/webapps/ROOT/WEB-INF/cgi > directory, what should the url-pattern be? > > http://myhostname.FQDN:8080/WEB-INF/cgi/web_xml_mon.pl?qa-1 Your is fine - all that does is select the servlet to pass the request to. It's the URL you're using that's broken. Just take out the /WEB-INF and leave the rest as is. TGIF - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Perl CGI setup
Let me rephrase my question. if my scripts/configs are in $CATALINA_HOME/webapps/ROOT/WEB-INF/cgi directory, what should the url-pattern be? I tried: /WEB-INF/cgi/*.pl but I get the same error ... On Fri, Apr 11, 2008 at 12:06 PM, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > On Fri, Apr 11, 2008 at 11:45 AM, Shabu Khan <[EMAIL PROTECTED]> wrote: > > > > > > > cgi > > /cgi/* > > > > > > http://myhostname.FQDN:8080/WEB-INF/cgi/web_xml_mon.pl?qa-1 > > > > HTTP Status 404 - /WEB-INF/cgi/web_xml_mon.pl > > Yeah, you've specified a url-pattern of /cgi/* and then tried to access > something different -- that's a good reason to not work :-) > > -- > Hassan Schroeder [EMAIL PROTECTED] > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Shabu Khan | Mentis Systems Inc | W: (425) 649-1130 | C: (425) 301-1948 | F: (425) 256-2819 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Perl CGI setup
> From: Shabu Khan [mailto:[EMAIL PROTECTED] > Subject: Re: Perl CGI setup > > What should that url pattern value be in my scenario? What part of /WEB-INF/cgi doesn't match your declared ? (Hint: it's all caps.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Perl CGI setup
What should that url pattern value be in my scenario? On Fri, Apr 11, 2008 at 12:06 PM, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > On Fri, Apr 11, 2008 at 11:45 AM, Shabu Khan <[EMAIL PROTECTED]> wrote: > > > > > > > cgi > > /cgi/* > > > > > > http://myhostname.FQDN:8080/WEB-INF/cgi/web_xml_mon.pl?qa-1 > > > > HTTP Status 404 - /WEB-INF/cgi/web_xml_mon.pl > > Yeah, you've specified a url-pattern of /cgi/* and then tried to access > something different -- that's a good reason to not work :-) > > -- > Hassan Schroeder [EMAIL PROTECTED] > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Shabu Khan | Mentis Systems Inc | W: (425) 649-1130 | C: (425) 301-1948 | F: (425) 256-2819 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Perl CGI setup
On Fri, Apr 11, 2008 at 11:45 AM, Shabu Khan <[EMAIL PROTECTED]> wrote: > > > cgi > /cgi/* > > http://myhostname.FQDN:8080/WEB-INF/cgi/web_xml_mon.pl?qa-1 > HTTP Status 404 - /WEB-INF/cgi/web_xml_mon.pl Yeah, you've specified a url-pattern of /cgi/* and then tried to access something different -- that's a good reason to not work :-) -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]