tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: CGI on Tomcat 5.5.28
Date Mon, 07 Dec 2009 20:48:54 GMT
nicoli wrote:
> Hi,
> 
> I have installed Tomcat 5.5.28 on my Windows XP computer.
> I did all recommended changes to a web.xml:
> - uncommented 
>     <servlet>
>         <servlet-name>cgi</servlet-name>
>        
> <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
>         <init-param>
>           <param-name>debug</param-name>
>           <param-value>0</param-value>
>         </init-param>
>         <init-param>
>           <param-name>cgiPathPrefix</param-name>
>           <param-value>WEB-INF/cgi</param-value>
>         </init-param>
>         <init-param>
>           <param-name>executable</param-name>
>           <param-value>perl</param-value>
>         </init-param>
>          <load-on-startup>5</load-on-startup>
>     </servlet>
> 
> 
>     <servlet>
>         <servlet-name>ssi</servlet-name>
>         <servlet-class>
>           org.apache.catalina.ssi.SSIServlet
>         </servlet-class>
>         <init-param>
>           <param-name>buffered</param-name>
>           <param-value>1</param-value>
>         </init-param>
>         <init-param>
>           <param-name>debug</param-name>
>           <param-value>0</param-value>
>         </init-param>
>         <init-param>
>           <param-name>expires</param-name>
>           <param-value>666</param-value>
>         </init-param>
>         <init-param>
>           <param-name>isVirtualWebappRelative</param-name>
>           <param-value>0</param-value>
>         </init-param>
>         <load-on-startup>4</load-on-startup>
>     </servlet>
> 
>     <!-- The mapping for the SSI servlet -->
> 
>     <servlet-mapping>
>         <servlet-name>ssi</servlet-name>
>         <url-pattern>*.shtml</url-pattern>
>     </servlet-mapping>
> 
> 
>     <!-- The mapping for the CGI Gateway servlet -->
> 
> 
>     <servlet-mapping>
>         <servlet-name>cgi</servlet-name>
>         <url-pattern>/cgi-bin/*</url-pattern>
>     </servlet-mapping>
> 
> Renamemed $CATALINA_BASE/server/lib/servlets-cgi.renametojar to
> $CATALINA_BASE/server/lib/servlets-cgi.jar.
> 
> But when I'm trying to execute cgi module from IE, it doesn't recognize it
> as executable.

What does it do then ?
What is the URL you are using in the browser ?
Where is your cgi script (on disk) ?
Is Perl installed on your computer ?
If yes, is it in the PATH (for Tomcat) ?
What if you replace the above
 >         <init-param>
 >           <param-name>executable</param-name>
 >           <param-value>perl</param-value>
 >         </init-param>
by
 >         <init-param>
 >           <param-name>executable</param-name>
 >           <param-value>c:/perl/bin/perl.exe</param-value>
 >         </init-param>
(or wherever perl.exe really is)



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message