404 returned trying to find Perl script

2008-03-07 Thread Doug.Thomas
I have a form that sends its data to a Perl script under Tomcat 6.0.16.
I get an error message The requested resource
(/perlTest/WEB-INF/cgi-bin/form.pl) is not available. The form.pl file
is, in fact, in that folder. I'm running Windows XP. Permissions have
been set properly (using Cygwin chmod) to 0755.

I just upgraded to Tomcat 6.0.16. I used to have my perl scripts in the
cgi-bin folder under the root context. I see now the cgi-bin folder has
been moved to 'WEB-INF'.

This is reflected in %CATALINA_HOME%/conf/web.xml in an init-param
element as follows:

init-param
  param-namecgiPathPrefix/param-name
  param-valueWEB-INF/cgi/param-value
/init-param

in the cgi servlet definition.

The servlet-mapping element appears as follows:

servlet-mapping
servlet-namecgi/servlet-name
url-pattern/cgi-bin/*/url-pattern
/servlet-mapping

I tried the old method of putting the script in cgi-bin under the root
context, but that also failed.

Any ideas?

Doug


-
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: 404 returned trying to find Perl script

2008-03-07 Thread Mark Thomas

[EMAIL PROTECTED] wrote:

I have a form that sends its data to a Perl script under Tomcat 6.0.16.
I get an error message The requested resource
(/perlTest/WEB-INF/cgi-bin/form.pl) is not available. The form.pl file
is, in fact, in that folder. I'm running Windows XP. Permissions have
been set properly (using Cygwin chmod) to 0755.

I just upgraded to Tomcat 6.0.16. I used to have my perl scripts in the
cgi-bin folder under the root context. I see now the cgi-bin folder has
been moved to 'WEB-INF'.

This is reflected in %CATALINA_HOME%/conf/web.xml in an init-param
element as follows:

init-param
  param-namecgiPathPrefix/param-name
  param-valueWEB-INF/cgi/param-value
/init-param

in the cgi servlet definition.


Your script should therefore be in /perlTest/WEB-INF/cgi/form.pl


The servlet-mapping element appears as follows:

servlet-mapping
servlet-namecgi/servlet-name
url-pattern/cgi-bin/*/url-pattern
/servlet-mapping


And you should request it using:
cgi-bin/form.pl


Mark

-
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: 404 returned trying to find Perl script

2008-03-07 Thread Doug.Thomas
That worked. Thanks!

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2008 1:33 PM
To: Tomcat Users List
Subject: Re: 404 returned trying to find Perl script

[EMAIL PROTECTED] wrote:
 I have a form that sends its data to a Perl script under Tomcat
6.0.16.
 I get an error message The requested resource
 (/perlTest/WEB-INF/cgi-bin/form.pl) is not available. The form.pl
file
 is, in fact, in that folder. I'm running Windows XP. Permissions have
 been set properly (using Cygwin chmod) to 0755.
 
 I just upgraded to Tomcat 6.0.16. I used to have my perl scripts in
the
 cgi-bin folder under the root context. I see now the cgi-bin folder
has
 been moved to 'WEB-INF'.
 
 This is reflected in %CATALINA_HOME%/conf/web.xml in an init-param
 element as follows:
 
 init-param
   param-namecgiPathPrefix/param-name
   param-valueWEB-INF/cgi/param-value
 /init-param
 
 in the cgi servlet definition.

Your script should therefore be in /perlTest/WEB-INF/cgi/form.pl
 
 The servlet-mapping element appears as follows:
 
 servlet-mapping
 servlet-namecgi/servlet-name
 url-pattern/cgi-bin/*/url-pattern
 /servlet-mapping

And you should request it using:
cgi-bin/form.pl


Mark

-
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]