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 3:20 PM, Simone Bordet <sbordet@xxxxxxxxxxx> wrote:

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.

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).

Then I was able to use the following to make Bugzilla work property at /bugzilla with the listing below in webapps/bugzilla.xml -- which is an edit of the example you linked me to.

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "">
<Configure class="org.eclipse.jetty.servlet.ServletContextHandler">

  <New id="root" class="java.lang.String">

  <Set name="contextPath">/bugzilla</Set>
  <Set name="resourceBase">
    <Ref refid="root" />
  <Set name="welcomeFiles">
    <Array type="string">

  <Call name="addServlet">
      <New class="org.eclipse.jetty.servlet.ServletHolder">
          <Call name="forName" class="java.lang.Class">
        <Call name="setInitParameter">

  <Call name="addServlet">
    <Call name="setInitParameter">


Thanks much for the help!


Simone Bordet
Developer advice, training, services and support
from the Jetty & CometD experts.
Intalio, the modern way to build business applications.
jetty-users mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top