RE: How to set up CGI servlet in code?
Chris Bailey <chris <at> codeintensity.com>
2002-12-02 04:59:30 GMT
Oh, sorry, there is no stacktrace.
I guess I'll have to see if I can get it working with an XML config file
since I've seen examples of that, and then try to see how that differs.
> -----Original Message-----
> From: Greg Wilkins [mailto:gregw <at> mortbay.com]
> Sent: Sunday, December 01, 2002 4:53 PM
> To: Chris Bailey
> Cc: jetty-support <at> yahoogroups.com
> Subject: Re: [jetty-support] How to set up CGI servlet in code?
>
>
>
> And that ServletException is????? (stack trace etc.)
>
> cheers
>
>
> Chris Bailey wrote:> Delayed reaction :) I turned on -DDEBUG and
> what I see is that the response
> > is a ServletException. The GET looks ok, and the CGI is in
> place. I must
> > have the configuration of the servlet wrong somehow?
> >
> >
> >>-----Original Message-----
> >>From: Greg Wilkins [mailto:gregw <at> mortbay.com]
> >>Sent: Tuesday, November 19, 2002 12:48 AM
> >>To: jetty-support <at> yahoogroups.com; chris <at> codeintensity.com
> >>Subject: Re: [jetty-support] How to set up CGI servlet in code?
> >>
> >>
> >>
> >>Is there an exception that comes with that 503?
> >>Can you turn debug on and see one?
> >>
> >>cheers
> >>
> >>
> >>Chris Bailey wrote:> I seem to not understand how to set up the
> >>CGI servlet in code (as opposed
> >>
> >>>to an XML config file). I have a "cgi-bin" directory off my
> >>
> >>web app's root
> >>
> >>>directory. In that I have a few .cgi files (mostly Perl
> >>
> >>scripts, but some
> >>
> >>>shell scripts). This is on Linux, Jetty 4.2.1.
> >>>
> >>>I essentially have:
> >>>
> >>>server.addContext("/cgi-bin/*");
> >>>context.addServlet("CGI", "*.cgi", "org.mortbay.servlet.CGI");
> >>>
> >>>I try to use URL's like: http://mydomain/cgi-bin/cgifilename.cgi
> >>>
> >>>I get a 503. I've tried other context and pathspec settings,
> but having
> >>>found a successful combo yet. Can someone show me the correct
> >>
> >>way to code
> >>
> >>>this?
> >>>
> >>>__
> >>>Chris Bailey mailto:chris <at> codeintensity.com
> >>>Code Intensity http://www.codeintensity.com
> >>>
> >>>
> >>>------------------------ Yahoo! Groups Sponsor
> ---------------------~-->
> >>>Get 128 Bit SSL Encryption!
> >>>http://us.click.yahoo.com/JjlUgA/vN2EAA/xGHJAA/CefplB/TM
> >>>---------------------------------------------------------------
> ------~->
> >>>
> >>>For the latest information about Jetty, please see
> >>
> > http://jetty.mortbay.org
> >
> >>
> >>
> >>Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
>>
>
>
>
>
> --
> Greg Wilkins<gregw <at> mortbay.com> Phone/fax: +44 7092063462
> Mort Bay Consulting Australia and UK. http://www.mortbay.com
>
--
Greg Wilkins<gregw <at> mortbay.com> Phone/fax: +44 7092063462
Mort Bay Consulting Australia and UK. http://www.mortbay.com
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/CefplB/TM
---------------------------------------------------------------------~->
For the latest information about Jetty, please see http://jetty.mortbay.org
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/