Hi, 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" " http://www.eclipse.org/jetty/configure_9_0.dtd"> <Configure class="org.eclipse.jetty.servlet.ServletContextHandler"> <Set name="contextPath">/bugzilla</Set> <Set name="resourceBase">/../../git/bugzilla/html</Set> <Call name="addServlet"> <Arg>org.eclipse.jetty.servlets.CGI</Arg> <Arg>*.cgi</Arg> <Call name="setInitParameter"> <Arg>Path</Arg> <Arg>/usr/local/bin:/bin:/usr/bin</Arg> </Call> </Call> </Configure> 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 at java.net.URLClassLoader.findClass(URLClassLoader.java:381) (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" " http://www.eclipse.org/jetty/configure_9_0.dtd"> <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> </New> </Set> </Configure> Any thoughts? Many thanks! Best, Tim
_______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
