Buildbot failure in on tomcat-9.0.x

2024-03-22 Thread buildbot
Build status: BUILD FAILED: failed compile (failure)
Worker used: bb_worker2_ubuntu
URL: https://ci2.apache.org/#builders/37/builds/898
Blamelist: Christopher Schultz 
Build Text: failed compile (failure)
Status Detected: new failure
Build Source Stamp: [branch 9.0.x] a2167e13c19115aecd220cd3be19d43d36126f3b


Steps:

  worker_preparation: 0

  git: 0

  shell: 0

  shell_1: 0

  shell_2: 0

  shell_3: 0

  shell_4: 0

  shell_5: 0

  compile: 1

  shell_6: 0

  shell_7: 0

  shell_8: 0

  shell_9: 0

  Rsync docs to nightlies.apache.org: 0

  shell_10: 0

  Rsync RAT to nightlies.apache.org: 0

  compile_1: 2

  shell_11: 0

  Rsync Logs to nightlies.apache.org: 0


-- ASF Buildbot


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: (tomcat) branch main updated: Use server's ClassLoader instead of application's when loading XMLInputFactory.

2024-03-22 Thread Rémy Maucherat
On Fri, Mar 22, 2024 at 2:40 PM  wrote:
>
> This is an automated email from the ASF dual-hosted git repository.
>
> schultz pushed a commit to branch main
> in repository https://gitbox.apache.org/repos/asf/tomcat.git
>
>
> The following commit(s) were added to refs/heads/main by this push:
>  new 988992ba2e Use server's ClassLoader instead of application's when 
> loading XMLInputFactory.
> 988992ba2e is described below
>
> commit 988992ba2e9a8e2c3db47ac960c2fa6c3fc7a8a4
> Author: Christopher Schultz 
> AuthorDate: Fri Mar 22 09:37:08 2024 -0400
>
> Use server's ClassLoader instead of application's when loading 
> XMLInputFactory.

It doesn't work because there's nothing corresponding to the
XMLInputFactory.class.getName() id. The default newFactory doesn't do
the same thing at all.

Rémy

> ---
>  java/org/apache/jasper/compiler/EncodingDetector.java | 3 ++-
>  webapps/docs/changelog.xml| 5 +
>  2 files changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/java/org/apache/jasper/compiler/EncodingDetector.java 
> b/java/org/apache/jasper/compiler/EncodingDetector.java
> index bac9ade2ee..cf3b623104 100644
> --- a/java/org/apache/jasper/compiler/EncodingDetector.java
> +++ b/java/org/apache/jasper/compiler/EncodingDetector.java
> @@ -35,7 +35,8 @@ class EncodingDetector {
>
>  private static final XMLInputFactory XML_INPUT_FACTORY;
>  static {
> -XML_INPUT_FACTORY = XMLInputFactory.newInstance();
> +XML_INPUT_FACTORY = 
> XMLInputFactory.newFactory(XMLInputFactory.class.getName(),
> +EncodingDetector.class.getClassLoader());
>  }
>
>  private final String encoding;
> diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
> index 341c3a6596..0eca891322 100644
> --- a/webapps/docs/changelog.xml
> +++ b/webapps/docs/changelog.xml
> @@ -179,6 +179,11 @@
>  and the web application is deployed as a WAR file rather than an
>  unpacked directory. (markt)
>
> +  
> +Prevent the web application's ClassLoader from being pinned by the 
> JSP
> +compiler if an application uses a custom XMLInputFactory. Based upon 
> a
> +suggestion from Simon Niederberger. (schultz)
> +  
>  
>
>
>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
>

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Buildbot failure in on tomcat-10.1.x

2024-03-22 Thread buildbot
Build status: BUILD FAILED: failed compile (failure)
Worker used: bb_worker2_ubuntu
URL: https://ci2.apache.org/#builders/44/builds/1190
Blamelist: Christopher Schultz , remm 

Build Text: failed compile (failure)
Status Detected: new failure
Build Source Stamp: [branch 10.1.x] 402d89056dbf5a22a68ddaa6d2a9a1f2c97ec30a


Steps:

  worker_preparation: 0

  git: 0

  shell: 0

  shell_1: 0

  shell_2: 0

  shell_3: 0

  shell_4: 0

  shell_5: 0

  compile: 1

  shell_6: 0

  shell_7: 0

  shell_8: 0

  shell_9: 0

  Rsync docs to nightlies.apache.org: 0

  shell_10: 0

  Rsync RAT to nightlies.apache.org: 0

  compile_1: 2

  shell_11: 0

  Rsync Logs to nightlies.apache.org: 0


-- ASF Buildbot


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Buildbot failure in on tomcat-11.0.x

2024-03-22 Thread buildbot
Build status: BUILD FAILED: failed compile (failure)
Worker used: bb_worker2_ubuntu
URL: https://ci2.apache.org/#builders/112/builds/993
Blamelist: Christopher Schultz 
Build Text: failed compile (failure)
Status Detected: new failure
Build Source Stamp: [branch main] 988992ba2e9a8e2c3db47ac960c2fa6c3fc7a8a4


Steps:

  worker_preparation: 0

  git: 0

  shell: 0

  shell_1: 0

  shell_2: 0

  shell_3: 0

  shell_4: 0

  shell_5: 0

  shell_6: 0

  compile: 1

  shell_7: 0

  shell_8: 0

  shell_9: 0

  shell_10: 0

  Rsync docs to nightlies.apache.org: 0

  shell_11: 0

  Rsync RAT to nightlies.apache.org: 0

  compile_1: 2

  shell_12: 0

  Rsync Logs to nightlies.apache.org: 0


-- ASF Buildbot


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 57130] Allow digest.sh to accept password from a file or from stdin

