Skip to main content

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


I'm trying to get Bugzilla running in Jetty via a "bugzilla.xml" file in the webapp directory. Below lists my attempt:

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "">

<Configure class="org.eclipse.jetty.servlet.ServletContextHandler">
  <Set name="contextPath">/bugzilla</Set>
  <Set name="resourceBase">/../../git/bugzilla/html</Set>
  <Call name="addServlet">
    <Call name="setInitParameter">

This fails with the below -- so I believe I'm missing something basic here.

{ps416375:~/website/jetty.base}java -jar ../jetty.home/start.jar etc/jetty-surelogic.xml
2015-04-09 11:58:39.608:INFO::main: Logging initialized @514ms
2015-04-09 11:58:39.880:INFO:oejs.Server:main: jetty-9.2.10.v20150310
2015-04-09 11:58:39.905:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:/home/surelogic/website/jetty.base/webapps/] at interval 1
2015-04-09 11:58:39.960:WARN:oejs.BaseHolder:main:
java.lang.ClassNotFoundException: org.eclipse.jetty.servlets.CGI
(and so on)

I'm on jetty-distribution-9.2.10.v20150310 (on Oracle Java 1.8.0_40 on Linux)

Jetty Active Module Tree:
 + Module: ext [enabled]
   + Module: server [enabled]
     + Module: http [enabled]
     + Module: jndi [enabled]
     + Module: security [enabled]
     + Module: servlet [enabled]
       + Module: webapp [enabled]
         + Module: deploy [enabled]
         + Module: plus [enabled]

The idea is to set this up similar to a static content link, the below "webapp/static.xml" works okay for me:

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "">

<Configure class="org.eclipse.jetty.server.handler.ContextHandler">
  <Set name="contextPath">/static</Set>
  <Set name="handler">
    <New class="org.eclipse.jetty.server.handler.ResourceHandler">
      <Set name="resourceBase">../static</Set>
      <Set name="directoriesListed">true</Set>

Any thoughts?  Many thanks!


Back to the top