Re: [VOTE] Release Apache Tomcat 8.5.66

2021-05-10 Thread Rémy Maucherat
On Sun, May 9, 2021 at 1:12 AM Mark Thomas  wrote:

> The proposed Apache Tomcat 8.5.66 release is now available for voting.
>
> The notable changes compared to the 8.5.65 release are:
>
> - Ensure the correct escaping of attribute values and search filters in
>the JNDIRealm.
>
> - HandlesTypes should include classes that use the specified annotation
>types on fields or methods.
>
> - Refactor the creation of WebSocket end point, decoder and encoder
>instances to be more IoC friendly. Instances are now created via the
>InstanceManager where possible.
>
> Along with lots of other bug fixes and improvements.
>
> For full details, see the changelog:
> https://ci.apache.org/projects/tomcat/tomcat85/docs/changelog.html
>
> It can be obtained from:
> https://dist.apache.org/repos/dist/dev/tomcat/tomcat-8/v8.5.66/
>
> The Maven staging repo is:
> https://repository.apache.org/content/repositories/orgapachetomcat-1311/
>
> The tag is:
> https://github.com/apache/tomcat/tree/8.5.66
> 12afa2cd11ffa9522cd98acc228ecb1bad6b8006
>
> The proposed 8.5.66 release is:
> [ ] Broken - do not release
> [X] Stable - go ahead and release as 8.5.66
>
> Rémy


Re: [VOTE] Release Apache Tomcat 9.0.46

2021-05-10 Thread Rémy Maucherat
On Sat, May 8, 2021 at 8:14 PM Mark Thomas  wrote:

> The proposed Apache Tomcat 9.0.46 release is now available for voting.
>
> The notable changes compared to the 9.0.45 release are:
>
> - Ensure the correct escaping of attribute values and search filters in
>the JNDIRealm.
>
> - HandlesTypes should include classes that use the specified annotation
>types on fields or methods.
>
> - Refactor the creation of WebSocket end point, decoder and encoder
>instances to be more IoC friendly. Instances are now created via the
>InstanceManager where possible.
>
> Along with lots of other bug fixes and improvements.
>
> For full details, see the changelog:
> https://ci.apache.org/projects/tomcat/tomcat9/docs/changelog.html
>
> It can be obtained from:
> https://dist.apache.org/repos/dist/dev/tomcat/tomcat-9/v9.0.46/
> The Maven staging repo is:
> https://repository.apache.org/content/repositories/orgapachetomcat-1310/
> The tag is:
> https://github.com/apache/tomcat/tree/9.0.46
> 37ae42a2996911b9ba6b88e7b0828f855b9d38f6
>
> The proposed 9.0.46 release is:
> [ ] Broken - do not release
> [X] Stable - go ahead and release as 9.0.46
>
> Rémy


Re: [VOTE] Release Apache Tomcat 10.0.6

2021-05-10 Thread Rémy Maucherat
On Sat, May 8, 2021 at 6:18 PM Mark Thomas  wrote:

> The proposed Apache Tomcat 10.0.6 release is now available for
> voting.
>
> Apache Tomcat 10.x implements Jakarta EE 9 and, as such, the primary
> package for all the specification APIs has changed from javax.* to
> jakarta.*
>
> Applications that run on Tomcat 9 will not run on Tomcat 10 without
> changes. Java EE applications designed for Tomcat 9 and earlier may be
> placed in the $CATALINA_BASE/webapps-javaee directory and Tomcat will
> automatically convert them to Jakarta EE and copy them to the webapps
> directory
>
> The notable changes compared to 10.0.5 are:
>
> - Ensure the correct escaping of attribute values and search filters in
>the JNDIRealm.
>
> - HandlesTypes should include classes that use the specified annotation
>types on fields or methods.
>
> - Refactor the creation of WebSocket end point, decoder and encoder
>instances to be more IoC friendly. Instances are now created via the
>InstanceManager where possible.
>
> Along with lots of other bug fixes and improvements.
>
>
> For full details, see the changelog:
> https://ci.apache.org/projects/tomcat/tomcat10/docs/changelog.html
>
> It can be obtained from:
> https://dist.apache.org/repos/dist/dev/tomcat/tomcat-10/v10.0.6/
> The Maven staging repo is:
> https://repository.apache.org/content/repositories/orgapachetomcat-1309
> The tag is:
> https://github.com/apache/tomcat/tree/10.0.6
> f725f57f195de035a5cbc6602a1f7a3ad43ee5b5
>
> The proposed 10.0.6 release is:
> [ ] Broken - do not release
> [X] Stable - go ahead and release as 10.0.6 (stable)
>
> Rémy


