diff --git a/INSTALL-headless.txt b/INSTALL-headless.txt index dcc5117e72..c5044307c6 100644 --- a/INSTALL-headless.txt +++ b/INSTALL-headless.txt @@ -39,7 +39,10 @@ To uninstall I2P: rm -rf $I2PInstallDir ~/.i2p Supported JVMs: - Windows: Latest available from http://java.com/download (1.5+ supported) - Linux: Latest available from http://java.com/download (1.5+ supported) - FreeBSD: 1.5-compatible (NIO required) - Other operating systems and JVMs: See https://trac.i2p2.de/wiki/java + All platforms: Java 1.6 or higher required; 1.7 or higher recommended + Windows: OpenJDK or Oracle from http://java.com/download + Linux: OpenJDK or Oracle from http://java.com/download + FreeBSD: OpenJDK or Oracle from http://java.com/download + Raspberry Pi: Oracle 8 Early Access https://jdk8.java.net/download.html + PowerPC: IBM SDK 7 http://www.ibm.com/developerworks/java/jdk/linux/download.html + Other operating systems and JVMs: See https://trac.i2p2.de/wiki/java or https://geti2p.net/download diff --git a/LICENSE.txt b/LICENSE.txt index 00397d1f22..9ea9f333c6 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -177,7 +177,7 @@ Applications: By welterde. See licenses/LICENSE-GPLv2.txt - Jetty 7.6.14.v20131031: + Jetty 8.1.14.v20131031: See licenses/ABOUT-Jetty.html See licenses/NOTICE-Jetty.html See licenses/LICENSE-Apache2.0.txt diff --git a/apps/jetty/apache-tomcat-deployer/README-i2p.txt b/apps/jetty/apache-tomcat-deployer/README-i2p.txt index cc175380c0..1f86ca34d5 100644 --- a/apps/jetty/apache-tomcat-deployer/README-i2p.txt +++ b/apps/jetty/apache-tomcat-deployer/README-i2p.txt @@ -6,9 +6,21 @@ Retrieved from the file minus the following files and directores: -build.xml -deployer-howto.html -images/* -lib/catalina* -LICENSE (see ../../../licenses/LICENSE-Apache2.0.txt, it's also inside every jar) -RELEASE-NOTES + build.xml + deployer-howto.html + images/* + lib/catalina* + lib/jsp-api.jar (see below) + lib/servlet-api.jar (see below) + LICENSE (see ../../../licenses/LICENSE-Apache2.0.txt, it's also inside every jar) + RELEASE-NOTES + + +We could use the following API jars from Apache Tomcat 7.x, supporting Servlet 3.0 and JSP 2.2, +that are required for Jetty 8, but we just bundle the ones from Jetty 8 instead: + + lib/jsp-api.jar + lib/servlet-api.jar + +For more info: +http://tomcat.apache.org/whichversion.html diff --git a/apps/jetty/apache-tomcat-deployer/lib/jsp-api.jar b/apps/jetty/apache-tomcat-deployer/lib/jsp-api.jar deleted file mode 100644 index a4d236913f..0000000000 Binary files a/apps/jetty/apache-tomcat-deployer/lib/jsp-api.jar and /dev/null differ diff --git a/apps/jetty/apache-tomcat-deployer/lib/servlet-api.jar b/apps/jetty/apache-tomcat-deployer/lib/servlet-api.jar deleted file mode 100644 index c9cb9b6251..0000000000 Binary files a/apps/jetty/apache-tomcat-deployer/lib/servlet-api.jar and /dev/null differ diff --git a/apps/jetty/build.xml b/apps/jetty/build.xml index 88e31854ee..3974b8566d 100644 --- a/apps/jetty/build.xml +++ b/apps/jetty/build.xml @@ -1,9 +1,9 @@ - + - + @@ -104,9 +104,10 @@ 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 + javax.servlet.jsp-2.2.0.v201112011158.jar: Required API + servlet-api-3.0.jar: Required API All of these are available in the Ubuntu packages libjetty-java and libjetty-extra-java --> @@ -133,6 +134,10 @@ + + + + @@ -165,10 +174,14 @@ + diff --git a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-continuation-7.6.14.v20131031.jar b/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-continuation-7.6.14.v20131031.jar deleted file mode 100644 index dc1dfe6ac7..0000000000 Binary files a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-continuation-7.6.14.v20131031.jar and /dev/null differ diff --git a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-deploy-7.6.14.v20131031.jar b/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-deploy-7.6.14.v20131031.jar deleted file mode 100644 index c0c8bf05ec..0000000000 Binary files a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-deploy-7.6.14.v20131031.jar and /dev/null differ diff --git a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-http-7.6.14.v20131031.jar b/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-http-7.6.14.v20131031.jar deleted file mode 100644 index 510149bc78..0000000000 Binary files a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-http-7.6.14.v20131031.jar and /dev/null differ diff --git a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-io-7.6.14.v20131031.jar b/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-io-7.6.14.v20131031.jar deleted file mode 100644 index 1e7b03f366..0000000000 Binary files a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-io-7.6.14.v20131031.jar and /dev/null differ diff --git a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-jmx-7.6.14.v20131031.jar b/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-jmx-7.6.14.v20131031.jar deleted file mode 100644 index 425408a606..0000000000 Binary files a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-jmx-7.6.14.v20131031.jar and /dev/null differ diff --git a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-rewrite-7.6.14.v20131031.jar b/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-rewrite-7.6.14.v20131031.jar deleted file mode 100644 index dc5f7dd607..0000000000 Binary files a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-rewrite-7.6.14.v20131031.jar and /dev/null differ diff --git a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-security-7.6.14.v20131031.jar b/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-security-7.6.14.v20131031.jar deleted file mode 100644 index aef1141931..0000000000 Binary files a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-security-7.6.14.v20131031.jar and /dev/null differ diff --git a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-server-7.6.14.v20131031.jar b/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-server-7.6.14.v20131031.jar deleted file mode 100644 index abceaf73b1..0000000000 Binary files a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-server-7.6.14.v20131031.jar and /dev/null differ diff --git a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-servlet-7.6.14.v20131031.jar b/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-servlet-7.6.14.v20131031.jar deleted file mode 100644 index 4f8bdba793..0000000000 Binary files a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-servlet-7.6.14.v20131031.jar and /dev/null differ diff --git a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-servlets-7.6.14.v20131031.jar b/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-servlets-7.6.14.v20131031.jar deleted file mode 100644 index a366efbb27..0000000000 Binary files a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-servlets-7.6.14.v20131031.jar and /dev/null differ diff --git a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-util-7.6.14.v20131031.jar b/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-util-7.6.14.v20131031.jar deleted file mode 100644 index 4b91a1dd57..0000000000 Binary files a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-util-7.6.14.v20131031.jar and /dev/null differ diff --git a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-webapp-7.6.14.v20131031.jar b/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-webapp-7.6.14.v20131031.jar deleted file mode 100644 index 584e39628d..0000000000 Binary files a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-webapp-7.6.14.v20131031.jar and /dev/null differ diff --git a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-xml-7.6.14.v20131031.jar b/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-xml-7.6.14.v20131031.jar deleted file mode 100644 index 10859848ab..0000000000 Binary files a/apps/jetty/jetty-distribution-7.6.14.v20131031/lib/jetty-xml-7.6.14.v20131031.jar and /dev/null differ diff --git a/apps/jetty/jetty-distribution-7.6.14.v20131031/start.jar b/apps/jetty/jetty-distribution-7.6.14.v20131031/start.jar deleted file mode 100644 index c6a9518977..0000000000 Binary files a/apps/jetty/jetty-distribution-7.6.14.v20131031/start.jar and /dev/null differ diff --git a/apps/routerconsole/jsp/error.jsp b/apps/routerconsole/jsp/error.jsp index 22b2e16fa1..5dfba993eb 100644 --- a/apps/routerconsole/jsp/error.jsp +++ b/apps/routerconsole/jsp/error.jsp @@ -4,9 +4,12 @@ <% // Let's make this easy... - final Integer ERROR_CODE = (Integer) request.getAttribute(org.eclipse.jetty.server.Dispatcher.ERROR_STATUS_CODE); - final String ERROR_URI = (String) request.getAttribute(org.eclipse.jetty.server.Dispatcher.ERROR_REQUEST_URI); - final String ERROR_MESSAGE = (String) request.getAttribute(org.eclipse.jetty.server.Dispatcher.ERROR_MESSAGE); + // These are defined in Jetty 7 org.eclipse.jetty.server.Dispatcher, + // and in Servlet 3.0 (Jetty 8) javax.servlet.RequestDispatcher, + // just use the actual strings here to make it compatible with either + final Integer ERROR_CODE = (Integer) request.getAttribute("javax.servlet.error.status_code"); + final String ERROR_URI = (String) request.getAttribute("javax.servlet.error.request_uri"); + final String ERROR_MESSAGE = (String) request.getAttribute("javax.servlet.error.message"); if (ERROR_CODE != null && ERROR_MESSAGE != null) { // this is deprecated but we don't want sendError() response.setStatus(ERROR_CODE.intValue(), ERROR_MESSAGE); diff --git a/apps/routerconsole/jsp/error500.jsp b/apps/routerconsole/jsp/error500.jsp index 5f7b96ccb9..f86125f115 100644 --- a/apps/routerconsole/jsp/error500.jsp +++ b/apps/routerconsole/jsp/error500.jsp @@ -3,11 +3,14 @@ <% // Let's make this easy... - final Integer ERROR_CODE = (Integer) request.getAttribute(org.eclipse.jetty.server.Dispatcher.ERROR_STATUS_CODE); - final String ERROR_URI = (String) request.getAttribute(org.eclipse.jetty.server.Dispatcher.ERROR_REQUEST_URI); - final String ERROR_MESSAGE = (String) request.getAttribute(org.eclipse.jetty.server.Dispatcher.ERROR_MESSAGE); - final Class ERROR_CLASS = (Class)request.getAttribute(org.eclipse.jetty.server.Dispatcher.ERROR_EXCEPTION_TYPE); - final Throwable ERROR_THROWABLE = (Throwable)request.getAttribute(org.eclipse.jetty.server.Dispatcher.ERROR_EXCEPTION); + // These are defined in Jetty 7 org.eclipse.jetty.server.Dispatcher, + // and in Servlet 3.0 (Jetty 8) javax.servlet.RequestDispatcher, + // just use the actual strings here to make it compatible with either + final Integer ERROR_CODE = (Integer) request.getAttribute("javax.servlet.error.status_code"); + final String ERROR_URI = (String) request.getAttribute("javax.servlet.error.request_uri"); + final String ERROR_MESSAGE = (String) request.getAttribute("javax.servlet.error.message"); + final Class ERROR_CLASS = (Class) request.getAttribute("javax.servlet.error.exception_type"); + final Throwable ERROR_THROWABLE = (Throwable) request.getAttribute("javax.servlet.error.exception"); if (ERROR_CODE != null && ERROR_MESSAGE != null) { // this is deprecated but we don't want sendError() response.setStatus(ERROR_CODE.intValue(), ERROR_MESSAGE); diff --git a/installer/i2pinstaller.xml b/installer/i2pinstaller.xml index 4751a85650..84edded227 100644 --- a/installer/i2pinstaller.xml +++ b/installer/i2pinstaller.xml @@ -7,7 +7,7 @@ false resources/console.ico - 1.5.0 + 1.6.0