2024-03-22 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=57130

--- Comment #9 from Coty Sutherland  ---
Totally missed this, but no I don't think so :)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



(tomcat) branch 9.0.x updated: Use server's ClassLoader instead of application's when loading XMLInputFactory.

2024-03-22 Thread schultz
This is an automated email from the ASF dual-hosted git repository.

schultz pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
 new a2167e13c1 Use server's ClassLoader instead of application's when 
loading XMLInputFactory.
a2167e13c1 is described below

commit a2167e13c19115aecd220cd3be19d43d36126f3b
Author: Christopher Schultz 
AuthorDate: Fri Mar 22 09:37:08 2024 -0400

Use server's ClassLoader instead of application's when loading 
XMLInputFactory.
---
 java/org/apache/jasper/compiler/EncodingDetector.java | 3 ++-
 webapps/docs/changelog.xml| 5 +
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/java/org/apache/jasper/compiler/EncodingDetector.java 
b/java/org/apache/jasper/compiler/EncodingDetector.java
index bac9ade2ee..cf3b623104 100644
--- a/java/org/apache/jasper/compiler/EncodingDetector.java
+++ b/java/org/apache/jasper/compiler/EncodingDetector.java
@@ -35,7 +35,8 @@ class EncodingDetector {
 
 private static final XMLInputFactory XML_INPUT_FACTORY;
 static {
-XML_INPUT_FACTORY = XMLInputFactory.newInstance();
+XML_INPUT_FACTORY = 
XMLInputFactory.newFactory(XMLInputFactory.class.getName(),
+EncodingDetector.class.getClassLoader());
 }
 
 private final String encoding;
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index a3f4eb131f..b36849fec5 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -150,6 +150,11 @@
 and the web application is deployed as a WAR file rather than an
 unpacked directory. (markt)
   
+  
+Prevent the web application's ClassLoader from being pinned by the JSP
+compiler if an application uses a custom XMLInputFactory. Based upon a
+suggestion from Simon Niederberger. (schultz)
+  
 
   
   


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



(tomcat) branch 10.1.x updated: Use server's ClassLoader instead of application's when loading XMLInputFactory.

2024-03-22 Thread schultz
This is an automated email from the ASF dual-hosted git repository.

schultz pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
 new 402d89056d Use server's ClassLoader instead of application's when 
loading XMLInputFactory.
402d89056d is described below

commit 402d89056dbf5a22a68ddaa6d2a9a1f2c97ec30a
Author: Christopher Schultz 
AuthorDate: Fri Mar 22 09:37:08 2024 -0400

Use server's ClassLoader instead of application's when loading 
XMLInputFactory.
---
 java/org/apache/jasper/compiler/EncodingDetector.java | 3 ++-
 webapps/docs/changelog.xml| 5 +
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/java/org/apache/jasper/compiler/EncodingDetector.java 
b/java/org/apache/jasper/compiler/EncodingDetector.java
index bac9ade2ee..cf3b623104 100644
--- a/java/org/apache/jasper/compiler/EncodingDetector.java
+++ b/java/org/apache/jasper/compiler/EncodingDetector.java
@@ -35,7 +35,8 @@ class EncodingDetector {
 
 private static final XMLInputFactory XML_INPUT_FACTORY;
 static {
-XML_INPUT_FACTORY = XMLInputFactory.newInstance();
+XML_INPUT_FACTORY = 
XMLInputFactory.newFactory(XMLInputFactory.class.getName(),
+EncodingDetector.class.getClassLoader());
 }
 
 private final String encoding;
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index f3eef2e650..a3839123e4 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -225,6 +225,11 @@
 and the web application is deployed as a WAR file rather than an
 unpacked directory. (markt)
   
+  
+Prevent the web application's ClassLoader from being pinned by the JSP
+compiler if an application uses a custom XMLInputFactory. Based upon a
+suggestion from Simon Niederberger. (schultz)
+  
 
   
   


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



(tomcat) branch main updated: Use server's ClassLoader instead of application's when loading XMLInputFactory.

2024-03-22 Thread schultz
This is an automated email from the ASF dual-hosted git repository.

schultz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
 new 988992ba2e Use server's ClassLoader instead of application's when 
loading XMLInputFactory.
988992ba2e is described below

commit 988992ba2e9a8e2c3db47ac960c2fa6c3fc7a8a4
Author: Christopher Schultz 
AuthorDate: Fri Mar 22 09:37:08 2024 -0400

Use server's ClassLoader instead of application's when loading 
XMLInputFactory.
---
 java/org/apache/jasper/compiler/EncodingDetector.java | 3 ++-
 webapps/docs/changelog.xml| 5 +
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/java/org/apache/jasper/compiler/EncodingDetector.java 
b/java/org/apache/jasper/compiler/EncodingDetector.java
index bac9ade2ee..cf3b623104 100644
--- a/java/org/apache/jasper/compiler/EncodingDetector.java
+++ b/java/org/apache/jasper/compiler/EncodingDetector.java
@@ -35,7 +35,8 @@ class EncodingDetector {
 
 private static final XMLInputFactory XML_INPUT_FACTORY;
 static {
-XML_INPUT_FACTORY = XMLInputFactory.newInstance();
+XML_INPUT_FACTORY = 
XMLInputFactory.newFactory(XMLInputFactory.class.getName(),
+EncodingDetector.class.getClassLoader());
 }
 
 private final String encoding;
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 341c3a6596..0eca891322 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -179,6 +179,11 @@
 and the web application is deployed as a WAR file rather than an
 unpacked directory. (markt)
   
+  
+Prevent the web application's ClassLoader from being pinned by the JSP
+compiler if an application uses a custom XMLInputFactory. Based upon a
+suggestion from Simon Niederberger. (schultz)
+  
 
   
   


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



(tomcat) branch 10.1.x updated: Add native access to the scripts

2024-03-22 Thread remm
This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
 new 6550e203a8 Add native access to the scripts
6550e203a8 is described below

commit 6550e203a8119683f38c182cbfbb9b56587c54a0
Author: remm 
AuthorDate: Fri Mar 22 13:33:27 2024 +0100

Add native access to the scripts
---
 bin/catalina.bat | 1 +
 bin/catalina.sh  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/bin/catalina.bat b/bin/catalina.bat
index 9c55ae940e..9a30371013 100755
--- a/bin/catalina.bat
+++ b/bin/catalina.bat
@@ -223,6 +223,7 @@ set "JAVA_OPTS=%JAVA_OPTS% 
--add-opens=java.base/java.io=ALL-UNNAMED"
 set "JAVA_OPTS=%JAVA_OPTS% --add-opens=java.base/java.util=ALL-UNNAMED"
 set "JAVA_OPTS=%JAVA_OPTS% 
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED"
 set "JAVA_OPTS=%JAVA_OPTS% --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"
+set "JAVA_OPTS=%JAVA_OPTS% --enable-native-access=ALL-UNNAMED"
 
 rem - Execute The Requested Command ---
 
diff --git a/bin/catalina.sh b/bin/catalina.sh
index 32f87ffb6f..ed647a2dea 100755
--- a/bin/catalina.sh
+++ b/bin/catalina.sh
@@ -296,6 +296,7 @@ JAVA_OPTS="$JAVA_OPTS 
--add-opens=java.base/java.io=ALL-UNNAMED"
 JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.util=ALL-UNNAMED"
 JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.util.concurrent=ALL-UNNAMED"
 JAVA_OPTS="$JAVA_OPTS --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"
+JAVA_OPTS="$JAVA_OPTS --enable-native-access=ALL-UNNAMED"
 
 # - Execute The Requested Command -
 


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



(tomcat) branch main updated: Add native access to the scripts

2024-03-22 Thread remm
This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
 new 8d4ed643fe Add native access to the scripts
8d4ed643fe is described below

commit 8d4ed643fe3cae1ba031b72b2f51bc0d0ccb16d6
Author: remm 
AuthorDate: Fri Mar 22 13:33:27 2024 +0100

Add native access to the scripts
---
 bin/catalina.bat | 1 +
 bin/catalina.sh  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/bin/catalina.bat b/bin/catalina.bat
index e2e1c4ac8d..78a7eb9d9f 100755
--- a/bin/catalina.bat
+++ b/bin/catalina.bat
@@ -219,6 +219,7 @@ set "JAVA_OPTS=%JAVA_OPTS% 
--add-opens=java.base/java.io=ALL-UNNAMED"
 set "JAVA_OPTS=%JAVA_OPTS% --add-opens=java.base/java.util=ALL-UNNAMED"
 set "JAVA_OPTS=%JAVA_OPTS% 
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED"
 set "JAVA_OPTS=%JAVA_OPTS% --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"
+set "JAVA_OPTS=%JAVA_OPTS% --enable-native-access=ALL-UNNAMED"
 
 rem - Execute The Requested Command ---
 
diff --git a/bin/catalina.sh b/bin/catalina.sh
index 33649fac27..ee679ad0c6 100755
--- a/bin/catalina.sh
+++ b/bin/catalina.sh
@@ -292,6 +292,7 @@ JAVA_OPTS="$JAVA_OPTS 
--add-opens=java.base/java.io=ALL-UNNAMED"
 JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.util=ALL-UNNAMED"
 JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.util.concurrent=ALL-UNNAMED"
 JAVA_OPTS="$JAVA_OPTS --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"
+JAVA_OPTS="$JAVA_OPTS --enable-native-access=ALL-UNNAMED"
 
 # - Execute The Requested Command -
 


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



(tomcat) branch 10.1.x updated: Add OpenSSL FFM listener to the config, commented out

2024-03-22 Thread remm
This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
 new 8223f1a551 Add OpenSSL FFM listener to the config, commented out
8223f1a551 is described below

commit 8223f1a5511f67b3120c0eb5a83a0e6b56966d94
Author: remm 
AuthorDate: Fri Mar 22 13:17:59 2024 +0100

Add OpenSSL FFM listener to the config, commented out
---
 conf/server.xml | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/conf/server.xml b/conf/server.xml
index fc720ce70b..2beafa4a83 100644
--- a/conf/server.xml
+++ b/conf/server.xml
@@ -24,8 +24,10 @@
   
-  
-  
+  
+  
+  
+  
   
   
   


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



(tomcat) branch main updated: Add OpenSSL FFM listener to the config, commented out

2024-03-22 Thread remm
This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
 new 2bd79f033d Add OpenSSL FFM listener to the config, commented out
2bd79f033d is described below

commit 2bd79f033d8014a9cd3d9d6b743b2f786353cd07
Author: remm 
AuthorDate: Fri Mar 22 13:17:59 2024 +0100

Add OpenSSL FFM listener to the config, commented out
---
 conf/server.xml | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/conf/server.xml b/conf/server.xml
index 72bda52c93..a5331fd048 100644
--- a/conf/server.xml
+++ b/conf/server.xml
@@ -24,8 +24,10 @@
   
-  
-  
+  
+  
+  
+  
   
   
   


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: Instruct the tomcat source builders before the build process for tomcat source 8.5.100

2024-03-22 Thread Rainer Jung
You need to look in the published (built) BUILDING.txt file, not the raw 
sources. The raw sources are meant to prouce a build, the yre not for 
human consumption.


You can e.g. download a published form og Tomcat 8.5.100 and look into 
BUILDING.txt there.


Regards,

Rainer

Am 22.03.24 um 13:01 schrieb Koteswararao Gundapaneni:



On Fri, Mar 22, 2024 at 4:09 AM Mark Thomas > wrote:


On 22/03/2024 10:54, Koteswararao Gundapaneni wrote:
 > Hi,
 >
 > While building the tomcat source 8.5.100 its giving an error with
java 7
 >
 > below is the error
 >
 > ANT_OPTS is set to  -Djava.security.manager=allow
 > Error occurred during initialization of VM
 > java.lang.UnsupportedClassVersionError: allow : Unsupported
major.minor
 > version 52.0
 >
 > in Building.txt file it has the following instruction
 >
 >   3. Install the JDK according to the instructions included with
the release.
 >
 > so if am not wrong, we could suggest java11 is required for the build
 > process in the instructions given

Yes, you are wrong.

PLEASE read the documentation first. Specifically this sentence from
BUILDING.txt


Download a version 11 or later of Java Development Kit...


Mark

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org

For additional commands, e-mail: dev-h...@tomcat.apache.org


The above quote is  not available in BUILDING.txt:

FYI: added BUILDING.txt


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: Instruct the tomcat source builders before the build process for tomcat source 8.5.100

2024-03-22 Thread Koteswararao Gundapaneni
On Fri, Mar 22, 2024 at 4:09 AM Mark Thomas  wrote:

> On 22/03/2024 10:54, Koteswararao Gundapaneni wrote:
> > Hi,
> >
> > While building the tomcat source 8.5.100 its giving an error with java 7
> >
> > below is the error
> >
> > ANT_OPTS is set to  -Djava.security.manager=allow
> > Error occurred during initialization of VM
> > java.lang.UnsupportedClassVersionError: allow : Unsupported major.minor
> > version 52.0
> >
> > in Building.txt file it has the following instruction
> >
> >   3. Install the JDK according to the instructions included with the
> release.
> >
> > so if am not wrong, we could suggest java11 is required for the build
> > process in the instructions given
>
> Yes, you are wrong.
>
> PLEASE read the documentation first. Specifically this sentence from
> BUILDING.txt
>
> 
> Download a version 11 or later of Java Development Kit...
> 
>
> Mark
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
>
> The above quote is  not available in BUILDING.txt:

FYI: added BUILDING.txt

  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.



Building The Apache Tomcat @VERSION_MAJOR_MINOR@ Servlet/JSP 
Container


This project contains the source code for Tomcat @VERSION_MAJOR_MINOR@, a 
container that
implements the Servlet @SERVLET_SPEC_VERSION@, JSP @JSP_SPEC_VERSION@, EL 
@EL_SPEC_VERSION@, WebSocket @WEBSOCKET_SPEC_VERSION@ and JASPIC 
@JASPIC_SPEC_VERSION@
specifications from the Java Community Process .

Note: If you just need to run Apache Tomcat, it is not necessary to build
it. You may simply download a binary distribution. It is cross-platform.
Read RUNNING.txt for the instruction on how to run it.

In order to build a binary distribution version of Apache Tomcat from a
source distribution, do the following:


(1) Download and Install a Java Development Kit

 1. If the JDK is already installed, skip to (2).

 2. Download a version @BUILD_JAVA_VERSION@ or later of Java Development Kit 
(JDK) release (use
the latest update available for your chosen version) from one of:

http://www.oracle.com/technetwork/java/javase/downloads/index.html
http://openjdk.java.net/install/index.html
or another JDK vendor.

Note regarding later versions of Java:

  As documented elsewhere, one of components in Apache Tomcat includes
  a private copy of the Apache Commons DBCP 2 library.

  The JDBC interfaces implemented by DBCP frequently change in non-backwards
  compatible ways between versions of the Java SE specification. Therefore,
  it is likely that DBCP 2 will only compile with the specific version of 
Java
  listed above and that compilation will fail if a later version of Java is
  used.

  See Apache Commons DBCP 2 project web site for more details on
  available versions of the library and its requirements,

https://commons.apache.org/dbcp/

 3. Install the JDK according to the instructions included with the release.

 4. Set an environment variable JAVA_HOME to the pathname of the directory
into which you installed the JDK release.


(2) Install Apache Ant version @ANT_VERSION_REQUIRED@ or later on your computer.

 1. If Apache Ant version @ANT_VERSION_REQUIRED@ or later is already installed 
on your
computer, skip to (3).

 2. Download a binary distribution of Ant from:

https://ant.apache.org/bindownload.cgi

 3. Unpack the binary distribution into a convenient location so that the
Ant release resides in its own directory (conventionally named
"apache-ant-[version]").

For the purposes of the remainder of this document, the symbolic name
"${ant.home}" is used to refer to the full pathname of the release
directory.

 4. Create an ANT_HOME environment variable to point the directory
${ant.home}.

 5. Modify the 

(tomcat) branch 8.5.x updated: Add missing version replacement for Ant and Java build versions

2024-03-22 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/8.5.x by this push:
 new 8716ac14bb Add missing version replacement for Ant and Java build 
versions
8716ac14bb is described below

commit 8716ac14bbefaa63df63b66ea19f881d3dd32bd2
Author: Mark Thomas 
AuthorDate: Fri Mar 22 11:15:32 2024 +

Add missing version replacement for Ant and Java build versions
---
 webapps/docs/tomcat-docs.xsl | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/webapps/docs/tomcat-docs.xsl b/webapps/docs/tomcat-docs.xsl
index 0cc02047d6..27189d877f 100644
--- a/webapps/docs/tomcat-docs.xsl
+++ b/webapps/docs/tomcat-docs.xsl
@@ -434,6 +434,12 @@
   
 
   
+  
+
+  
+  
+
+  
 
   
   


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



(tomcat) branch 9.0.x updated: Add missing version replacement for Ant and Java build versions

2024-03-22 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
 new 531bf25450 Add missing version replacement for Ant and Java build 
versions
531bf25450 is described below

commit 531bf2545028cc665646e175b941219b6edcf6ae
Author: Mark Thomas 
AuthorDate: Fri Mar 22 11:15:32 2024 +

Add missing version replacement for Ant and Java build versions
---
 webapps/docs/tomcat-docs.xsl | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/webapps/docs/tomcat-docs.xsl b/webapps/docs/tomcat-docs.xsl
index df2738dbb2..722f21c9eb 100644
--- a/webapps/docs/tomcat-docs.xsl
+++ b/webapps/docs/tomcat-docs.xsl
@@ -434,6 +434,12 @@
   
 
   
+  
+
+  
+  
+
+  
 
   
   


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: Instruct the tomcat source builders before the build process for tomcat source 8.5.100

2024-03-22 Thread Mark Thomas

On 22/03/2024 10:54, Koteswararao Gundapaneni wrote:

Hi,

While building the tomcat source 8.5.100 its giving an error with java 7

below is the error

ANT_OPTS is set to  -Djava.security.manager=allow
Error occurred during initialization of VM
java.lang.UnsupportedClassVersionError: allow : Unsupported major.minor
version 52.0

in Building.txt file it has the following instruction

  3. Install the JDK according to the instructions included with the release.

so if am not wrong, we could suggest java11 is required for the build
process in the instructions given


Yes, you are wrong.

PLEASE read the documentation first. Specifically this sentence from 
BUILDING.txt



Download a version 11 or later of Java Development Kit...


Mark

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org