From ab882f85822df832972fb340686b34be41d788ce Mon Sep 17 00:00:00 2001 From: zzz Date: Mon, 15 Apr 2013 14:09:10 +0000 Subject: [PATCH] 0.10.0: Updates and migration for Jetty 7 (I2P 0.9.6) --- CHANGES.txt | 4 + build.xml | 2 +- plugin/templates/contexts/base-context.xml | 20 +-- plugin/templates/contexts/cgi-context.xml | 18 +-- plugin/templates/etc/webdefault.xml | 12 +- plugin/templates/jetty.xml | 169 +++++++++++++------- scripts/plugin.config | 3 +- src/build.xml | 4 +- src/java/net/i2p/zzzot/ZzzOTController.java | 69 +++++--- 9 files changed, 189 insertions(+), 112 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 2034e0b..6607ab3 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,7 @@ +0.10.0 + 2013-04-14 + Updates and migration for Jetty 7 (I2P 0.9.6) + 0.9.0 2013-01-25 Add cache-control directives diff --git a/build.xml b/build.xml index 16eb218..8dc4c8d 100644 --- a/build.xml +++ b/build.xml @@ -11,7 +11,7 @@ - + diff --git a/plugin/templates/contexts/base-context.xml b/plugin/templates/contexts/base-context.xml index c72bc64..ab066c0 100644 --- a/plugin/templates/contexts/base-context.xml +++ b/plugin/templates/contexts/base-context.xml @@ -1,28 +1,22 @@ - + - + / $PLUGIN/eepsite/docroot/ - - - - - org.mortbay.jetty.servlet.Default.cacheControl - max-age=3600,public - - - + + cacheControl + max-age=3600,public - org.mortbay.jetty.servlet.DefaultServlet + org.eclipse.jetty.servlet.DefaultServlet / diff --git a/plugin/templates/contexts/cgi-context.xml b/plugin/templates/contexts/cgi-context.xml index aabcaf0..33377db 100644 --- a/plugin/templates/contexts/cgi-context.xml +++ b/plugin/templates/contexts/cgi-context.xml @@ -1,5 +1,5 @@ - + - + /cgi-bin $PLUGIN/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/plugin/templates/etc/webdefault.xml b/plugin/templates/etc/webdefault.xml index e13916f..d0a6f4b 100644 --- a/plugin/templates/etc/webdefault.xml +++ b/plugin/templates/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 @@ @@ -9,20 +9,20 @@ - - + + - + - - + + - + @@ -37,7 +37,7 @@ - + @@ -50,7 +50,7 @@ Requests above the max will be queued --> - - 0 - 1 - 16 + + + 4 + + 20 + + 60000 @@ -82,10 +86,14 @@ - + 127.0.0.1 7662 60000 @@ -94,16 +102,35 @@ 8443 5000 5000 + false + + + - + true false requestedPath - + - + /a /tracker/announce.jsp - + /announce /tracker/announce.jsp - + /announce.jsp /tracker/announce.jsp - + /announce.php /tracker/announce.jsp - + /scrape /tracker/scrape.jsp - + /scrape.jsp /tracker/scrape.jsp - + /scrape.php /tracker/scrape.jsp - + /Seedless /tracker/seedless.jsp - + /Seedless/ /tracker/seedless.jsp - + /Seedless/index.jsp /tracker/seedless.jsp - + /Seedless/seedless /tracker/seedless.jsp @@ -193,17 +220,17 @@ - + - + - + - + - + @@ -211,7 +238,32 @@ - + + + + + + + + + + + + + + + + + + + + org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern + .*/.*jsp-api-[^/]*\.jar$|.*/.*jsp-[^/]*\.jar$|.*/.*taglibs[^/]*\.jar$ + + + + + @@ -223,15 +275,16 @@ - - - - - $PLUGIN/contexts - 0 - - - + + + + + $PLUGIN/contexts + 120 + + + + @@ -246,18 +299,18 @@ - - - - - $PLUGIN/eepsite/webapps - false - true - false - $PLUGIN/etc/webdefault.xml - - - + + + + + $PLUGIN/eepsite/webapps + false + false + $PLUGIN/etc/webdefault.xml + + + + @@ -268,9 +321,9 @@