JDK 17 Early Access build 21 is available

2021-05-10 Thread Rory O'Donnell


Hi Mark, **

*OpenJDK 17 Early Access build 21 is now available at 
**https://jdk.java.net/17* 


 * These early-access , open-source builds are provided under the
 o GNU General Public License, version 2, with the Classpath
   Exception 

 * Schedule
 o 2021/06/10         Rampdown Phase One
 o 2021/07/15         Rampdown Phase Two
 o 2021/08/05         Initial Release Candidate
 o 2021/08/19         Final Release Candidate
 o 2021/09/14         General Availability

 * JEPs targeted to JDK 17, so far:
 o JEP 356: Enhanced Pseudo-Random Number Generators
   
 o JEP 382: New macOS Rendering Pipeline
   
 o JEP 391: macOS/AArch64 Port 
 o JEP 398: Deprecate the Applet API for Removal
   
 o JEP 410: Remove the Experimental AOT and JIT Compiler
   

 * Release Notes are available at https://jdk.java.net/17/release-notes
   

 * Changes in recent builds that maybe of interest:
 o Build 21:
 + JDK-8196415: JARs signed with SHA-1 algorithms are
   restricted by default.
 + JDK-8265989: System property for the native character
   encoding name.
 + JDK-8265137: java.util.Random suddenly has new public
   methods nowhere documented.
 # [*Reported by Apache Lucene]*
 o Build 20
 + JDK-8037397: RegEx pattern matching loses character class
   after intersection (&&) operator.
 + JDK-8264208: A new public method that returns the `Charset`
   used in the `Console.
 o Build 19
 + JDK-8228988: AnnotationParser throws NullPointerException on
   incompatible member type.
 # *[Reported by ByteBuddy]*
 + JDK-8258794: Support for CLDR version 39.
 + JDK-8262108: SimpleDateFormat formatting broken for sq_MK
   Locale.
 # *[**Reported by ApacheCommons]*
 o Build 18
 + JDK-8260693: Provide the support for specifying a signer in
   keytool -genkeypair.
 + JDK-8263763: Synthetic constructor parameters of enum are
   not considered for annotation indices.
 # *[Reported by ByteBuddy]*

*Topics of interest from 'Insider Java':*

 * Security and Sandboxing Post SecurityManager : Link
   

 * Foreign Memory Access and NIO channels - Going Further : Link
   

*Project Loom Early-Access Build: **Build 17-loom+6-225* 
*(2021/4/1)*


 * These early-access builds are provided under the GNU General Public
   License, version 2, with the Classpath Exception
   .
 * These builds are produced for the purpose of gathering feedback. Use
   for any other purpose is at your own risk.
 * Please send feedback via e-mail to loom-...@openjdk.java.net
   . To send e-mail to this address
   you must first subscribe to the mailing list
   .**

*April 2021 Critical Patch Update Released:*

 * As part of the April 2021 CPU we released JDK 16.0.1, JDK 11.0.11
   LTS, JDK 8u291 and JDK 7u301 as well as OpenJDK 16.0.1 (publicly
   available).

Rgds,Rory

--
Rgds, Rory O'Donnell
Quality Engineering Manager
Oracle EMEA, Dublin, Ireland



Re: [VOTE] Release Apache Tomcat 10.0.6

2021-05-10 Thread Romain Manni-Bucau
+1, new instance manager usage for websocket layer works perfectly!

Romain Manni-Bucau
@rmannibucau  |  Blog
 | Old Blog
 | Github  |
LinkedIn  | Book



Le lun. 10 mai 2021 à 03:36, Igal Sapir  a écrit :

> On Sat, May 8, 2021 at 9:18 AM Mark Thomas  wrote:
>
> > The proposed Apache Tomcat 10.0.6 release is now available for
> > voting.
> >
> > 
> >
> > The proposed 10.0.6 release is:
> > [ ] Broken - do not release
> > [X] Stable - go ahead and release as 10.0.6 (stable)
> >
>
> +1
>
> Igal
>
>
>
> >
> > -
> > To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: dev-h...@tomcat.apache.org
> >
> >
>


[tomcat] branch master updated: Cleanup code using the new tool release

2021-05-10 Thread remm
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 9747a3a  Cleanup code using the new tool release
9747a3a is described below

commit 9747a3a6334369deb9b5bef1b17b1fe0ce774cdf
Author: remm 
AuthorDate: Mon May 10 09:13:54 2021 +0200

Cleanup code using the new tool release

Also log when an unknown profile is specified.
---
 java/org/apache/catalina/loader/LocalStrings.properties |  1 +
 java/org/apache/catalina/loader/WebappLoader.java   | 17 ++---
 2 files changed, 7 insertions(+), 11 deletions(-)

diff --git a/java/org/apache/catalina/loader/LocalStrings.properties 
b/java/org/apache/catalina/loader/LocalStrings.properties
index 7c6c976..521c90f 100644
--- a/java/org/apache/catalina/loader/LocalStrings.properties
+++ b/java/org/apache/catalina/loader/LocalStrings.properties
@@ -67,3 +67,4 @@ webappLoader.starting=Starting this Loader
 webappLoader.stopError=Error stopping the loader
 webappLoader.stopping=Stopping this Loader
 webappLoader.unknownClassLoader=Unknown class loader [{0}] of class [{1}]
+webappLoader.unknownProfile=Unknown Jakarta profile [{0}] specified, the 
default profile will be used instead
diff --git a/java/org/apache/catalina/loader/WebappLoader.java 
b/java/org/apache/catalina/loader/WebappLoader.java
index a9d5ccc..5015b93 100644
--- a/java/org/apache/catalina/loader/WebappLoader.java
+++ b/java/org/apache/catalina/loader/WebappLoader.java
@@ -21,9 +21,7 @@ import java.beans.PropertyChangeSupport;
 import java.io.File;
 import java.io.FilePermission;
 import java.io.IOException;
-import java.lang.instrument.ClassFileTransformer;
 import java.lang.reflect.Constructor;
-import java.lang.reflect.InvocationTargetException;
 import java.net.URL;
 import java.net.URLClassLoader;
 import java.nio.charset.StandardCharsets;
@@ -367,17 +365,14 @@ public class WebappLoader extends LifecycleMBeanBase 
implements Loader{
 
 // Set Jakarta class converter
 if (getJakartaConverter() != null) {
-ClassFileTransformer transformer = null;
+EESpecProfile profile = null;
 try {
-EESpecProfile profile = 
EESpecProfile.valueOf(getJakartaConverter());
-transformer = 
ClassConverter.class.getConstructor(EESpecProfile.class).newInstance(profile);
-// FIXME: after Migration 0.3
-//transformer = new 
ClassConverter(EESpecProfile.valueOf(getJakartaConverter()));
-} catch (InvocationTargetException | NoSuchMethodException | 
IllegalArgumentException ignored) {
-// Use default value with no argument constructor
-transformer = new ClassConverter();
+profile = EESpecProfile.valueOf(getJakartaConverter());
+} catch (IllegalArgumentException ignored) {
+// Use default value
+log.warn(sm.getString("webappLoader.unknownProfile", 
getJakartaConverter()));
 }
-classLoader.addTransformer(transformer);
+classLoader.addTransformer((profile != null) ? new 
ClassConverter(profile) : new ClassConverter());
 }
 
 // Configure our repositories

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