From 6107934e05b495110a8230c91a537ef80f9b275c Mon Sep 17 00:00:00 2001
From: Mark Thomas
Date: Tue, 29 Sep 2020 12:45:26 +0100
Subject: [PATCH] Update Tomcat 9 to Tomact 10
---
CONTRIBUTING.md | 1 +
README.md | 2 ++
.../apache/tomcat/util/compat/JreCompat.java | 2 +-
webapps/docs/architecture/project.xml | 4 ++--
webapps/docs/changelog.xml | 5 +++++
webapps/docs/config/cluster-interceptor.xml | 2 +-
webapps/docs/config/cluster-membership.xml | 14 ++-----------
webapps/docs/config/http.xml | 20 +++++++++----------
webapps/docs/config/listeners.xml | 6 +-----
webapps/docs/config/project.xml | 4 ++--
webapps/docs/rewrite.xml | 2 +-
11 files changed, 28 insertions(+), 34 deletions(-)
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f0157a07d4ad..348486423d66 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -76,6 +76,7 @@ manually generate the patch file by using diff. If this is what you want, you
can download the sources from the "Source Code Distributions" section of the
Download Page. There is one such page for every major Tomcat version:
+- [Tomcat 10](https://tomcat.apache.org/download-10.cgi)
- [Tomcat 9](https://tomcat.apache.org/download-90.cgi)
- [Tomcat 8](https://tomcat.apache.org/download-80.cgi)
- [Tomcat 7](https://tomcat.apache.org/download-70.cgi)
diff --git a/README.md b/README.md
index 9a8e00207d13..ec1353d13b6c 100644
--- a/README.md
+++ b/README.md
@@ -29,6 +29,7 @@ project logo are trademarks of the Apache Software Foundation.
For every major Tomcat version there is one download page containing
links to the latest binary and source code downloads, but also
links for browsing the download directories and archives:
+- [Tomcat 10](https://tomcat.apache.org/download-10.cgi)
- [Tomcat 9](https://tomcat.apache.org/download-90.cgi)
- [Tomcat 8](https://tomcat.apache.org/download-80.cgi)
- [Tomcat 7](https://tomcat.apache.org/download-70.cgi)
@@ -42,6 +43,7 @@ The documentation available as of the date of this release is
included in the docs webapp which ships with tomcat. You can access that webapp
by starting tomcat and visiting in your browser.
The most up-to-date documentation for each version can be found at:
+- [Tomcat 10](https://tomcat.apache.org/tomcat-10.0-doc/)
- [Tomcat 9](https://tomcat.apache.org/tomcat-9.0-doc/)
- [Tomcat 8](https://tomcat.apache.org/tomcat-8.5-doc/)
- [Tomcat 7](https://tomcat.apache.org/tomcat-7.0-doc/)
diff --git a/java/org/apache/tomcat/util/compat/JreCompat.java b/java/org/apache/tomcat/util/compat/JreCompat.java
index 099ee8778404..1b79e2890728 100644
--- a/java/org/apache/tomcat/util/compat/JreCompat.java
+++ b/java/org/apache/tomcat/util/compat/JreCompat.java
@@ -50,7 +50,7 @@ public class JreCompat {
protected static final Method getApplicationProtocolMethod;
static {
- // This is Tomcat 9 with a minimum Java version of Java 8.
+ // This is Tomcat 10 with a minimum Java version of Java 8.
// Look for the highest supported JVM first
if (GraalCompat.isSupported()) {
instance = new GraalCompat();
diff --git a/webapps/docs/architecture/project.xml b/webapps/docs/architecture/project.xml
index 7bf0c73cad0d..0589be670967 100644
--- a/webapps/docs/architecture/project.xml
+++ b/webapps/docs/architecture/project.xml
@@ -15,10 +15,10 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-
- Apache Tomcat 9 Architecture
+ Apache Tomcat 10 Architecture
The Apache Tomcat Servlet/JSP Container
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 8dc1aba7e4d7..f966a93ba5b0 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -152,6 +152,11 @@
clarify when a user may wish to deploy additional instances of the
Manager web application. (markt)
+
+ 64774: Review references to Tomcat 9 in the the documentation
+ web application and remove them or upadte them to refer to Tomact 10 as
+ appropriate. (markt)
+
diff --git a/webapps/docs/config/cluster-interceptor.xml b/webapps/docs/config/cluster-interceptor.xml
index 836c4cddcdf9..2dfc36202406 100644
--- a/webapps/docs/config/cluster-interceptor.xml
+++ b/webapps/docs/config/cluster-interceptor.xml
@@ -200,7 +200,7 @@
The EncryptInterceptor adds encryption to the channel messages carrying
- session data between nodes. Added in Tomcat 9.0.13.
+ session data between nodes.
If using the TcpFailureDetector, the EncryptInterceptor
diff --git a/webapps/docs/config/cluster-membership.xml b/webapps/docs/config/cluster-membership.xml
index 80e4be3ba250..6c3640b96e1b 100644
--- a/webapps/docs/config/cluster-membership.xml
+++ b/webapps/docs/config/cluster-membership.xml
@@ -231,7 +231,7 @@
LocalMember:
Static member that is the local member of the static cluster group.
-
Note: In Tomcat 9.0.17 and later, The setting of local member is not required.
+
Note: The setting of local member is not required.
It is possible to set up a list of all cluster members including local member instead of setting this components.
@@ -301,17 +301,7 @@
-
Before Tomcat 9.0.16
-
-
-
- ]]>
-
-
Tomcat9.0.17 and later
+
-
First implemented in Tomcat 9 and back-ported to 8.5, Tomcat now supports
- Server Name Indication (SNI). This allows multiple SSL configurations to be
- associated with a single secure connector with the configuration used for any
- given connection determined by the host name requested by the client. To
- facilitate this, the SSLHostConfig element was added which
- can be used to define one of these configurations. Any number of
- SSLHostConfig may be nested in a Connector.
- At the same time, support was added for multiple certificates to be associated
- with a single SSLHostConfig. Each SSL certificate is
- therefore configured in a Certificate element with in an
+
Tomcat supports Server Name Indication (SNI). This allows multiple SSL
+ configurations to be associated with a single secure connector with the
+ configuration used for any given connection determined by the host name
+ requested by the client. To facilitate this, the
+ SSLHostConfig element was added which can be used to define
+ one of these configurations. Any number of SSLHostConfig may
+ be nested in a Connector. At the same time, support was added
+ for multiple certificates to be associated with a single
+ SSLHostConfig. Each SSL certificate is therefore configured
+ in a Certificate element within an
SSLHostConfig. For further information, see the SSL Support
section below.
The Security Lifecycle Listener performs a number of
security checks when Tomcat starts and prevents Tomcat from starting if they
fail. The listener is not enabled by default. To enabled it uncomment the
- listener in $CATALINA_BASE/conf/server.xml. For Tomcat versions before 9.0.7,
- if the operating system supports umask then the line in
- $CATALINA_HOME/bin/catalina.sh that obtains the umask also needs to be
- uncommented. For Tomcat 9.0.7 and later, the umask is automatically
- passed-into Tomcat.
+ listener in $CATALINA_BASE/conf/server.xml.
This listener must only be nested within Server
elements.
diff --git a/webapps/docs/config/project.xml b/webapps/docs/config/project.xml
index 5ebcf050eeea..2e175d90d4ab 100644
--- a/webapps/docs/config/project.xml
+++ b/webapps/docs/config/project.xml
@@ -15,10 +15,10 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-
- Apache Tomcat 9 Configuration Reference
+ Apache Tomcat 10 Configuration Reference
The Apache Tomcat Servlet/JSP Container
diff --git a/webapps/docs/rewrite.xml b/webapps/docs/rewrite.xml
index 81763fc3724d..494802659265 100644
--- a/webapps/docs/rewrite.xml
+++ b/webapps/docs/rewrite.xml
@@ -430,7 +430,7 @@ public interface RewriteMap {
(be careful with whitespace) – by calling setParameters(String). That instance
will then be registered under the name given as the first parameter of RewriteMap rule.
-
Note: Starting with Tomcat 9 you can use more than one parameter. These have to be separated by spaces. Parameters
+
Note: You can use more than one parameter. These have to be separated by spaces. Parameters
can be quoted with ". This enables space characters inside parameters.
That map instance will be given the the lookup value that is configured in the corresponding RewriteRule by