cgi implementation on unix

Hi there,

i read one article on this site and was really impressed by the way things were explained. so gr8 job ! :)

i am currently facing a problem in cgi implementation of a unix executable using tomcat.

i create a folder structure webapps-->test-->WEB-INF-->cgi + web.xml. this cgi folder has the unix executable called demo.

the web.xml looks like this :

cgi
org.apache.catalina.servlets.CGIServlet

debug
0

cgiPathPrefix
WEB-INF/cgi

passShellEnvironment
true

executable
/bin/ksh

5

cgi
/cgi-bin/*

but while executing i am getting http status 404 error : resource not found..

so can anyone please help me with this as to where am i going wrong....

thanks in advance

-Preeti

Geek Guide
The DevOps Toolbox

Tools and Technologies for Scale and Reliability
by Linux Journal Editor Bill Childers

Get your free copy today

Sponsored by IBM

Webcast
8 Signs You're Beyond Cron

Scheduling Crontabs With an Enterprise Scheduler
On Demand
Moderated by Linux Journal Contributor Mike Diehl

Sign up and watch now

Sponsored by Skybot