Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Trouble with CGI

On Thu, Apr 9, 2015 at 6:14 PM, Tim Halloran <hallorant@xxxxxxxxx> wrote:
On Thu, Apr 9, 2015 at 3:20 PM, Simone Bordet <sbordet@xxxxxxxxxxx> wrote:
Hi,

On Thu, Apr 9, 2015 at 9:15 PM, Tim Halloran <hallorant@xxxxxxxxx> wrote:
> Hi,
>
> I'm trying to get Bugzilla running in Jetty via a "bugzilla.xml" file in the
> webapp directory. Below lists my attempt:

Please don't use the CGI servlet, but rather the FastCGI integration
that we have.
https://www.eclipse.org/jetty/documentation/current/fastcgi.html

Let us know if you succeed.

Thanks Simone this helped at bit. I've had some success -- I've gotten it working under CGI for now. Setting up php-fpm is a bit of a long term project for me.

The key "ahh ha" for me was that the module "servlets" is required in my server configuration

   java -jar ../jetty.home/start.jar --add-to-startd=servlets

The modules can be confusing, there is little to motivate one over the other (I find myself trying to take ones out to see if I really need them). It might be nice to determine what module "enables" a class (notionally 'java -jar ../jetty.home/start.jar --list-module-with-class=org.eclipse.jetty.servlets.CGI' which would answer 'servlets' -- to help figure this out, I used jar tvf in the lib directory then --list-modules -- so it can be done).

Interesting idea, added an enhancement request at https://bugs.eclipse.org/bugs/show_bug.cgi?id=464342

Note however, that the module name can often be guessed properly from the package name pattern org.eclipse.jetty.<module>
So you could have just looked at the FQCN of org.eclipse.jetty.servlets.CGI and saw that it was servlets that you needed.

 - Joakim

Back to the top