diff --git a/apps/jetty/build.xml b/apps/jetty/build.xml index 9a04e2dec..b0f72eb0f 100644 --- a/apps/jetty/build.xml +++ b/apps/jetty/build.xml @@ -89,8 +89,11 @@ Reasons for inclusion: start.jar: Needed for clients.config startup of eepsites jetty-util-xxx.jar: LifeCycle (base class for stuff), URIUtil (used in i2psnark) - jetty-sslengine-xxx.jar: SSL NIO Connector for console - jetty-java5-threadpool-xxx.jar: Concurrent thread pool for eepsite + jetty-deploy, -http, -io, -security, -servlet, -webapp: All split out from main server jar in Jetty 7 + jetty-continuation-xxx.jar: Needed? Useful? + jetty-servlets-xxx.jar: Needed for CGI for eepsite + jetty-sslengine-xxx.jar: Old Jetty 6, now a dummy + jetty-java5-threadpool-xxx.jar: Old Jetty 6, now a dummy glassfish 2.1: Not used, too old, see Tomcat below. jetty-rewrite-handler: Not used by I2P, but only 20KB and could be useful for eepsites jetty-management: Not used by I2P, but only 34KB and could be useful for eepsites, and we bundled it with Jetty 5 diff --git a/apps/routerconsole/java/src/net/i2p/router/web/WebAppConfiguration.java b/apps/routerconsole/java/src/net/i2p/router/web/WebAppConfiguration.java index 65255da8d..17c5e3432 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/WebAppConfiguration.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/WebAppConfiguration.java @@ -38,15 +38,15 @@ import org.eclipse.jetty.webapp.WebAppContext; * @author zzz */ public class WebAppConfiguration implements Configuration { - private WebAppContext _wac; private static final String CLASSPATH = ".classpath"; /** - * This was the interface in Jetty 5, now it's configureClassLoader() + * This was the interface in Jetty 5, in Jetty 6 was configureClassLoader(), + * now it's configure() */ - private void configureClassPath() throws Exception { - String ctxPath = _wac.getContextPath(); + private void configureClassPath(WebAppContext wac) throws Exception { + String ctxPath = wac.getContextPath(); //System.err.println("Configure Class Path " + ctxPath); if (ctxPath.equals("/")) return; @@ -102,7 +102,7 @@ public class WebAppConfiguration implements Configuration { } if (buf.length() <= 0) return; - ClassLoader cl = _wac.getClassLoader(); + ClassLoader cl = wac.getClassLoader(); if (cl != null && cl instanceof WebAppClassLoader) { WebAppClassLoader wacl = (WebAppClassLoader) cl; wacl.addClassPath(buf.toString()); @@ -110,7 +110,7 @@ public class WebAppConfiguration implements Configuration { // This was not working because the WebAppClassLoader already exists // and it calls getExtraClasspath in its constructor // Not sure why WACL already exists... - _wac.setExtraClasspath(buf.toString()); + wac.setExtraClasspath(buf.toString()); } } @@ -130,13 +130,12 @@ public class WebAppConfiguration implements Configuration { /** @since Jetty 7 */ public void configure(WebAppContext context) throws Exception { - _wac = context; - configureClassPath(); + configureClassPath(context); } /** @since Jetty 7 */ public void cloneConfigure(WebAppContext template, WebAppContext context) { - throw new UnsupportedOperationException(); + // no state, nothing to be done } /** @since Jetty 7 */ diff --git a/build.xml b/build.xml index c68d8ac9c..39ac5dceb 100644 --- a/build.xml +++ b/build.xml @@ -1102,13 +1102,13 @@ - + - + diff --git a/installer/resources/eepsite/contexts/base-context.xml b/installer/resources/eepsite/contexts/base-context.xml index 4eaf2daea..015056ede 100644 --- a/installer/resources/eepsite/contexts/base-context.xml +++ b/installer/resources/eepsite/contexts/base-context.xml @@ -4,26 +4,20 @@ - + / ./eepsite/docroot/ - - - - - org.mortbay.jetty.servlet.Default.cacheControl - max-age=3600,public - - - + + cacheControl + max-age=3600,public - + sud application/zip @@ -40,7 +34,7 @@ to serve static html files and images. - org.mortbay.jetty.servlet.DefaultServlet + org.eclipse.jetty.servlet.DefaultServlet / diff --git a/installer/resources/eepsite/contexts/cgi-context.xml b/installer/resources/eepsite/contexts/cgi-context.xml index 4a0b0b6d2..b1920220a 100644 --- a/installer/resources/eepsite/contexts/cgi-context.xml +++ b/installer/resources/eepsite/contexts/cgi-context.xml @@ -22,21 +22,15 @@ Configure a custom context for the eepsite. * parameter value. --> - + /cgi-bin ./eepsite/cgi-bin/ - - - - - Path - /usr/local/bin:/bin:/usr/bin - - - + + Path + /usr/local/bin:/bin:/usr/bin - org.mortbay.servlet.CGI + org.eclipse.jetty.servlets.CGI / diff --git a/installer/resources/eepsite/etc/webdefault.xml b/installer/resources/eepsite/etc/webdefault.xml index e13916f10..d0a6f4bf6 100644 --- a/installer/resources/eepsite/etc/webdefault.xml +++ b/installer/resources/eepsite/etc/webdefault.xml @@ -35,23 +35,23 @@ - org.mortbay.jetty.webapp.NoTLDJarPattern + org.eclipse.jetty.webapp.NoTLDJarPattern start.jar|ant-.*\.jar|dojo-.*\.jar|jetty-.*\.jar|jsp-api-.*\.jar|junit-.*\.jar|servlet-api-.*\.jar|dnsns\.jar|rt\.jar|jsse\.jar|tools\.jar|sunpkcs11\.jar|sunjce_provider\.jar|xerces.*\.jar @@ -112,7 +112,7 @@ default - org.mortbay.jetty.servlet.DefaultServlet + org.eclipse.jetty.servlet.DefaultServlet acceptRanges true @@ -306,7 +306,7 @@ - - + + @@ -44,7 +44,7 @@ - + @@ -57,7 +57,7 @@ Requests above the max will be queued --> - - 0 - 1 - 24 + + + 2 + + 16 + + 60000 @@ -97,7 +100,7 @@ --> - + 127.0.0.1 7658 60000 @@ -106,7 +109,7 @@ 8443 5000 5000 - false + false @@ -117,7 +120,7 @@ - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern + .*/.*jsp-api-[^/]*\.jar$|.*/.*jsp-[^/]*\.jar$|.*/.*taglibs[^/]*\.jar$ + + + + + @@ -193,16 +221,16 @@ - - - - - ./eepsite/contexts - - 0 - - - + + + + + ./eepsite/contexts + 30 + + + + @@ -219,7 +247,7 @@ - + ./eepsite/webapps false @@ -231,6 +259,20 @@ + + @@ -240,9 +282,9 @@