You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2023/11/20 19:31:57 UTC

(logging-log4j2) branch jee-deletion created (now 85e091130d)

This is an automated email from the ASF dual-hosted git repository.

vy pushed a change to branch jee-deletion
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


      at 85e091130d Add changelog entries (#1966)

This branch includes the following new commits:

     new 18f11f7225 Delete JMS appender (#1966)
     new e048823825 Delete SMTP appender (#1966)
     new c1bf0172a2 Delete Jakarta SMTP appender (#1966)
     new eff464eeb4 Minor fixes (#1966)
     new ea28bd67c4 Delete `*-web`, `-jpa`, `-taglib`, and other leftovers (#1966)
     new 85e091130d Add changelog entries (#1966)

The 6 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(logging-log4j2) 06/06: Add changelog entries (#1966)

Posted by vy...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vy pushed a commit to branch jee-deletion
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit 85e091130d6a245b53b10faff91b5ff859a19fa2
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Mon Nov 20 17:56:13 2023 +0100

    Add changelog entries (#1966)
---
 src/changelog/.3.x.x/remove_jakarta_ee.xml | 26 ++++++++++++++++++++++++++
 src/changelog/.3.x.x/remove_java_ee.xml    | 26 ++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/src/changelog/.3.x.x/remove_jakarta_ee.xml b/src/changelog/.3.x.x/remove_jakarta_ee.xml
new file mode 100644
index 0000000000..79952b25c5
--- /dev/null
+++ b/src/changelog/.3.x.x/remove_jakarta_ee.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ 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.
+  -->
+<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns="http://logging.apache.org/log4j/changelog"
+       xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.2.xsd"
+       type="removed">
+  <issue id="1966" link="https://github.com/apache/logging-log4j2/pull/1966"/>
+  <description format="asciidoc">
+    Moved Log4j Jakarta EE modules (`log4j-jakarta-jms`, `log4j-jakarta-smtp`, and `log4j-jakarta-web`) to their own https://github.com/apache/logging-log4j-jakarta[repository] and https://logging.apache.org/log4j/jakarta[website]
+  </description>
+</entry>
diff --git a/src/changelog/.3.x.x/remove_java_ee.xml b/src/changelog/.3.x.x/remove_java_ee.xml
new file mode 100644
index 0000000000..09fe353764
--- /dev/null
+++ b/src/changelog/.3.x.x/remove_java_ee.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ 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.
+  -->
+<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns="http://logging.apache.org/log4j/changelog"
+       xsi:schemaLocation="http://logging.apache.org/log4j/changelog https://logging.apache.org/log4j/changelog-0.1.2.xsd"
+       type="removed">
+  <issue id="1966" link="https://github.com/apache/logging-log4j2/pull/1966"/>
+  <description format="asciidoc">
+    Removed all Java EE modules: `log4j-jms`, `log4j-jpa`, `log4j-smtp`, `log4j-web`
+  </description>
+</entry>


(logging-log4j2) 05/06: Delete `*-web`, `-jpa`, `-taglib`, and other leftovers (#1966)

Posted by vy...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vy pushed a commit to branch jee-deletion
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit ea28bd67c46bb452cca9029e485a39cc0ace1cf7
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Mon Nov 20 17:42:14 2023 +0100

    Delete `*-web`, `-jpa`, `-taglib`, and other leftovers (#1966)
---
 .github/workflows/build.yml                        |   3 -
 NOTICE.txt                                         |   3 -
 log4j-1.2-api/pom.xml                              |  19 +-
 .../apache/log4j/spi/TriggeringEventEvaluator.java |   6 -
 .../log4j1-1.2.17/input/xml/smtpAppender1.xml      |  38 --
 log4j-core-its/pom.xml                             |  12 -
 log4j-core-test/pom.xml                            |  12 -
 .../log4j/core/test/categories/Appenders.java      |   1 -
 .../logging/log4j/core/test/smtp/package-info.java |  22 -
 .../filter/HttpThreadContextMapFilterTest.java     | 199 -------
 .../log4j/core/net/UrlConnectionFactoryTest.java   | 221 -------
 log4j-core-test/src/test/resources/META-INF/NOTICE |   3 -
 .../src/test/resources/SmtpAppenderAsyncTest.xml   |  42 --
 log4j-core/pom.xml                                 |  13 -
 .../core/appender/db/AbstractDatabaseAppender.java |   2 +-
 .../logging/log4j/core/lookup/Interpolator.java    |   4 +-
 .../logging/log4j/core/net/package-info.java       |   1 -
 log4j-distribution/pom.xml                         |  72 ---
 log4j-jakarta-web/pom.xml                          | 111 ----
 .../web/Log4jServletContainerInitializer.java      |  70 ---
 .../log4j/web/Log4jServletContextListener.java     |  89 ---
 .../logging/log4j/web/Log4jServletFilter.java      |  88 ---
 .../Log4jShutdownOnContextDestroyedListener.java   |  76 ---
 .../logging/log4j/web/Log4jWebInitializerImpl.java | 317 -----------
 .../logging/log4j/web/Log4jWebLifeCycle.java       |  43 --
 .../apache/logging/log4j/web/Log4jWebSupport.java  |  95 ---
 .../log4j/web/ServletRequestThreadContext.java     |  45 --
 .../logging/log4j/web/WebLoggerContextUtils.java   | 144 -----
 .../org/apache/logging/log4j/web/WebLookup.java    | 117 ----
 .../log4j/web/appender/ServletAppender.java        | 103 ----
 .../logging/log4j/web/appender/package-info.java   |  24 -
 .../org/apache/logging/log4j/web/package-info.java |  29 -
 .../jakarta.servlet.ServletContainerInitializer    |  22 -
 .../src/main/resources/META-INF/web-fragment.xml   |  33 --
 .../web/Log4jServletContainerInitializerTest.java  | 196 -------
 .../log4j/web/Log4jServletContextListenerTest.java | 112 ----
 .../logging/log4j/web/Log4jServletFilterTest.java  | 111 ----
 ...og4jShutdownOnContextDestroyedListenerTest.java |  85 ---
 .../log4j/web/Log4jWebInitializerImplTest.java     | 406 -------------
 .../org/apache/logging/log4j/web/PropertyTest.java |  43 --
 .../logging/log4j/web/ServletAppenderTest.java     |  58 --
 .../apache/logging/log4j/web/TestAsyncServlet.java |  55 --
 .../apache/logging/log4j/web/WebLookupTest.java    |  98 ----
 .../resources/WEB-INF/classes/log4j-servlet.xml    |  32 --
 .../resources/WEB-INF/classes/log4j-webvar.xml     |  29 -
 .../src/test/resources/log4j2-combined.xml         |  30 -
 .../src/test/resources/log4j2-override.xml         |  22 -
 log4j-jeromq/pom.xml                               |   2 +-
 log4j-jpa/pom.xml                                  | 124 ----
 .../appender/AbstractLogEventWrapperEntity.java    | 342 -----------
 .../log4j/jpa/appender/BasicLogEventEntity.java    | 257 ---------
 .../logging/log4j/jpa/appender/JpaAppender.java    | 130 -----
 .../log4j/jpa/appender/JpaDatabaseManager.java     | 196 -------
 .../logging/log4j/jpa/appender/package-info.java   |  30 -
 .../converter/ContextDataAttributeConverter.java   |  46 --
 .../ContextDataJsonAttributeConverter.java         |  89 ---
 .../converter/ContextMapAttributeConverter.java    |  46 --
 .../ContextMapJsonAttributeConverter.java          |  66 ---
 .../converter/ContextStackAttributeConverter.java  |  54 --
 .../ContextStackJsonAttributeConverter.java        |  72 ---
 .../jpa/converter/InstantAttributeConverter.java   |  55 --
 .../jpa/converter/LevelAttributeConverter.java     |  47 --
 .../jpa/converter/MarkerAttributeConverter.java    |  50 --
 .../jpa/converter/MessageAttributeConverter.java   |  51 --
 .../StackTraceElementAttributeConverter.java       |  81 ---
 .../jpa/converter/ThrowableAttributeConverter.java | 238 --------
 .../logging/log4j/jpa/converter/package-info.java  |  38 --
 .../jpa/appender/AbstractJpaAppenderTest.java      | 210 -------
 .../log4j/jpa/appender/JpaH2AppenderTest.java      |  58 --
 .../log4j/jpa/appender/JpaHsqldbAppenderTest.java  | 135 -----
 .../log4j/jpa/appender/LogEventEntityTest.java     | 119 ----
 .../logging/log4j/jpa/appender/TestBaseEntity.java | 181 ------
 .../log4j/jpa/appender/TestBasicEntity.java        |  54 --
 .../ContextDataAttributeConverterTest.java         |  67 ---
 .../ContextDataJsonAttributeConverterTest.java     |  81 ---
 .../ContextMapAttributeConverterTest.java          |  68 ---
 .../ContextMapJsonAttributeConverterTest.java      |  81 ---
 .../ContextStackAttributeConverterTest.java        |  67 ---
 .../ContextStackJsonAttributeConverterTest.java    |  90 ---
 .../converter/InstantAttributeConverterTest.java   |  67 ---
 .../converter/MarkerAttributeConverterTest.java    |  86 ---
 .../converter/MessageAttributeConverterTest.java   |  64 ---
 .../StackTraceElementAttributeConverterTest.java   | 132 -----
 .../converter/ThrowableAttributeConverterTest.java |  97 ----
 .../src/test/resources/META-INF/persistence.xml    |  79 ---
 .../log4j/jpa/appender/log4j2-h2-jpa-base.xml      |  38 --
 .../log4j/jpa/appender/log4j2-h2-jpa-basic.xml     |  38 --
 .../log4j/jpa/appender/log4j2-hsqldb-jpa-base.xml  |  38 --
 .../log4j/jpa/appender/log4j2-hsqldb-jpa-basic.xml |  38 --
 log4j-layout-jackson-xml/pom.xml                   |  12 -
 log4j-parent/pom.xml                               |  92 +--
 log4j-perf/pom.xml                                 |  13 -
 .../log4j/perf/jmh/JpaAppenderBenchmark.java       | 198 -------
 .../log4j/perf/jmh/jpa/TestBasicEntity.java        |  55 --
 .../src/main/resources/META-INF/persistence.xml    |  79 ---
 .../src/main/resources/log4j2-jpa-appender.xml     |  43 --
 log4j-taglib/pom.xml                               | 108 ----
 .../apache/logging/log4j/taglib/CatchingTag.java   |  58 --
 .../org/apache/logging/log4j/taglib/DebugTag.java  |  33 --
 .../org/apache/logging/log4j/taglib/DumpTag.java   |  75 ---
 .../org/apache/logging/log4j/taglib/EntryTag.java  |  69 ---
 .../org/apache/logging/log4j/taglib/ErrorTag.java  |  33 --
 .../log4j/taglib/ExceptionAwareTagSupport.java     |  42 --
 .../org/apache/logging/log4j/taglib/ExitTag.java   |  60 --
 .../org/apache/logging/log4j/taglib/FatalTag.java  |  33 --
 .../apache/logging/log4j/taglib/IfEnabledTag.java  |  61 --
 .../org/apache/logging/log4j/taglib/InfoTag.java   |  33 --
 .../logging/log4j/taglib/Log4jTaglibLogger.java    |  56 --
 .../log4j/taglib/Log4jTaglibLoggerContext.java     | 115 ----
 .../org/apache/logging/log4j/taglib/LogTag.java    |  45 --
 .../log4j/taglib/LoggerAwareTagSupport.java        |  71 ---
 .../log4j/taglib/LoggingMessageTagSupport.java     | 119 ----
 .../apache/logging/log4j/taglib/SetLoggerTag.java  |  95 ---
 .../org/apache/logging/log4j/taglib/TagUtils.java  | 120 ----
 .../org/apache/logging/log4j/taglib/TraceTag.java  |  33 --
 .../org/apache/logging/log4j/taglib/WarnTag.java   |  33 --
 .../apache/logging/log4j/taglib/package-info.java  |  27 -
 log4j-taglib/src/main/resources/META-INF/log.tld   | 634 ---------------------
 .../logging/log4j/taglib/CatchingTagTest.java      |  92 ---
 .../apache/logging/log4j/taglib/DumpTagTest.java   | 122 ----
 .../apache/logging/log4j/taglib/EnterTagTest.java  |  80 ---
 .../log4j/taglib/ExceptionAwareTagSupportTest.java |  52 --
 .../apache/logging/log4j/taglib/ExitTagTest.java   |  87 ---
 .../logging/log4j/taglib/IfEnabledTagTest.java     | 110 ----
 .../apache/logging/log4j/taglib/LogTagTest.java    |  50 --
 .../log4j/taglib/LoggerAwareTagSupportTest.java    | 150 -----
 .../log4j/taglib/LoggingMessageTagSupportTest.java | 306 ----------
 .../logging/log4j/taglib/SetLoggerTagTest.java     | 217 -------
 .../apache/logging/log4j/taglib/TagLevelTest.java  |  56 --
 .../logging/log4j/taglib/TagUtilsLevelTest.java    |  61 --
 .../logging/log4j/taglib/TagUtilsScopeTest.java    |  57 --
 log4j-taglib/src/test/resources/log4j-test1.xml    |  57 --
 log4j-web/pom.xml                                  | 115 ----
 .../web/Log4jServletContainerInitializer.java      |  70 ---
 .../log4j/web/Log4jServletContextListener.java     | 125 ----
 .../logging/log4j/web/Log4jServletFilter.java      | 105 ----
 .../Log4jShutdownOnContextDestroyedListener.java   |  76 ---
 .../logging/log4j/web/Log4jWebInitializerImpl.java | 317 -----------
 .../logging/log4j/web/Log4jWebLifeCycle.java       |  43 --
 .../apache/logging/log4j/web/Log4jWebSupport.java  |  95 ---
 .../log4j/web/ServletRequestThreadContext.java     |  45 --
 .../logging/log4j/web/WebLoggerContextUtils.java   | 143 -----
 .../org/apache/logging/log4j/web/WebLookup.java    | 231 --------
 .../log4j/web/appender/ServletAppender.java        | 106 ----
 .../logging/log4j/web/appender/package-info.java   |  24 -
 .../org/apache/logging/log4j/web/package-info.java |  29 -
 .../javax.servlet.ServletContainerInitializer      |  22 -
 .../src/main/resources/META-INF/web-fragment.xml   |  33 --
 .../web/Log4jServletContainerInitializerTest.java  | 185 ------
 .../log4j/web/Log4jServletContextListenerTest.java | 134 -----
 .../logging/log4j/web/Log4jServletFilterTest.java  | 112 ----
 ...og4jShutdownOnContextDestroyedListenerTest.java |  85 ---
 .../log4j/web/Log4jWebInitializerImplTest.java     | 406 -------------
 .../org/apache/logging/log4j/web/PropertyTest.java |  43 --
 .../logging/log4j/web/ServletAppenderTest.java     |  69 ---
 .../apache/logging/log4j/web/TestAsyncServlet.java |  61 --
 .../apache/logging/log4j/web/WebLookupTest.java    | 181 ------
 .../resources/WEB-INF/classes/log4j-servlet.xml    |  32 --
 .../resources/WEB-INF/classes/log4j-webvar.xml     |  29 -
 log4j-web/src/test/resources/log4j2-combined.xml   |  30 -
 log4j-web/src/test/resources/log4j2-override.xml   |  22 -
 pom.xml                                            |  22 -
 src/site/asciidoc/faq.adoc                         |   8 +-
 src/site/asciidoc/index.adoc.vm                    |   2 +-
 src/site/asciidoc/manual/appenders.adoc            | 280 ---------
 src/site/asciidoc/manual/logsep.adoc               |  15 +-
 src/site/asciidoc/manual/systemproperties.adoc     |   4 +-
 src/site/asciidoc/manual/webapp.adoc               | 501 ----------------
 src/site/asciidoc/runtime-dependencies.adoc        |  39 --
 src/site/markdown/log4j-jakarta-web.md             |  30 -
 src/site/markdown/log4j-smtp.md                    |  33 --
 src/site/markdown/log4j-taglib.md                  |  67 ---
 src/site/markdown/log4j-web.md                     |  30 -
 src/site/markdown/manual/compatibility.md          |   1 -
 src/site/markdown/maven-artifacts.md.vm            |  18 -
 src/site/site.xml                                  |  15 -
 176 files changed, 25 insertions(+), 15208 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6c12d518f8..a5cb0b9724 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -71,7 +71,4 @@ jobs:
     with:
       java-version: 11
       project-id: log4j
-      distribution-attachment-filepath-pattern: |-
-        '^.*/target/log4j-(1\\.2-api|api(-test)?|appserver|cassandra|core(-test)?|couchdb|docker|flume-ng|iostreams|jakarta-(smtp|web)|jcl|jdbc-dbcp2|jpa|jpl|jul|kubernetes|layout-template-json|mongodb[34]|slf4j2?-impl|spring-(boot|cloud-config-client)|taglib|to-(jul|slf4j)|web)-'${PROJECT_VERSION}'\\.jar$'
-      distribution-attachment-count: 30
       site-enabled: true
diff --git a/NOTICE.txt b/NOTICE.txt
index bbb5fb3f66..bdf985e45c 100644
--- a/NOTICE.txt
+++ b/NOTICE.txt
@@ -7,9 +7,6 @@ The Apache Software Foundation (http://www.apache.org/).
 ResolverUtil.java
 Copyright 2005-2006 Tim Fennell
 
-Dumbster SMTP test server
-Copyright 2004 Jason Paul Kitchen
-
 TypeUtil.java
 Copyright 2002-2012 Ramnivas Laddad, Juergen Hoeller, Chris Beams
 
diff --git a/log4j-1.2-api/pom.xml b/log4j-1.2-api/pom.xml
index d7969bf933..15ec761ae2 100644
--- a/log4j-1.2-api/pom.xml
+++ b/log4j-1.2-api/pom.xml
@@ -40,6 +40,8 @@
     <bnd-extra-package-options>
       <!-- JMX support -->
       com.sun.jdmk.comm;resolution:=optional,
+      <!-- JMS is optional -->
+      javax.jms;substitute="javax.jms-api";version="[1.1,3)";resolution:=optional,
       <!-- Log4j Core is optional -->
       org.apache.logging.log4j.core.*;resolution:=optional
     </bnd-extra-package-options>
@@ -47,6 +49,11 @@
     <!-- we have an `bnd.bnd` file to override the parent's defaults -->
   </properties>
   <dependencies>
+    <dependency>
+      <groupId>javax.jms</groupId>
+      <artifactId>javax.jms-api</artifactId>
+      <scope>provided</scope>
+    </dependency>
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-api</artifactId>
@@ -92,18 +99,6 @@
       <artifactId>jackson-dataformat-xml</artifactId>
       <scope>test</scope>
     </dependency>
-    <!-- Replacement for `jakarta.xml.bind` Jackson dependency -->
-    <dependency>
-      <groupId>javax.activation</groupId>
-      <artifactId>javax.activation-api</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <!-- Replacement for `jakarta.xml.bind` Jackson dependency -->
-    <dependency>
-      <groupId>javax.xml.bind</groupId>
-      <artifactId>jaxb-api</artifactId>
-      <scope>test</scope>
-    </dependency>
     <dependency>
       <groupId>org.junit.jupiter</groupId>
       <artifactId>junit-jupiter-engine</artifactId>
diff --git a/log4j-1.2-api/src/main/java/org/apache/log4j/spi/TriggeringEventEvaluator.java b/log4j-1.2-api/src/main/java/org/apache/log4j/spi/TriggeringEventEvaluator.java
index 9f9a95c999..ad63c708e9 100644
--- a/log4j-1.2-api/src/main/java/org/apache/log4j/spi/TriggeringEventEvaluator.java
+++ b/log4j-1.2-api/src/main/java/org/apache/log4j/spi/TriggeringEventEvaluator.java
@@ -19,12 +19,6 @@ package org.apache.log4j.spi;
 /**
  * Implementors decide when to perform an appender specific action.
  *
- * <p>
- * For example, the {@code org.apache.log4j.net.SMTPAppender} sends an email when the
- * {@link #isTriggeringEvent(LoggingEvent)} method returns {@code true} and adds the event to an internal buffer when
- * the returned result is {@code false}.
- * </p>
- *
  * @since version 1.0
  */
 public interface TriggeringEventEvaluator {
diff --git a/log4j-1.2-api/src/test/resources/log4j1-1.2.17/input/xml/smtpAppender1.xml b/log4j-1.2-api/src/test/resources/log4j1-1.2.17/input/xml/smtpAppender1.xml
deleted file mode 100644
index 0b6f2d11c3..0000000000
--- a/log4j-1.2-api/src/test/resources/log4j1-1.2.17/input/xml/smtpAppender1.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
-  <appender name="A1" class="org.apache.log4j.net.SMTPAppender">
-
-    <param name="from"   value="log4j@example.org" />
-    <param name="to" value="somebody@example.org" />
-    <param name="subject" value="Test message" />
-    <param name="SMTPHost" value="localhost"/>
-    <triggeringPolicy class="org.apache.log4j.net.SMTPAppenderTest$MockTriggeringEventEvaluator"/>
-
-    <layout class="org.apache.log4j.PatternLayout">
-      <param name="ConversionPattern" value="%-5p %c{2} - %m%n"/>
-    </layout>
-  </appender>
-
-  <root>
-    <priority value ="trace" />
-    <appender-ref ref="A1" />
-  </root>
-
-</log4j:configuration>
diff --git a/log4j-core-its/pom.xml b/log4j-core-its/pom.xml
index b206fb65dc..2e572bf66a 100644
--- a/log4j-core-its/pom.xml
+++ b/log4j-core-its/pom.xml
@@ -74,18 +74,6 @@
       <artifactId>jackson-dataformat-yaml</artifactId>
       <optional>true</optional>
     </dependency>
-    <!-- Replacement for `jakarta.xml.bind` Jackson dependency -->
-    <dependency>
-      <groupId>javax.activation</groupId>
-      <artifactId>javax.activation-api</artifactId>
-      <optional>true</optional>
-    </dependency>
-    <!-- Replacement for `jakarta.xml.bind` Jackson dependency -->
-    <dependency>
-      <groupId>javax.xml.bind</groupId>
-      <artifactId>jaxb-api</artifactId>
-      <optional>true</optional>
-    </dependency>
     <!-- Alternative implementation of BlockingQueue using JCTools for AsyncAppender -->
     <dependency>
       <groupId>org.jctools</groupId>
diff --git a/log4j-core-test/pom.xml b/log4j-core-test/pom.xml
index 54394325d3..fd23b972f5 100644
--- a/log4j-core-test/pom.xml
+++ b/log4j-core-test/pom.xml
@@ -152,18 +152,6 @@
       <artifactId>jansi</artifactId>
       <optional>true</optional>
     </dependency>
-    <!-- Replacement for `jakarta.xml.bind` Jackson dependency -->
-    <dependency>
-      <groupId>javax.activation</groupId>
-      <artifactId>javax.activation-api</artifactId>
-      <optional>true</optional>
-    </dependency>
-    <!-- Replacement for `jakarta.xml.bind` Jackson dependency -->
-    <dependency>
-      <groupId>javax.xml.bind</groupId>
-      <artifactId>jaxb-api</artifactId>
-      <optional>true</optional>
-    </dependency>
     <!-- Alternative implementation of BlockingQueue using JCTools for AsyncAppender -->
     <dependency>
       <groupId>org.jctools</groupId>
diff --git a/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/categories/Appenders.java b/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/categories/Appenders.java
index dd97f5bcfb..f727278436 100644
--- a/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/categories/Appenders.java
+++ b/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/categories/Appenders.java
@@ -24,7 +24,6 @@ public interface Appenders {
     interface AsyncJcTools {}
     interface Cassandra {}
     interface CouchDb {}
-    interface Jpa {}
     interface Kafka {}
     interface MongoDb {}
     interface ZeroMq {}
diff --git a/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/smtp/package-info.java b/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/smtp/package-info.java
deleted file mode 100644
index f4470c13aa..0000000000
--- a/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/smtp/package-info.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * 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.
- */
-@Export
-@Version("2.20.1")
-package org.apache.logging.log4j.core.test.smtp;
-
-import org.osgi.annotation.bundle.Export;
-import org.osgi.annotation.versioning.Version;
diff --git a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/filter/HttpThreadContextMapFilterTest.java b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/filter/HttpThreadContextMapFilterTest.java
deleted file mode 100644
index 50a9899d59..0000000000
--- a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/filter/HttpThreadContextMapFilterTest.java
+++ /dev/null
@@ -1,199 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.core.filter;
-
-import java.io.File;
-import java.io.IOException;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.StandardCopyOption;
-import java.util.Base64;
-import java.util.Enumeration;
-import java.util.concurrent.CountDownLatch;
-import java.util.concurrent.TimeUnit;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.logging.log4j.Logger;
-import org.apache.logging.log4j.ThreadContext;
-import org.apache.logging.log4j.core.Appender;
-import org.apache.logging.log4j.core.LoggerContext;
-import org.apache.logging.log4j.core.config.Configurator;
-import org.apache.logging.log4j.core.test.appender.ListAppender;
-import org.eclipse.jetty.http.HttpHeader;
-import org.eclipse.jetty.server.Server;
-import org.eclipse.jetty.server.ServerConnector;
-import org.eclipse.jetty.servlet.DefaultServlet;
-import org.eclipse.jetty.servlet.ServletContextHandler;
-import org.eclipse.jetty.servlet.ServletHolder;
-import org.junit.Assert;
-import org.junit.jupiter.api.AfterAll;
-import org.junit.jupiter.api.AfterEach;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.BeforeAll;
-import org.junit.jupiter.api.Test;
-
-import static org.junit.jupiter.api.Assertions.assertNotEquals;
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-import static org.junit.jupiter.api.Assertions.fail;
-
-/**
- * Unit test for simple App.
- */
-public class HttpThreadContextMapFilterTest implements MutableThreadContextMapFilter.FilterConfigUpdateListener {
-
-    private static final String BASIC = "Basic ";
-    private static final String expectedCreds = "log4j:log4j";
-    private static Server server;
-    private static final Base64.Decoder decoder = Base64.getDecoder();
-    private static int port;
-    static final String CONFIG = "log4j2-mutableFilter.xml";
-    static LoggerContext loggerContext = null;
-    static final File targetFile = new File("target/test-classes/testConfig.json");
-    static final Path target = targetFile.toPath();
-    CountDownLatch updated = new CountDownLatch(1);
-
-
-    @BeforeAll
-    public static void startServer() throws Exception {
-        try {
-            server = new Server(0);
-            final ServletContextHandler context = new ServletContextHandler();
-            final ServletHolder defaultServ = new ServletHolder("default", TestServlet.class);
-            defaultServ.setInitParameter("resourceBase", System.getProperty("user.dir"));
-            defaultServ.setInitParameter("dirAllowed", "true");
-            context.addServlet(defaultServ, "/");
-            server.setHandler(context);
-
-            // Start Server
-            server.start();
-            port = ((ServerConnector) server.getConnectors()[0]).getLocalPort();
-            try {
-                Files.deleteIfExists(target);
-            } catch (IOException ioe) {
-                // Ignore this.
-            }
-        } catch (Throwable ex) {
-            ex.printStackTrace();
-            throw ex;
-        }
-    }
-
-    @AfterAll
-    public static void stopServer() throws Exception {
-        server.stop();
-    }
-    @AfterEach
-    public void after() {
-        try {
-            Files.deleteIfExists(target);
-        } catch (IOException ioe) {
-            // Ignore this.
-        }
-        loggerContext.stop();
-        loggerContext = null;
-    }
-
-    @Test
-    public void filterTest() throws Exception {
-        System.setProperty("log4j2.Configuration.allowedProtocols", "http");
-        System.setProperty("logging.auth.username", "log4j");
-        System.setProperty("logging.auth.password", "log4j");
-        System.setProperty("configLocation", "http://localhost:" + port + "/testConfig.json");
-        ThreadContext.put("loginId", "rgoers");
-        Path source = new File("target/test-classes/emptyConfig.json").toPath();
-        Files.copy(source, target, StandardCopyOption.REPLACE_EXISTING);
-        final long fileTime = targetFile.lastModified() - 2000;
-        assertTrue(targetFile.setLastModified(fileTime));
-        loggerContext = Configurator.initialize(null, CONFIG);
-        assertNotNull(loggerContext);
-        final Appender app = loggerContext.getConfiguration().getAppender("List");
-        assertNotNull(app);
-        assertTrue(app instanceof ListAppender);
-        final MutableThreadContextMapFilter filter = (MutableThreadContextMapFilter) loggerContext.getConfiguration().getFilter();
-        assertNotNull(filter);
-        filter.registerListener(this);
-        final Logger logger = loggerContext.getLogger("Test");
-        logger.debug("This is a test");
-        Assertions.assertEquals(0, ((ListAppender) app).getEvents().size());
-        source = new File("target/test-classes/filterConfig.json").toPath();
-        Files.copy(source, target, StandardCopyOption.REPLACE_EXISTING);
-        assertNotEquals(fileTime, targetFile.lastModified());
-        if (!updated.await(5, TimeUnit.SECONDS)) {
-            fail("File update was not detected");
-        }
-        updated = new CountDownLatch(1);
-        logger.debug("This is a test");
-        Assertions.assertEquals(1, ((ListAppender) app).getEvents().size());
-        Assertions.assertTrue(Files.deleteIfExists(target));
-        if (!updated.await(5, TimeUnit.SECONDS)) {
-            fail("File update for delete was not detected");
-        }
-    }
-
-    public static class TestServlet extends DefaultServlet {
-
-        private static final long serialVersionUID = -2885158530511450659L;
-
-        @Override
-        protected void doGet(final HttpServletRequest request,
-                final HttpServletResponse response) throws ServletException, IOException {
-            final Enumeration<String> headers = request.getHeaders(HttpHeader.AUTHORIZATION.toString());
-            if (headers == null) {
-                response.sendError(401, "No Auth header");
-                return;
-            }
-            while (headers.hasMoreElements()) {
-                final String authData = headers.nextElement();
-                Assert.assertTrue("Not a Basic auth header", authData.startsWith(BASIC));
-                final String credentials = new String(decoder.decode(authData.substring(BASIC.length())));
-                if (!expectedCreds.equals(credentials)) {
-                    response.sendError(401, "Invalid credentials");
-                    return;
-                }
-            }
-            if (request.getServletPath().equals("/testConfig.json")) {
-                final File file = new File("target/test-classes/testConfig.json");
-                if (!file.exists()) {
-                    response.sendError(404, "File not found");
-                    return;
-                }
-                final long modifiedSince = request.getDateHeader(HttpHeader.IF_MODIFIED_SINCE.toString());
-                final long lastModified = (file.lastModified() / 1000) * 1000;
-                if (modifiedSince > 0 && lastModified <= modifiedSince) {
-                    response.setStatus(304);
-                    return;
-                }
-                response.setDateHeader(HttpHeader.LAST_MODIFIED.toString(), lastModified);
-                response.setContentLengthLong(file.length());
-                Files.copy(file.toPath(), response.getOutputStream());
-                response.getOutputStream().flush();
-                response.setStatus(200);
-            } else {
-                response.sendError(400, "Unsupported request");
-            }
-        }
-    }
-
-    @Override
-    public void onEvent() {
-        updated.countDown();
-    }
-}
diff --git a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/net/UrlConnectionFactoryTest.java b/log4j-core-test/src/test/java/org/apache/logging/log4j/core/net/UrlConnectionFactoryTest.java
deleted file mode 100644
index 534d4c6136..0000000000
--- a/log4j-core-test/src/test/java/org/apache/logging/log4j/core/net/UrlConnectionFactoryTest.java
+++ /dev/null
@@ -1,221 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.core.net;
-
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.lang.management.ManagementFactory;
-import java.lang.management.OperatingSystemMXBean;
-import java.net.HttpURLConnection;
-import java.net.URI;
-import java.net.URL;
-import java.nio.file.Files;
-import java.util.Base64;
-import java.util.Enumeration;
-
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import com.sun.management.UnixOperatingSystemMXBean;
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
-import org.apache.logging.log4j.core.config.ConfigurationSource;
-import org.apache.logging.log4j.core.config.ConfigurationSourceTest;
-import org.apache.logging.log4j.util.PropertiesUtil;
-import org.eclipse.jetty.http.HttpHeader;
-import org.eclipse.jetty.server.Server;
-import org.eclipse.jetty.server.ServerConnector;
-import org.eclipse.jetty.servlet.DefaultServlet;
-import org.eclipse.jetty.servlet.ServletContextHandler;
-import org.eclipse.jetty.servlet.ServletHolder;
-import org.junit.jupiter.api.AfterAll;
-import org.junit.jupiter.api.BeforeAll;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.parallel.Isolated;
-
-import static javax.servlet.http.HttpServletResponse.SC_BAD_REQUEST;
-import static javax.servlet.http.HttpServletResponse.SC_INTERNAL_SERVER_ERROR;
-import static javax.servlet.http.HttpServletResponse.SC_NOT_FOUND;
-import static javax.servlet.http.HttpServletResponse.SC_NOT_MODIFIED;
-import static javax.servlet.http.HttpServletResponse.SC_OK;
-import static javax.servlet.http.HttpServletResponse.SC_UNAUTHORIZED;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertNotNull;
-import static org.junit.jupiter.api.Assertions.assertNull;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-import static org.junit.jupiter.api.Assertions.fail;
-
-/**
- * Tests the UrlConnectionFactory
- */
-@Isolated
-public class UrlConnectionFactoryTest {
-
-    private static final Logger LOGGER = LogManager.getLogger(UrlConnectionFactoryTest.class);
-    private static final String BASIC = "Basic ";
-    private static final String expectedCreds = "testuser:password";
-    private static Server server;
-    private static final Base64.Decoder decoder = Base64.getDecoder();
-    private static int port;
-
-    @BeforeAll
-    public static void startServer() throws Exception {
-        try {
-            server = new Server(0);
-            final ServletContextHandler context = new ServletContextHandler();
-            final ServletHolder defaultServ = new ServletHolder("default", TestServlet.class);
-            defaultServ.setInitParameter("resourceBase", System.getProperty("user.dir"));
-            defaultServ.setInitParameter("dirAllowed", "true");
-            context.addServlet(defaultServ, "/");
-            server.setHandler(context);
-
-            // Start Server
-            server.start();
-            port = ((ServerConnector) server.getConnectors()[0]).getLocalPort();
-        } catch (Throwable ex) {
-            ex.printStackTrace();
-            throw ex;
-        }
-    }
-
-    @AfterAll
-    public static void stopServer() throws Exception {
-        server.stop();
-    }
-
-    @Test
-    public void testBadCrdentials() throws Exception {
-        System.setProperty("log4j2.Configuration.username", "foo");
-        System.setProperty("log4j2.Configuration.password", "bar");
-        System.setProperty("log4j2.Configuration.allowedProtocols", "http");
-        final URI uri = new URI("http://localhost:" + port + "/log4j2-config.xml");
-        final ConfigurationSource source = ConfigurationSource.fromUri(uri);
-        assertNull(source, "A ConfigurationSource should not have been returned");
-    }
-
-    @Test
-    public void withAuthentication() throws Exception {
-        System.setProperty("log4j2.Configuration.username", "testuser");
-        System.setProperty("log4j2.Configuration.password", "password");
-        System.setProperty("log4j2.Configuration.allowedProtocols", "http");
-        final URI uri = new URI("http://localhost:" + port + "/log4j2-config.xml");
-        final ConfigurationSource source = ConfigurationSource.fromUri(uri);
-        assertNotNull(source, "No ConfigurationSource returned");
-        final InputStream is = source.getInputStream();
-        assertNotNull(is, "No data returned");
-        is.close();
-        final long lastModified = source.getLastModified();
-        int result = verifyNotModified(uri, lastModified);
-        assertEquals(SC_NOT_MODIFIED, result,"File was modified");
-        final File file = new File("target/test-classes/log4j2-config.xml");
-        if (!file.setLastModified(System.currentTimeMillis())) {
-            fail("Unable to set last modified time");
-        }
-        result = verifyNotModified(uri, lastModified);
-        assertEquals(SC_OK, result,"File was not modified");
-    }
-
-    private int verifyNotModified(final URI uri, final long lastModifiedMillis) throws Exception {
-        final HttpURLConnection urlConnection = UrlConnectionFactory.createConnection(uri.toURL(),
-                lastModifiedMillis, null, null, PropertiesUtil.getProperties());
-        urlConnection.connect();
-
-        try {
-            return urlConnection.getResponseCode();
-        } catch (final IOException ioe) {
-            LOGGER.error("Error accessing configuration at {}: {}", uri, ioe.getMessage());
-            return SC_INTERNAL_SERVER_ERROR;
-        }
-    }
-
-    @Test
-    public void testNoJarFileLeak() throws Exception {
-        ConfigurationSourceTest.prepareJarConfigURL();
-        final URL url = new File("target/test-classes/jarfile.jar").toURI().toURL();
-        // Retrieve using 'file:'
-        URL jarUrl = new URL("jar:" + url.toString() + "!/config/console.xml");
-        long expected = getOpenFileDescriptorCount();
-        UrlConnectionFactory.createConnection(jarUrl).getInputStream().close();
-        assertEquals(expected, getOpenFileDescriptorCount());
-        // Retrieve using 'http:'
-        jarUrl = new URL("jar:http://localhost:" + port + "/jarfile.jar!/config/console.xml");
-        final File tmpDir = new File(System.getProperty("java.io.tmpdir"));
-        expected = tmpDir.list().length;
-        UrlConnectionFactory.createConnection(jarUrl).getInputStream().close();
-        assertEquals(expected, tmpDir.list().length, "File descriptor leak");
-    }
-
-    private long getOpenFileDescriptorCount() {
-        final OperatingSystemMXBean os = ManagementFactory.getOperatingSystemMXBean();
-        if (os instanceof UnixOperatingSystemMXBean) {
-            return ((UnixOperatingSystemMXBean) os).getOpenFileDescriptorCount();
-        }
-        return 0L;
-    }
-
-    public static class TestServlet extends DefaultServlet {
-
-        private static final long serialVersionUID = -2885158530511450659L;
-
-        @Override
-        protected void doGet(final HttpServletRequest request,
-                final HttpServletResponse response) throws ServletException, IOException {
-            final Enumeration<String> headers = request.getHeaders(HttpHeader.AUTHORIZATION.toString());
-            if (headers == null) {
-                response.sendError(SC_UNAUTHORIZED, "No Auth header");
-                return;
-            }
-            while (headers.hasMoreElements()) {
-                final String authData = headers.nextElement();
-                assertTrue(authData.startsWith(BASIC), "Not a Basic auth header");
-                final String credentials = new String(decoder.decode(authData.substring(BASIC.length())));
-                if (!expectedCreds.equals(credentials)) {
-                    response.sendError(SC_UNAUTHORIZED, "Invalid credentials");
-                    return;
-                }
-            }
-            final String servletPath = request.getServletPath();
-            if (servletPath != null) {
-                File file = new File("target/classes" + servletPath);
-                if (!file.exists()) {
-                    file = new File("target/test-classes" + servletPath);
-                }
-                if (!file.exists()) {
-                    response.sendError(SC_NOT_FOUND);
-                    return;
-                }
-                final long modifiedSince = request.getDateHeader(HttpHeader.IF_MODIFIED_SINCE.toString());
-                final long lastModified = (file.lastModified() / 1000) * 1000;
-                LOGGER.debug("LastModified: {}, modifiedSince: {}", lastModified, modifiedSince);
-                if (modifiedSince > 0 && lastModified <= modifiedSince) {
-                    response.setStatus(SC_NOT_MODIFIED);
-                    return;
-                }
-                response.setDateHeader(HttpHeader.LAST_MODIFIED.toString(), lastModified);
-                response.setContentLengthLong(file.length());
-                Files.copy(file.toPath(), response.getOutputStream());
-                response.getOutputStream().flush();
-                response.setStatus(SC_OK);
-            } else {
-                response.sendError(SC_BAD_REQUEST, "Unsupported request");
-            }
-        }
-    }
-}
diff --git a/log4j-core-test/src/test/resources/META-INF/NOTICE b/log4j-core-test/src/test/resources/META-INF/NOTICE
index 0fbf2689c0..c28a383586 100644
--- a/log4j-core-test/src/test/resources/META-INF/NOTICE
+++ b/log4j-core-test/src/test/resources/META-INF/NOTICE
@@ -3,6 +3,3 @@ Copyright 1999-2012 Apache Software Foundation
 
 This product includes software developed at
 The Apache Software Foundation (http://www.apache.org/).
-
-Dumbster SMTP test server
-Copyright 2004 Jason Paul Kitchen
diff --git a/log4j-core-test/src/test/resources/SmtpAppenderAsyncTest.xml b/log4j-core-test/src/test/resources/SmtpAppenderAsyncTest.xml
deleted file mode 100644
index 3c63f926f5..0000000000
--- a/log4j-core-test/src/test/resources/SmtpAppenderAsyncTest.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<Configuration name="SmtpAppenderAsyncTest" status="off">
-    <Appenders>
-        <SMTP name="mail-sync" to="to@example.com" from="from@example.com" smtpHost="localhost"
-              smtpPort="${sys:smtp.port}" ignoreExceptions="false" subject="[%X{MDC1}]">
-            <PatternLayout pattern="Body:[%X{MDC1}]" />
-        </SMTP>
-        <Async name="mail-async">
-            <AppenderRef ref="mail-sync"/>
-        </Async>
-        <Console name="Console" target="SYSTEM_OUT">
-            <PatternLayout pattern="%d [%t] %-5level: %msg%n%throwable" />
-        </Console>
-    </Appenders>
-    <Loggers>
-        <Root level="FATAL">
-          <AppenderRef ref="Console"/>
-        </Root>
-        <Logger name="sync" level="INFO">
-            <AppenderRef ref="mail-sync"/>
-        </Logger>
-        <Logger name="async" level="INFO">
-            <AppenderRef ref="mail-async"/>
-        </Logger>
-    </Loggers>
-</Configuration>
diff --git a/log4j-core/pom.xml b/log4j-core/pom.xml
index ba6f896b71..a8fbfc2edd 100644
--- a/log4j-core/pom.xml
+++ b/log4j-core/pom.xml
@@ -48,7 +48,6 @@
       <!-- java.sql -->
       java.sql.*;resolution:=optional,
       <!-- java.xml -->
-      javax.xml.*;resolution:=optional,
       org.w3c.*;resolution:=optional,
       org.xml.*;resolution:=optional,
       <!-- jdk.unsupported -->
@@ -140,18 +139,6 @@
       <artifactId>jctools-core</artifactId>
       <optional>true</optional>
     </dependency>
-    <!-- Replacement for `jakarta.xml.bind` Jackson dependency -->
-    <dependency>
-      <groupId>javax.activation</groupId>
-      <artifactId>javax.activation-api</artifactId>
-      <scope>runtime</scope>
-    </dependency>
-    <!-- Replacement for `jakarta.xml.bind` Jackson dependency -->
-    <dependency>
-      <groupId>javax.xml.bind</groupId>
-      <artifactId>jaxb-api</artifactId>
-      <scope>runtime</scope>
-    </dependency>
     <!-- POM for jackson-dataformat-xml depends on woodstox-core -->
     <dependency>
       <groupId>com.fasterxml.woodstox</groupId>
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/AbstractDatabaseAppender.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/AbstractDatabaseAppender.java
index 9e713054cd..c1e282a5db 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/AbstractDatabaseAppender.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/AbstractDatabaseAppender.java
@@ -84,7 +84,7 @@ public abstract class AbstractDatabaseAppender<T extends AbstractDatabaseManager
     }
 
     /**
-     * This always returns {@code null}, as database appenders do not use a single layout. The JPA and NoSQL appenders
+     * This always returns {@code null}, as database appenders do not use a single layout. NoSQL appenders
      * do not use a layout at all. The JDBC appender has a layout-per-column pattern.
      *
      * @return {@code null}.
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/Interpolator.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/Interpolator.java
index e721c9530e..c34035c93b 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/Interpolator.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/Interpolator.java
@@ -125,8 +125,8 @@ public class Interpolator extends AbstractConfigurationAwareLookup implements Lo
                         "JMX lookups will not be available, continuing configuration. Ignoring " + t);
                 break;
             case LOOKUP_KEY_WEB:
-                LOGGER.info("Log4j appears to be running in a Servlet environment, but there's no log4j-web module " +
-                        "available. If you want better web container support, please add the log4j-web JAR to your " +
+                LOGGER.info("Log4j appears to be running in a Servlet environment, but there's no `log4j-jakarta-web` module " +
+                        "available. If you want better web container support, please add the `log4j-jakarta-web` JAR to your " +
                         "web archive or server lib directory.");
                 break;
             case LOOKUP_KEY_DOCKER: case LOOKUP_KEY_SPRING:
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/net/package-info.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/net/package-info.java
index 5bc2e4b5cd..7bae29cce2 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/net/package-info.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/net/package-info.java
@@ -20,7 +20,6 @@
  *     <li>Java Message System appenders (both queue-based and topic-based)</li>
  *     <li>Zeroconf support for finding logging systems</li>
  *     <li>TCP and UDP socket servers for sending and receiving log events</li>
- *     <li>JavaMail appenders for sending log events over SMTP</li>
  *     <li>Syslog network log event support</li>
  * </ul>
  */
diff --git a/log4j-distribution/pom.xml b/log4j-distribution/pom.xml
index 4483fe7f35..d490ce794d 100644
--- a/log4j-distribution/pom.xml
+++ b/log4j-distribution/pom.xml
@@ -225,30 +225,6 @@
       <version>${project.version}</version>
       <classifier>sources</classifier>
     </dependency>
-    <!-- log4j-jakarta-web -->
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-jakarta-web</artifactId>
-      <version>${project.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-jakarta-web</artifactId>
-      <version>${project.version}</version>
-      <classifier>sources</classifier>
-    </dependency>
-    <!-- log4j-jakarta-smtp -->
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-jakarta-smtp</artifactId>
-      <version>${project.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-jakarta-smtp</artifactId>
-      <version>${project.version}</version>
-      <classifier>sources</classifier>
-    </dependency>
     <!-- log4j-jcl -->
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
@@ -309,18 +285,6 @@
       <version>${project.version}</version>
       <classifier>sources</classifier>
     </dependency>
-    <!-- log4j-jpa -->
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-jpa</artifactId>
-      <version>${project.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-jpa</artifactId>
-      <version>${project.version}</version>
-      <classifier>sources</classifier>
-    </dependency>
     <!-- log4j-jpl -->
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
@@ -549,18 +513,6 @@
         </exclusion>
       </exclusions>
     </dependency>
-    <!-- log4j-smtp -->
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-smtp</artifactId>
-      <version>${project.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-smtp</artifactId>
-      <version>${project.version}</version>
-      <classifier>sources</classifier>
-    </dependency>
     <!-- log4j-spring-boot -->
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
@@ -585,18 +537,6 @@
       <version>${project.version}</version>
       <classifier>sources</classifier>
     </dependency>
-    <!-- log4j-taglib -->
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-taglib</artifactId>
-      <version>${project.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-taglib</artifactId>
-      <version>${project.version}</version>
-      <classifier>sources</classifier>
-    </dependency>
     <!-- log4j-to-jul -->
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
@@ -621,18 +561,6 @@
       <version>${project.version}</version>
       <classifier>sources</classifier>
     </dependency>
-    <!-- log4j-web -->
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-web</artifactId>
-      <version>${project.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-web</artifactId>
-      <version>${project.version}</version>
-      <classifier>sources</classifier>
-    </dependency>
   </dependencies>
   <build>
     <plugins>
diff --git a/log4j-jakarta-web/pom.xml b/log4j-jakarta-web/pom.xml
deleted file mode 100644
index 2d2a0fc585..0000000000
--- a/log4j-jakarta-web/pom.xml
+++ /dev/null
@@ -1,111 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <parent>
-    <groupId>org.apache.logging.log4j</groupId>
-    <artifactId>log4j</artifactId>
-    <version>${revision}</version>
-    <relativePath>../log4j-parent</relativePath>
-  </parent>
-
-  <artifactId>log4j-jakarta-web</artifactId>
-  <packaging>jar</packaging>
-  <name>Apache Log4j Jakarta Web</name>
-  <description>The Apache Log4j support for Jakarta EE 9+ web servlet containers</description>
-
-  <properties>
-    <log4jParentDir>${basedir}/..</log4jParentDir>
-    <docLabel>Web Documentation</docLabel>
-    <projectDir>/log4j-jakarta-web</projectDir>
-
-    <!--
-      ~ OSGi and JPMS options
-      -->
-    <bnd-module-name>org.apache.logging.log4j.web</bnd-module-name>
-    <Fragment-Host>org.apache.logging.log4j.core</Fragment-Host>
-  </properties>
-
-  <dependencies>
-    <dependency>
-      <groupId>jakarta.servlet</groupId>
-      <artifactId>jakarta.servlet-api</artifactId>
-      <scope>provided</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-api</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-core</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-plugins</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-core-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.hamcrest</groupId>
-      <artifactId>hamcrest</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.junit.jupiter</groupId>
-      <artifactId>junit-jupiter-engine</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.mockito</groupId>
-      <artifactId>mockito-core</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.mockito</groupId>
-      <artifactId>mockito-junit-jupiter</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.springframework</groupId>
-      <artifactId>spring-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <annotationProcessorPaths combine.children="append">
-            <path>
-              <groupId>org.apache.logging.log4j</groupId>
-              <artifactId>log4j-plugin-processor</artifactId>
-              <version>${project.version}</version>
-            </path>
-          </annotationProcessorPaths>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
-</project>
diff --git a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jServletContainerInitializer.java b/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jServletContainerInitializer.java
deleted file mode 100644
index 4665b7adfa..0000000000
--- a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jServletContainerInitializer.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web;
-
-import java.util.EnumSet;
-import java.util.Set;
-
-import jakarta.servlet.DispatcherType;
-import jakarta.servlet.FilterRegistration;
-import jakarta.servlet.ServletContainerInitializer;
-import jakarta.servlet.ServletContext;
-import jakarta.servlet.ServletException;
-
-import org.apache.logging.log4j.Logger;
-import org.apache.logging.log4j.status.StatusLogger;
-
-/**
- * In a Servlet 3.0 or newer environment, this initializer is responsible for starting up Log4j logging before anything
- * else happens in application initialization. For consistency across all containers, if the effective Servlet major
- * version of the application is less than 3.0, this initializer does nothing.
- */
-public class Log4jServletContainerInitializer implements ServletContainerInitializer {
-
-    @Override
-    public void onStartup(final Set<Class<?>> classes, final ServletContext servletContext) throws ServletException {
-        if (servletContext.getMajorVersion() > 2 && servletContext.getEffectiveMajorVersion() > 2 &&
-                !"true".equalsIgnoreCase(servletContext.getInitParameter(
-                        Log4jWebSupport.IS_LOG4J_AUTO_INITIALIZATION_DISABLED
-                ))) {
-            final Logger LOGGER = StatusLogger.getLogger();
-
-            LOGGER.debug("Log4jServletContainerInitializer starting up Log4j in Servlet 3.0+ environment.");
-
-            final FilterRegistration.Dynamic filter =
-                    servletContext.addFilter("log4jServletFilter", Log4jServletFilter.class);
-            if (filter == null) {
-                LOGGER.warn("WARNING: In a Servlet 3.0+ application, you should not define a " +
-                    "log4jServletFilter in web.xml. Log4j 2 normally does this for you automatically. Log4j 2 " +
-                    "web auto-initialization has been canceled.");
-                return;
-            }
-
-            final Log4jWebLifeCycle initializer = WebLoggerContextUtils.getWebLifeCycle(servletContext);
-            initializer.start();
-            initializer.setLoggerContext(); // the application is just now starting to start up
-
-            if (!"true".equalsIgnoreCase(servletContext.getInitParameter(
-                    Log4jWebSupport.IS_LOG4J_AUTO_SHUTDOWN_DISABLED))) {
-                servletContext.addListener(new Log4jServletContextListener());
-            }
-
-            filter.setAsyncSupported(true); // supporting async when the user isn't using async has no downsides
-            filter.addMappingForUrlPatterns(EnumSet.allOf(DispatcherType.class), false, "/*");
-        }
-    }
-}
diff --git a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jServletContextListener.java b/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jServletContextListener.java
deleted file mode 100644
index a54c10aee3..0000000000
--- a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jServletContextListener.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web;
-
-import java.util.concurrent.TimeUnit;
-
-import jakarta.servlet.ServletContext;
-import jakarta.servlet.ServletContextEvent;
-import jakarta.servlet.ServletContextListener;
-
-import org.apache.logging.log4j.Logger;
-import org.apache.logging.log4j.status.StatusLogger;
-import org.apache.logging.log4j.util.Strings;
-
-import static org.apache.logging.log4j.util.Strings.toRootUpperCase;
-
-/**
- * In environments older than Servlet 3.0, this initializer is responsible for starting up Log4j logging before anything
- * else happens in application initialization. In all environments, this shuts down Log4j after the application shuts
- * down.
- */
-public class Log4jServletContextListener implements ServletContextListener {
-
-    static final int DEFAULT_STOP_TIMEOUT = 30;
-    static final TimeUnit DEFAULT_STOP_TIMEOUT_TIMEUNIT = TimeUnit.SECONDS;
-
-    private static final String KEY_STOP_TIMEOUT = "log4j.stop.timeout";
-    private static final String KEY_STOP_TIMEOUT_TIMEUNIT = "log4j.stop.timeout.timeunit";
-
-    private static final Logger LOGGER = StatusLogger.getLogger();
-
-    private ServletContext servletContext;
-    private Log4jWebLifeCycle initializer;
-
-    @Override
-    public void contextInitialized(final ServletContextEvent event) {
-        this.servletContext = event.getServletContext();
-        LOGGER.debug("Log4jServletContextListener ensuring that Log4j starts up properly.");
-
-        if ("true".equalsIgnoreCase(servletContext.getInitParameter(
-                Log4jWebSupport.IS_LOG4J_AUTO_SHUTDOWN_DISABLED))) {
-            throw new IllegalStateException("Do not use " + getClass().getSimpleName() + " when "
-                    + Log4jWebSupport.IS_LOG4J_AUTO_SHUTDOWN_DISABLED + " is true. Please use "
-                    + Log4jShutdownOnContextDestroyedListener.class.getSimpleName() + " instead of "
-                    + getClass().getSimpleName() + ".");
-        }
-
-        this.initializer = WebLoggerContextUtils.getWebLifeCycle(this.servletContext);
-        try {
-            this.initializer.start();
-            this.initializer.setLoggerContext(); // the application is just now starting to start up
-        } catch (final IllegalStateException e) {
-            throw new IllegalStateException("Failed to initialize Log4j properly.", e);
-        }
-    }
-
-    @Override
-    public void contextDestroyed(final ServletContextEvent event) {
-        if (this.servletContext == null || this.initializer == null) {
-            LOGGER.warn("Context destroyed before it was initialized.");
-            return;
-        }
-        LOGGER.debug("Log4jServletContextListener ensuring that Log4j shuts down properly.");
-
-        this.initializer.clearLoggerContext(); // the application is finished
-        // shutting down now
-        final String stopTimeoutStr = servletContext.getInitParameter(KEY_STOP_TIMEOUT);
-        final long stopTimeout = Strings.isEmpty(stopTimeoutStr) ? DEFAULT_STOP_TIMEOUT
-                : Long.parseLong(stopTimeoutStr);
-        final String timeoutTimeUnitStr = servletContext.getInitParameter(KEY_STOP_TIMEOUT_TIMEUNIT);
-        final TimeUnit timeoutTimeUnit = Strings.isEmpty(timeoutTimeUnitStr) ? DEFAULT_STOP_TIMEOUT_TIMEUNIT
-                : TimeUnit.valueOf(toRootUpperCase(timeoutTimeUnitStr));
-        this.initializer.stop(stopTimeout, timeoutTimeUnit);
-    }
-}
diff --git a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jServletFilter.java b/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jServletFilter.java
deleted file mode 100644
index af9a5af05b..0000000000
--- a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jServletFilter.java
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web;
-
-import java.io.IOException;
-
-import jakarta.servlet.Filter;
-import jakarta.servlet.FilterChain;
-import jakarta.servlet.FilterConfig;
-import jakarta.servlet.ServletContext;
-import jakarta.servlet.ServletException;
-import jakarta.servlet.ServletRequest;
-import jakarta.servlet.ServletResponse;
-
-import org.apache.logging.log4j.Logger;
-import org.apache.logging.log4j.status.StatusLogger;
-
-/**
- * This is responsible for the following:
- * <ul>
- *     <li>Clearing the logger context when the application has finished starting up.</li>
- *     <li>Setting the logger context before processing a request and clearing it after processing a request.</li>
- *     <li>Setting the logger context when the application is starting to shut down.</li>
- * </ul>
- * This filter is a once-per-request filter. It is capable of filtering all the different types of requests
- * (standard, asynchronous, error, etc.) but will not apply processing if the filter matches multiple times on the same
- * logical request.
- */
-public class Log4jServletFilter implements Filter {
-
-    private static final Logger LOGGER = StatusLogger.getLogger();
-
-    static final String ALREADY_FILTERED_ATTRIBUTE = Log4jServletFilter.class.getName() + ".FILTERED";
-
-    private ServletContext servletContext;
-    private Log4jWebLifeCycle initializer;
-
-    @Override
-    public void init(final FilterConfig filterConfig) throws ServletException {
-        this.servletContext = filterConfig.getServletContext();
-        LOGGER.debug("Log4jServletFilter initialized.");
-
-        this.initializer = WebLoggerContextUtils.getWebLifeCycle(this.servletContext);
-        this.initializer.clearLoggerContext(); // the application is mostly finished starting up now
-    }
-
-    @Override
-    public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain)
-            throws IOException, ServletException {
-        if (request.getAttribute(ALREADY_FILTERED_ATTRIBUTE) != null) {
-            chain.doFilter(request, response);
-        } else {
-            request.setAttribute(ALREADY_FILTERED_ATTRIBUTE, Boolean.TRUE);
-
-            try {
-                this.initializer.setLoggerContext();
-
-                chain.doFilter(request, response);
-            } finally {
-                this.initializer.clearLoggerContext();
-            }
-        }
-    }
-
-    @Override
-    public void destroy() {
-        if (this.servletContext == null || this.initializer == null) {
-            throw new IllegalStateException("Filter destroyed before it was initialized.");
-        }
-        LOGGER.debug("Log4jServletFilter destroyed.");
-
-        this.initializer.setLoggerContext(); // the application is just now starting to shut down
-    }
-}
diff --git a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jShutdownOnContextDestroyedListener.java b/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jShutdownOnContextDestroyedListener.java
deleted file mode 100644
index 9a2e6a8948..0000000000
--- a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jShutdownOnContextDestroyedListener.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web;
-
-import java.util.concurrent.TimeUnit;
-
-import jakarta.servlet.ServletContext;
-import jakarta.servlet.ServletContextEvent;
-import jakarta.servlet.ServletContextListener;
-
-import org.apache.logging.log4j.Logger;
-import org.apache.logging.log4j.status.StatusLogger;
-import org.apache.logging.log4j.util.Strings;
-
-import static org.apache.logging.log4j.util.Strings.toRootUpperCase;
-
-public class Log4jShutdownOnContextDestroyedListener implements ServletContextListener {
-
-    static final int DEFAULT_STOP_TIMEOUT = 30;
-    static final TimeUnit DEFAULT_STOP_TIMEOUT_TIMEUNIT = TimeUnit.SECONDS;
-
-    private static final String KEY_STOP_TIMEOUT = "log4j.stop.timeout";
-    private static final String KEY_STOP_TIMEOUT_TIMEUNIT = "log4j.stop.timeout.timeunit";
-
-    private static final Logger LOGGER = StatusLogger.getLogger();
-
-    private ServletContext servletContext;
-    private Log4jWebLifeCycle initializer;
-
-    @Override
-    public void contextInitialized(final ServletContextEvent event) {
-        LOGGER.debug(Log4jShutdownOnContextDestroyedListener.class.getSimpleName() +
-                " ensuring that Log4j started up properly.");
-        servletContext = event.getServletContext();
-        if (null == servletContext.getAttribute(Log4jWebSupport.SUPPORT_ATTRIBUTE)) {
-            throw new IllegalStateException(
-                    "Context did not contain required Log4jWebLifeCycle in the "
-                    + Log4jWebSupport.SUPPORT_ATTRIBUTE + " attribute.");
-        }
-        this.initializer = WebLoggerContextUtils.getWebLifeCycle(servletContext);
-    }
-
-    @Override
-    public void contextDestroyed(final ServletContextEvent event) {
-        if (this.servletContext == null || this.initializer == null) {
-            LOGGER.warn("Context destroyed before it was initialized.");
-            return;
-        }
-        LOGGER.debug(Log4jShutdownOnContextDestroyedListener.class.getSimpleName() +
-                " ensuring that Log4j shuts down properly.");
-
-        this.initializer.clearLoggerContext(); // the application is finished
-        // shutting down now
-        final String stopTimeoutStr = servletContext.getInitParameter(KEY_STOP_TIMEOUT);
-        final long stopTimeout = Strings.isEmpty(stopTimeoutStr) ? DEFAULT_STOP_TIMEOUT
-                : Long.parseLong(stopTimeoutStr);
-        final String timeoutTimeUnitStr = servletContext.getInitParameter(KEY_STOP_TIMEOUT_TIMEUNIT);
-        final TimeUnit timeoutTimeUnit = Strings.isEmpty(timeoutTimeUnitStr) ? DEFAULT_STOP_TIMEOUT_TIMEUNIT
-                : TimeUnit.valueOf(toRootUpperCase(timeoutTimeUnitStr));
-        this.initializer.stop(stopTimeout, timeoutTimeUnit);
-    }
-}
diff --git a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java b/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java
deleted file mode 100644
index d8ce29d246..0000000000
--- a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jWebInitializerImpl.java
+++ /dev/null
@@ -1,317 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web;
-
-import java.net.URI;
-import java.net.URL;
-import java.text.SimpleDateFormat;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Date;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.concurrent.ConcurrentHashMap;
-import java.util.concurrent.TimeUnit;
-
-import jakarta.servlet.ServletContext;
-
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.core.AbstractLifeCycle;
-import org.apache.logging.log4j.core.LoggerContext;
-import org.apache.logging.log4j.core.async.AsyncLoggerContext;
-import org.apache.logging.log4j.core.config.Configurator;
-import org.apache.logging.log4j.core.impl.ContextAnchor;
-import org.apache.logging.log4j.core.impl.Log4jContextFactory;
-import org.apache.logging.log4j.core.lookup.ConfigurationStrSubstitutor;
-import org.apache.logging.log4j.core.lookup.Interpolator;
-import org.apache.logging.log4j.core.lookup.StrSubstitutor;
-import org.apache.logging.log4j.core.selector.ContextSelector;
-import org.apache.logging.log4j.core.selector.NamedContextSelector;
-import org.apache.logging.log4j.core.util.Loader;
-import org.apache.logging.log4j.core.util.NetUtils;
-import org.apache.logging.log4j.spi.LoggerContextFactory;
-import org.apache.logging.log4j.util.LoaderUtil;
-import org.apache.logging.log4j.util.Strings;
-
-/**
- * This class initializes and deinitializes Log4j no matter how the initialization occurs.
- */
-final class Log4jWebInitializerImpl extends AbstractLifeCycle implements Log4jWebLifeCycle {
-
-    private static final String WEB_INF = "/WEB-INF/";
-
-    static {
-        if (Loader.isClassAvailable("org.apache.logging.log4j.core.web.JNDIContextFilter")) {
-            throw new IllegalStateException("You are using Log4j 2 in a web application with the old, extinct "
-                    + "log4j-web artifact. This is not supported and could cause serious runtime problems. Please"
-                    + "remove the log4j-web JAR file from your application.");
-        }
-    }
-
-    private final Map<String, String> map = new ConcurrentHashMap<>();
-    private final StrSubstitutor substitutor = new ConfigurationStrSubstitutor(new Interpolator(map));
-    private final ServletContext servletContext;
-
-    private String name;
-    private NamedContextSelector namedContextSelector;
-    private LoggerContext loggerContext;
-
-    private Log4jWebInitializerImpl(final ServletContext servletContext) {
-        this.servletContext = servletContext;
-        this.map.put("hostName", NetUtils.getLocalHostname());
-    }
-
-    /**
-     * Initializes the Log4jWebLifeCycle attribute of a ServletContext. Those who wish to obtain this object should use
-     * the {@link org.apache.logging.log4j.web.WebLoggerContextUtils#getWebLifeCycle(jakarta.servlet.ServletContext)}
-     * method instead.
-     *
-     * @param servletContext
-     *        the ServletContext to initialize
-     * @return a new Log4jWebLifeCycle
-     * @since 2.0.1
-     */
-    protected static Log4jWebInitializerImpl initialize(final ServletContext servletContext) {
-        final Log4jWebInitializerImpl initializer = new Log4jWebInitializerImpl(servletContext);
-        servletContext.setAttribute(SUPPORT_ATTRIBUTE, initializer);
-        return initializer;
-    }
-
-    @Override
-    public synchronized void start() {
-        if (this.isStopped() || this.isStopping()) {
-            throw new IllegalStateException("Cannot start this Log4jWebInitializerImpl after it was stopped.");
-        }
-
-        // only do this once
-        if (this.isInitialized()) {
-            super.setStarting();
-
-            this.name = this.substitutor.replace(this.servletContext.getInitParameter(LOG4J_CONTEXT_NAME));
-            final String location = this.substitutor.replace(this.servletContext
-                    .getInitParameter(LOG4J_CONFIG_LOCATION));
-            final boolean isJndi = "true".equalsIgnoreCase(this.servletContext
-                    .getInitParameter(IS_LOG4J_CONTEXT_SELECTOR_NAMED));
-
-            if (isJndi) {
-                this.initializeJndi(location);
-            } else {
-                this.initializeNonJndi(location);
-            }
-            if (this.loggerContext instanceof AsyncLoggerContext) {
-                ((AsyncLoggerContext) this.loggerContext).setUseThreadLocals(false);
-            }
-
-            this.servletContext.setAttribute(CONTEXT_ATTRIBUTE, this.loggerContext);
-            super.setStarted();
-        }
-    }
-
-    private void initializeJndi(final String location) {
-        final URI configLocation = getConfigURI(location);
-
-        if (this.name == null) {
-            throw new IllegalStateException("A log4jContextName context parameter is required");
-        }
-
-        LoggerContext context;
-        final LoggerContextFactory factory = LogManager.getFactory();
-        if (factory instanceof Log4jContextFactory) {
-            final ContextSelector selector = ((Log4jContextFactory) factory).getSelector();
-            if (selector instanceof NamedContextSelector) {
-                this.namedContextSelector = (NamedContextSelector) selector;
-                context = this.namedContextSelector.locateContext(this.name,
-                        WebLoggerContextUtils.createExternalEntry(this.servletContext), configLocation);
-                ContextAnchor.THREAD_CONTEXT.set(context);
-                if (context.isInitialized()) {
-                    context.start();
-                }
-                ContextAnchor.THREAD_CONTEXT.remove();
-            } else {
-                LOGGER.warn("Potential problem: Selector is not an instance of NamedContextSelector.");
-                return;
-            }
-        } else {
-            LOGGER.warn("Potential problem: LoggerContextFactory is not an instance of Log4jContextFactory.");
-            return;
-        }
-        this.loggerContext = context;
-        LOGGER.debug("Created logger context for [{}] using [{}].", this.name, context.getClass().getClassLoader());
-    }
-
-    private void initializeNonJndi(final String location) {
-        if (this.name == null) {
-            this.name = this.servletContext.getServletContextName();
-            LOGGER.debug("Using the servlet context name \"{}\".", this.name);
-        }
-        if (this.name == null) {
-            this.name = this.servletContext.getContextPath();
-            LOGGER.debug("Using the servlet context context-path \"{}\".", this.name);
-        }
-        if (this.name == null && location == null) {
-            LOGGER.error("No Log4j context configuration provided. This is very unusual.");
-            this.name = new SimpleDateFormat("yyyyMMdd_HHmmss.SSS").format(new Date());
-        }
-        if (location != null && location.contains(",")) {
-            final List<URI> uris = getConfigURIs(location);
-            this.loggerContext = Configurator.initialize(this.name, this.getClassLoader(), uris,
-                    WebLoggerContextUtils.createExternalEntry(this.servletContext));
-            return;
-        }
-
-        final URI uri = getConfigURI(location);
-        this.loggerContext = Configurator.initialize(this.name, this.getClassLoader(), uri,
-                WebLoggerContextUtils.createExternalEntry(this.servletContext));
-    }
-
-    private List<URI> getConfigURIs(final String location) {
-        final String[] parts = location.split(",");
-        final List<URI> uris = new ArrayList<>(parts.length);
-        for (final String part : parts) {
-            final URI uri = getConfigURI(part);
-            if (uri != null) {
-                uris.add(uri);
-            }
-        }
-        return uris;
-    }
-
-    private URI getConfigURI(final String location) {
-        try {
-            String configLocation = location;
-            if (configLocation == null) {
-                final String[] paths = prefixSet(servletContext.getResourcePaths(WEB_INF), WEB_INF + "log4j2");
-                LOGGER.debug("getConfigURI found resource paths {} in servletContext at [{}]", Arrays.toString(paths), WEB_INF);
-                if (paths.length == 1) {
-                    configLocation = paths[0];
-                } else if (paths.length > 1) {
-                    final String prefix = WEB_INF + "log4j2-" + this.name + ".";
-                    boolean found = false;
-                    for (final String str : paths) {
-                        if (str.startsWith(prefix)) {
-                            configLocation = str;
-                            found = true;
-                            break;
-                        }
-                    }
-                    if (!found) {
-                        configLocation = paths[0];
-                    }
-                }
-            }
-            if (configLocation != null) {
-                final URL url = servletContext.getResource(configLocation);
-                if (url != null) {
-                    final URI uri = url.toURI();
-                    LOGGER.debug("getConfigURI found resource [{}] in servletContext at [{}]", uri, configLocation);
-                    return uri;
-                }
-            }
-        } catch (final Exception ex) {
-            // Just try passing the location.
-        }
-        if (location != null) {
-            try {
-                final URI correctedFilePathUri = NetUtils.toURI(location);
-                LOGGER.debug("getConfigURI found [{}] in servletContext at [{}]", correctedFilePathUri, location);
-                return correctedFilePathUri;
-            } catch (final Exception e) {
-                LOGGER.error("Unable to convert configuration location [{}] to a URI", location, e);
-            }
-        }
-        return null;
-    }
-
-    /**
-     * Collects strings starting with the given {@code prefix} from the given {@code set}.
-     *
-     * @param set a (nullable) set of strings
-     * @param prefix a prefix to look for in the string set
-     * @return an array of the matching strings from the given set
-     */
-    @SuppressWarnings("SameParameterValue")
-    private static String[] prefixSet(final Set<String> set, final String prefix) {
-        if (set == null) {
-            return Strings.EMPTY_ARRAY;
-        }
-        return set
-                .stream()
-                .filter(string -> string.startsWith(prefix))
-                .toArray(String[]::new);
-    }
-
-    @Override
-    public synchronized boolean stop(final long timeout, final TimeUnit timeUnit) {
-        if (!this.isStarted() && !this.isStopped()) {
-            throw new IllegalStateException("Cannot stop this Log4jWebInitializer because it has not started.");
-        }
-
-        // only do this once
-        if (this.isStarted()) {
-            this.setStopping();
-            if (this.loggerContext != null) {
-                LOGGER.debug("Removing LoggerContext for [{}].", this.name);
-                this.servletContext.removeAttribute(CONTEXT_ATTRIBUTE);
-                if (this.namedContextSelector != null) {
-                    this.namedContextSelector.removeContext(this.name);
-                }
-                this.loggerContext.stop(timeout, timeUnit);
-                this.loggerContext.setExternalContext(null);
-                this.loggerContext = null;
-            }
-            this.setStopped();
-        }
-        return super.stop(timeout, timeUnit);
-    }
-
-    @Override
-    public void setLoggerContext() {
-        if (this.loggerContext != null) {
-            ContextAnchor.THREAD_CONTEXT.set(this.loggerContext);
-        }
-    }
-
-    @Override
-    public void clearLoggerContext() {
-        ContextAnchor.THREAD_CONTEXT.remove();
-    }
-
-    @Override
-    public void wrapExecution(final Runnable runnable) {
-        this.setLoggerContext();
-
-        try {
-            runnable.run();
-        } finally {
-            this.clearLoggerContext();
-        }
-    }
-
-    private ClassLoader getClassLoader() {
-        try {
-            // if container is Servlet 3.0, use its getClassLoader method
-            // this may look odd, but the call below will throw NoSuchMethodError if user is on Servlet 2.5
-            // we compile against 3.0 to support Log4jServletContainerInitializer, but we don't require 3.0
-            return this.servletContext.getClassLoader();
-        } catch (final Throwable ignore) {
-            // LOG4J2-248: use TCCL if possible
-            return LoaderUtil.getThreadContextClassLoader();
-        }
-    }
-
-}
diff --git a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jWebLifeCycle.java b/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jWebLifeCycle.java
deleted file mode 100644
index eca9fa7011..0000000000
--- a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jWebLifeCycle.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web;
-
-import org.apache.logging.log4j.core.LifeCycle;
-
-/**
- * Specifies an interface for initializing and deinitializing Log4j in a Java EE web application. The default and only
- * implementation is {@link Log4jWebInitializerImpl}. The initializer is based on an interface to improve testability.
- * The methods here are contained in a package-private sub-interface because general application code should not have
- * access to them.
- */
-interface Log4jWebLifeCycle extends Log4jWebSupport, LifeCycle {
-
-    /**
-     * Starts up Log4j in the web application. Calls {@link #setLoggerContext()} after initialization is complete.
-     *
-     * @throws IllegalStateException if a JNDI config location is specified but no name is specified.
-     */
-    @Override
-    void start();
-
-    /**
-     * Shuts down Log4j in the web application. Calls {@link #clearLoggerContext()} immediately before deinitialization
-     * begins.
-     */
-    @Override
-    void stop();
-}
diff --git a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jWebSupport.java b/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jWebSupport.java
deleted file mode 100644
index 6b445d564c..0000000000
--- a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jWebSupport.java
+++ /dev/null
@@ -1,95 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web;
-
-import org.apache.logging.log4j.spi.LoggerContext;
-
-/**
- * Specifies an interface for setting and clearing a thread-bound {@link LoggerContext} in a Java EE web application.
- * Also defines constants for context parameter and attribute names. In most cases you will never need to use this
- * directly because the Log4j filter handles this task automatically. However, in async operations you should wrap
- * code that executes in separate threads with {@link #setLoggerContext} and {@link #clearLoggerContext}.
- *
- * <p>
- * You can obtain the instance of this for your web application by retrieving the {@link jakarta.servlet.ServletContext}
- * attribute named {@code org.apache.logging.log4j.core.web.Log4jWebSupport.INSTANCE}. If needed, you can also obtain
- * the {@link LoggerContext} instance for your web application by retrieving the {@code ServletContext} attribute named
- * {@code org.apache.logging.log4j.spi.LoggerContext.INSTANCE}.
- * </p>
- */
-public interface Log4jWebSupport {
-    /**
-     * The {@link jakarta.servlet.ServletContext} parameter name for the name of the
-     * {@link org.apache.logging.log4j.core.LoggerContext}.
-     */
-    String LOG4J_CONTEXT_NAME = "log4jContextName";
-
-    /**
-     * The {@link jakarta.servlet.ServletContext} parameter name for the location of the configuration.
-     */
-    String LOG4J_CONFIG_LOCATION = "log4jConfiguration";
-
-    /**
-     * The {@link jakarta.servlet.ServletContext} parameter name for the JNDI flag.
-     */
-    String IS_LOG4J_CONTEXT_SELECTOR_NAMED = "isLog4jContextSelectorNamed";
-
-    /**
-     * The {@link jakarta.servlet.ServletContext} parameter name for the flag that disables Log4j's auto-initialization
-     * in Servlet 3.0+ web applications. Set a context parameter with this name to "true" to disable
-     * auto-initialization.
-     */
-    String IS_LOG4J_AUTO_INITIALIZATION_DISABLED = "isLog4jAutoInitializationDisabled";
-
-    /**
-     * The {@link jakarta.servlet.ServletContext} parameter name for the flag that disables Log4j's auto-shutdown
-     * in Servlet 3.0+ web applications. Set a context parameter with this name to "true" to disable
-     * auto-shutdown.
-     */
-    String IS_LOG4J_AUTO_SHUTDOWN_DISABLED = "isLog4jAutoShutdownDisabled";
-
-    /**
-     * The attribute key for the {@link jakarta.servlet.ServletContext} attribute that the singleton support instance
-     * is stored in.
-     */
-    String SUPPORT_ATTRIBUTE = Log4jWebSupport.class.getName() + ".INSTANCE";
-
-    /**
-     * The attribute key for the {@link jakarta.servlet.ServletContext} attribute that the {@link LoggerContext}
-     * is stored in.
-     */
-    String CONTEXT_ATTRIBUTE = LoggerContext.class.getName() + ".INSTANCE";
-
-    /**
-     * Sets the logger context so that code executing afterwards can easily and quickly access loggers via
-     * {@link org.apache.logging.log4j.LogManager#getLogger}.
-     */
-    void setLoggerContext();
-
-    /**
-     * Clears the logger context set up in {@link #setLoggerContext}.
-     */
-    void clearLoggerContext();
-
-    /**
-     * Sets the logger context by calling {@link #setLoggerContext}, executes the runnable argument, then clears the
-     * logger context by calling {@link #clearLoggerContext}.
-     *
-     * @param runnable The runnable to execute wrapped with a configured logger context
-     */
-    void wrapExecution(Runnable runnable);
-}
diff --git a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/ServletRequestThreadContext.java b/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/ServletRequestThreadContext.java
deleted file mode 100644
index 91e2c8d509..0000000000
--- a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/ServletRequestThreadContext.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web;
-
-import java.util.Objects;
-
-import jakarta.servlet.ServletRequest;
-import jakarta.servlet.http.HttpServletRequest;
-
-import org.apache.logging.log4j.ThreadContext;
-
-public class ServletRequestThreadContext {
-
-    public static void put(final String key, final ServletRequest servletRequest) {
-        put(key, "RemoteAddr", servletRequest.getRemoteAddr());
-        put(key, "RemoteHost", servletRequest.getRemoteHost());
-        put(key, "RemotePort", servletRequest.getRemotePort());
-    }
-
-    public static void put(final String key, final String field, final Object value) {
-        put(key + "." + field, Objects.toString(value));
-    }
-
-    public static void put(final String key, final String value) {
-        ThreadContext.put(key, value);
-    }
-
-    public static void put(final String key, final HttpServletRequest servletRequest) {
-        put(key, (ServletRequest) servletRequest);
-    }
-}
diff --git a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/WebLoggerContextUtils.java b/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/WebLoggerContextUtils.java
deleted file mode 100644
index 7b46eb8220..0000000000
--- a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/WebLoggerContextUtils.java
+++ /dev/null
@@ -1,144 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web;
-
-import java.util.AbstractMap;
-import java.util.Map;
-import java.util.concurrent.locks.Lock;
-import java.util.concurrent.locks.ReentrantLock;
-
-import jakarta.servlet.ServletContext;
-
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.core.LoggerContext;
-import org.apache.logging.log4j.core.impl.ContextAnchor;
-
-/**
- * Convenience methods for retrieving the {@link org.apache.logging.log4j.core.LoggerContext} associated with a
- * particular ServletContext. These methods are most particularly useful for asynchronous servlets where the
- * Thread Context ClassLoader (TCCL) is potentially different from the TCCL used by the
- * Servlet container that bootstrapped Log4j.
- *
- * @since 2.0.1
- */
-public final class WebLoggerContextUtils {
-    private WebLoggerContextUtils() {
-    }
-
-    private static final Lock WEB_SUPPORT_LOOKUP = new ReentrantLock();
-    private static final String SERVLET_CONTEXT = "__SERVLET_CONTEXT__";
-
-    /**
-     * Finds the main {@link org.apache.logging.log4j.core.LoggerContext} configured for the given ServletContext.
-     *
-     * @param servletContext the ServletContext to locate a LoggerContext for
-     * @return the LoggerContext for the given ServletContext
-     * @since 2.0.1
-     */
-    public static LoggerContext getWebLoggerContext(final ServletContext servletContext) {
-        return (LoggerContext) servletContext.getAttribute(Log4jWebSupport.CONTEXT_ATTRIBUTE);
-    }
-
-    /**
-     * Finds the main {@link org.apache.logging.log4j.core.LoggerContext} configured for the given ServletContext.
-     *
-     * @param servletContext the ServletContext to locate a LoggerContext for
-     * @return the LoggerContext for the given ServletContext or {@code null} if none was set
-     * @throws java.lang.IllegalStateException if no LoggerContext could be found on the given ServletContext
-     * @since 2.0.1
-     */
-    public static LoggerContext getRequiredWebLoggerContext(final ServletContext servletContext) {
-        final LoggerContext loggerContext = getWebLoggerContext(servletContext);
-        if (loggerContext == null) {
-            throw new IllegalStateException(
-                "No LoggerContext found in ServletContext attribute " + Log4jWebSupport.CONTEXT_ATTRIBUTE);
-        }
-        return loggerContext;
-    }
-
-    /**
-     * Finds or initializes the {@link org.apache.logging.log4j.web.Log4jWebLifeCycle} singleton for the given
-     * ServletContext.
-     *
-     * @param servletContext the ServletContext to get the Log4jWebLifeCycle for
-     * @return the Log4jWebLifeCycle for the given ServletContext
-     * @since 2.0.1
-     */
-    public static Log4jWebLifeCycle getWebLifeCycle(final ServletContext servletContext) {
-        WEB_SUPPORT_LOOKUP.lock();
-        try {
-            Log4jWebLifeCycle webLifeCycle = (Log4jWebLifeCycle) servletContext.getAttribute(
-                Log4jWebSupport.SUPPORT_ATTRIBUTE);
-            if (webLifeCycle == null) {
-                webLifeCycle = Log4jWebInitializerImpl.initialize(servletContext);
-            }
-            return webLifeCycle;
-        } finally {
-            WEB_SUPPORT_LOOKUP.unlock();
-        }
-    }
-
-    /**
-     * Wraps a Runnable instance by setting its thread context {@link org.apache.logging.log4j.core.LoggerContext}
-     * before execution and clearing it after execution.
-     *
-     * @param servletContext the ServletContext to locate a LoggerContext for
-     * @param runnable       the Runnable to wrap execution for
-     * @return a wrapped Runnable
-     * @since 2.0.1
-     */
-    public static Runnable wrapExecutionContext(final ServletContext servletContext, final Runnable runnable) {
-        return () -> {
-            final Log4jWebSupport webSupport = getWebLifeCycle(servletContext);
-            webSupport.setLoggerContext();
-            try {
-                runnable.run();
-            } finally {
-                webSupport.clearLoggerContext();
-            }
-        };
-    }
-
-    public static Map.Entry<String, Object> createExternalEntry(final ServletContext servletContext) {
-        return new AbstractMap.SimpleEntry<>(SERVLET_CONTEXT, servletContext);
-    }
-
-    public static void setServletContext(LoggerContext lc, ServletContext servletContext) {
-        if (lc != null) {
-            lc.putObject(SERVLET_CONTEXT, servletContext);
-        }
-    }
-
-    /**
-     * Gets the current {@link ServletContext} if it has already been assigned to a LoggerContext's external context.
-     *
-     * @return the current ServletContext attached to a LoggerContext or {@code null} if none could be found
-     * @since 2.1
-     */
-    public static ServletContext getServletContext() {
-        org.apache.logging.log4j.spi.LoggerContext lc = ContextAnchor.THREAD_CONTEXT.get();
-        if (lc == null) {
-            lc = LogManager.getContext(false);
-        }
-
-        final Object obj = lc != null ? lc.getObject(SERVLET_CONTEXT) : null;
-        if (obj instanceof ServletContext) {
-            return (ServletContext) obj;
-        }
-        return null;
-    }
-}
diff --git a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/WebLookup.java b/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/WebLookup.java
deleted file mode 100644
index 4fabb55f24..0000000000
--- a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/WebLookup.java
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web;
-// Please note that if you move this class, make sure to update the Interpolator class (if still applicable) or remove
-// this comment if no longer relevant
-
-import jakarta.servlet.ServletContext;
-
-import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.core.lookup.AbstractLookup;
-import org.apache.logging.log4j.plugins.Namespace;
-import org.apache.logging.log4j.plugins.Plugin;
-import org.apache.logging.log4j.util.Strings;
-
-@Namespace("Lookup")
-@Plugin("web")
-public class WebLookup extends AbstractLookup {
-    private static final String ATTR_PREFIX = "attr.";
-    private static final String INIT_PARAM_PREFIX = "initParam.";
-
-    @Override
-    public String lookup(final LogEvent event, final String key) {
-        final ServletContext ctx = WebLoggerContextUtils.getServletContext();
-        if (ctx == null) {
-            return null;
-        }
-
-        if (key.startsWith(ATTR_PREFIX)) {
-            final String attrName = key.substring(ATTR_PREFIX.length());
-            final Object attrValue = ctx.getAttribute(attrName);
-            return attrValue == null ? null : attrValue.toString();
-        }
-
-        if (key.startsWith(INIT_PARAM_PREFIX)) {
-            final String paramName = key.substring(INIT_PARAM_PREFIX.length());
-            return ctx.getInitParameter(paramName);
-        }
-
-        if ("rootDir".equals(key)) {
-            final String root = ctx.getRealPath("/");
-            if (root == null) {
-                final String msg = "Failed to resolve web:rootDir -- " +
-                        "servlet container unable to translate virtual path " +
-                        " to real path (probably not deployed as exploded";
-                throw new IllegalStateException(msg);
-            }
-            return root;
-        }
-
-        if ("contextPathName".equals(key)) {
-            final String path = ctx.getContextPath();
-            if (path.trim().contains("/")) {
-                final String[] fields = path.split("/");
-                for (String field : fields) {
-                    if (field.length() > 0) {
-                        return field;
-                    }
-                }
-                return null;
-            }
-            return ctx.getContextPath();
-        }
-
-        if ("contextPath".equals(key)) {
-            return ctx.getContextPath();
-        }
-
-        if ("servletContextName".equals(key)) {
-            return ctx.getServletContextName();
-        }
-
-        if ("serverInfo".equals(key)) {
-            return ctx.getServerInfo();
-        }
-
-        if ("effectiveMajorVersion".equals(key)) {
-            return String.valueOf(ctx.getEffectiveMajorVersion());
-        }
-
-        if ("effectiveMinorVersion".equals(key)) {
-            return String.valueOf(ctx.getEffectiveMinorVersion());
-        }
-
-        if ("majorVersion".equals(key)) {
-            return String.valueOf(ctx.getMajorVersion());
-        }
-
-        if ("minorVersion".equals(key)) {
-            return String.valueOf(ctx.getMinorVersion());
-        }
-
-        if (ctx.getAttribute(key) != null) {
-            return ctx.getAttribute(key).toString();
-        }
-
-        if (ctx.getInitParameter(key) != null) {
-            return ctx.getInitParameter(key);
-        }
-
-        ctx.log(getClass().getName() + " unable to resolve key " + Strings.quote(key));
-        return null;
-    }
-}
diff --git a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/appender/ServletAppender.java b/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/appender/ServletAppender.java
deleted file mode 100644
index 9b590f4ede..0000000000
--- a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/appender/ServletAppender.java
+++ /dev/null
@@ -1,103 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web.appender;
-
-import jakarta.servlet.ServletContext;
-
-import org.apache.logging.log4j.core.Appender;
-import org.apache.logging.log4j.core.Filter;
-import org.apache.logging.log4j.core.Layout;
-import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.core.appender.AbstractAppender;
-import org.apache.logging.log4j.core.config.Property;
-import org.apache.logging.log4j.plugins.Configurable;
-import org.apache.logging.log4j.plugins.Factory;
-import org.apache.logging.log4j.plugins.Plugin;
-import org.apache.logging.log4j.plugins.PluginBuilderAttribute;
-import org.apache.logging.log4j.web.WebLoggerContextUtils;
-
-/**
- * Logs using the ServletContext's log method
- */
-@Configurable(elementType = Appender.ELEMENT_TYPE, printObject = true)
-@Plugin("Servlet")
-public final class ServletAppender extends AbstractAppender {
-
-    public static class Builder<B extends Builder<B>> extends AbstractAppender.Builder<B>
-            implements org.apache.logging.log4j.plugins.util.Builder<ServletAppender> {
-
-        @PluginBuilderAttribute
-        private boolean logThrowables;
-
-        @Override
-        public ServletAppender build() {
-            final String name = getName();
-            if (name == null) {
-                LOGGER.error("No name provided for ServletAppender");
-            }
-            final ServletContext servletContext = WebLoggerContextUtils.getServletContext();
-            if (servletContext == null) {
-                LOGGER.error("No servlet context is available");
-                return null;
-            }
-            Layout layout = getOrCreateLayout();
-            return new ServletAppender(name, layout, getFilter(), servletContext, isIgnoreExceptions(), logThrowables);
-        }
-
-        /**
-         * Logs with {@link ServletContext#log(String, Throwable)} if true and with {@link ServletContext#log(String)} if false.
-         *
-         * @return whether to log a Throwable with the servlet context.
-         */
-        public boolean isLogThrowables() {
-            return logThrowables;
-        }
-
-        /**
-         * Logs with {@link ServletContext#log(String, Throwable)} if true and with {@link ServletContext#log(String)} if false.
-         */
-        public void setLogThrowables(final boolean logThrowables) {
-            this.logThrowables = logThrowables;
-        }
-
-    }
-
-    @Factory
-    public static <B extends Builder<B>> B newBuilder() {
-        return new Builder<B>().asBuilder();
-    }
-
-    private final ServletContext servletContext;
-    private final boolean logThrowables;
-
-    private ServletAppender(final String name, final Layout layout, final Filter filter,
-                            final ServletContext servletContext, final boolean ignoreExceptions, final boolean logThrowables) {
-        super(name, filter, layout, ignoreExceptions, Property.EMPTY_ARRAY);
-        this.servletContext = servletContext;
-        this.logThrowables = logThrowables;
-    }
-
-    @Override
-    public void append(final LogEvent event) {
-        final String serialized = getLayout().toSerializable(event);
-        if (logThrowables) {
-            servletContext.log(serialized, event.getThrown());
-        } else {
-            servletContext.log(serialized);
-        }
-    }
-}
diff --git a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/appender/package-info.java b/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/appender/package-info.java
deleted file mode 100644
index 013dfcf10d..0000000000
--- a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/appender/package-info.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * 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.
- */
-@Export
-@Open("org.apache.logging.log4j.core")
-@Version("2.20.1")
-package org.apache.logging.log4j.web.appender;
-
-import aQute.bnd.annotation.Export;
-import aQute.bnd.annotation.jpms.Open;
-import org.osgi.annotation.versioning.Version;
diff --git a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/package-info.java b/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/package-info.java
deleted file mode 100644
index ef08cbe578..0000000000
--- a/log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/package-info.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * 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.
- */
-
-/**
- * The classes in this package are responsible for properly initializing and deinitializing Log4j in a Java EE web
- * application.
- *
- * @see <a href="http://logging.apache.org/log4j/2.x/manual/webapp.html">Using Log4j 2 in Web Applications</a>
- */
-@Export
-@Version("2.20.1")
-package org.apache.logging.log4j.web;
-
-import org.osgi.annotation.bundle.Export;
-import org.osgi.annotation.versioning.Version;
diff --git a/log4j-jakarta-web/src/main/resources/META-INF/services/jakarta.servlet.ServletContainerInitializer b/log4j-jakarta-web/src/main/resources/META-INF/services/jakarta.servlet.ServletContainerInitializer
deleted file mode 100644
index 6850dab870..0000000000
--- a/log4j-jakarta-web/src/main/resources/META-INF/services/jakarta.servlet.ServletContainerInitializer
+++ /dev/null
@@ -1,22 +0,0 @@
-org.apache.logging.log4j.web.Log4jServletContainerInitializer
-#
-# See https://issues.apache.org/jira/browse/LOG4J2-890
-# See https://issues.jboss.org/browse/WFLY-4458
-#
-
-#
-# 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.
-#
diff --git a/log4j-jakarta-web/src/main/resources/META-INF/web-fragment.xml b/log4j-jakarta-web/src/main/resources/META-INF/web-fragment.xml
deleted file mode 100644
index e2e313d67d..0000000000
--- a/log4j-jakarta-web/src/main/resources/META-INF/web-fragment.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<web-fragment xmlns="http://java.sun.com/xml/ns/javaee"
-              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-              xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
-                                  http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd"
-              version="3.0" metadata-complete="true">
-    <!-- The Log4j web fragment must be loaded before all other fragments. The configuration below should make this
-        happen automatically. If you experience problems, try specifying an <absolute-ordering> in your web.xml
-        deployment descriptor. -->
-    <name>log4j</name>
-    <distributable />
-    <ordering>
-        <before>
-            <others />
-        </before>
-    </ordering>
-</web-fragment>
diff --git a/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/Log4jServletContainerInitializerTest.java b/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/Log4jServletContainerInitializerTest.java
deleted file mode 100644
index 449e52a0b9..0000000000
--- a/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/Log4jServletContainerInitializerTest.java
+++ /dev/null
@@ -1,196 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web;
-
-import java.util.EnumSet;
-import java.util.EventListener;
-import java.util.ServiceLoader;
-import java.util.stream.StreamSupport;
-
-import jakarta.servlet.DispatcherType;
-import jakarta.servlet.Filter;
-import jakarta.servlet.FilterRegistration;
-import jakarta.servlet.ServletContainerInitializer;
-import jakarta.servlet.ServletContext;
-
-import org.apache.logging.log4j.util.Strings;
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.ExtendWith;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Captor;
-import org.mockito.Mock;
-import org.mockito.junit.jupiter.MockitoExtension;
-
-import static org.junit.jupiter.api.Assertions.*;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.BDDMockito.any;
-import static org.mockito.BDDMockito.given;
-import static org.mockito.BDDMockito.never;
-import static org.mockito.BDDMockito.then;
-import static org.mockito.BDDMockito.willThrow;
-import static org.mockito.Mockito.mock;
-
-@ExtendWith(MockitoExtension.class)
-public class Log4jServletContainerInitializerTest {
-    @Mock
-    private ServletContext servletContext;
-    @Mock
-    private Log4jWebLifeCycle initializer;
-    @Captor
-    private ArgumentCaptor<Class<? extends Filter>> filterCaptor;
-    @Captor
-    private ArgumentCaptor<EventListener> listenerCaptor;
-
-    private Log4jServletContainerInitializer containerInitializer;
-
-    @BeforeEach
-    public void setUp() {
-        this.containerInitializer = new Log4jServletContainerInitializer();
-    }
-
-    @Test
-    public void testOnStartupWithServletVersion2_x() throws Exception {
-        given(servletContext.getMajorVersion()).willReturn(2);
-
-        this.containerInitializer.onStartup(null, this.servletContext);
-    }
-
-    @Test
-    public void testOnStartupWithServletVersion3_xEffectiveVersion2_x() throws Exception {
-        given(servletContext.getMajorVersion()).willReturn(3);
-        given(servletContext.getEffectiveMajorVersion()).willReturn(2);
-
-        this.containerInitializer.onStartup(null, this.servletContext);
-    }
-
-    @Test
-    public void testOnStartupWithServletVersion3_xEffectiveVersion3_xDisabledTrue() throws Exception {
-        given(servletContext.getMajorVersion()).willReturn(3);
-        given(servletContext.getEffectiveMajorVersion()).willReturn(3);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_AUTO_INITIALIZATION_DISABLED))).willReturn(
-            "true");
-
-        this.containerInitializer.onStartup(null, this.servletContext);
-    }
-
-    @Test
-    public void testOnStartupWithServletVersion3_xEffectiveVersion3_xShutdownDisabled() throws Exception {
-        final FilterRegistration.Dynamic registration = mock(FilterRegistration.Dynamic.class);
-        given(servletContext.getMajorVersion()).willReturn(3);
-        given(servletContext.getEffectiveMajorVersion()).willReturn(3);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_AUTO_SHUTDOWN_DISABLED)))
-                      .willReturn("true");
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_AUTO_INITIALIZATION_DISABLED))).willReturn(
-                null);
-        given(servletContext.addFilter(eq("log4jServletFilter"), filterCaptor.capture())).willReturn(registration);
-        given(servletContext.getAttribute(Log4jWebSupport.SUPPORT_ATTRIBUTE)).willReturn(initializer);
-
-        this.containerInitializer.onStartup(null, this.servletContext);
-
-        then(initializer).should().start();
-        then(initializer).should().setLoggerContext();
-        then(registration).should().setAsyncSupported(eq(true));
-        then(registration).should().addMappingForUrlPatterns(eq(EnumSet.allOf(DispatcherType.class)), eq(false), eq("/*"));
-
-        // initParam IS_LOG4J_AUTO_SHUTDOWN_DISABLED is "true" so addListener shouldn't be called.
-        then(servletContext).should(never()).addListener(any(Log4jServletContextListener.class));
-    }
-
-    @Test
-    public void testOnStartupWithServletVersion3_xEffectiveVersion3_xDisabledTRUE() throws Exception {
-        given(servletContext.getMajorVersion()).willReturn(3);
-        given(servletContext.getEffectiveMajorVersion()).willReturn(3);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_AUTO_INITIALIZATION_DISABLED))).willReturn(
-            "TRUE");
-
-        this.containerInitializer.onStartup(null, this.servletContext);
-    }
-
-    @Test
-    public void testOnStartupWithServletVersion3_xEffectiveVersion3_x() throws Exception {
-        final FilterRegistration.Dynamic registration = mock(FilterRegistration.Dynamic.class);
-        given(servletContext.getMajorVersion()).willReturn(3);
-        given(servletContext.getEffectiveMajorVersion()).willReturn(3);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_AUTO_INITIALIZATION_DISABLED))).willReturn(
-            null);
-        given(servletContext.addFilter(eq("log4jServletFilter"), filterCaptor.capture())).willReturn(registration);
-        given(servletContext.getAttribute(Log4jWebSupport.SUPPORT_ATTRIBUTE)).willReturn(initializer);
-
-        containerInitializer.onStartup(null, servletContext);
-
-        then(initializer).should().start();
-        then(initializer).should().setLoggerContext();
-        then(servletContext).should().addListener(listenerCaptor.capture());
-        then(registration).should().setAsyncSupported(eq(true));
-        then(registration).should().addMappingForUrlPatterns(eq(EnumSet.allOf(DispatcherType.class)), eq(false), eq("/*"));
-
-        assertNotNull(listenerCaptor.getValue(), "The listener should not be null.");
-        assertSame(Log4jServletContextListener.class,
-            listenerCaptor.getValue().getClass(),
-            "The listener is not correct.");
-
-        assertNotNull(filterCaptor.getValue(), "The filter should not be null.");
-        assertSame(Log4jServletFilter.class, filterCaptor.getValue(), "The filter is not correct.");
-    }
-
-    @Test
-    public void testOnStartupCanceledDueToPreExistingFilter() throws Exception {
-        given(servletContext.getMajorVersion()).willReturn(3);
-        given(servletContext.getEffectiveMajorVersion()).willReturn(3);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_AUTO_INITIALIZATION_DISABLED))).willReturn(
-            "false");
-        given(servletContext.addFilter(eq("log4jServletFilter"), filterCaptor.capture())).willReturn(null);
-
-        this.containerInitializer.onStartup(null, this.servletContext);
-
-        assertNotNull(filterCaptor.getValue(), "The filter should not be null.");
-        assertSame(Log4jServletFilter.class, filterCaptor.getValue(), "The filter is not correct.");
-    }
-
-    @Test
-    public void testOnStartupFailedDueToInitializerFailure() throws Exception {
-        final FilterRegistration.Dynamic registration = mock(FilterRegistration.Dynamic.class);
-        final IllegalStateException exception = new IllegalStateException(Strings.EMPTY);
-        given(servletContext.getMajorVersion()).willReturn(3);
-        given(servletContext.getEffectiveMajorVersion()).willReturn(3);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_AUTO_INITIALIZATION_DISABLED))).willReturn(
-            "balderdash");
-        given(servletContext.addFilter(eq("log4jServletFilter"), filterCaptor.capture())).willReturn(registration);
-        given(servletContext.getAttribute(Log4jWebSupport.SUPPORT_ATTRIBUTE)).willReturn(initializer);
-        willThrow(exception).given(initializer).start();
-
-        try {
-            this.containerInitializer.onStartup(null, this.servletContext);
-            fail("Expected the exception thrown by the initializer; got no exception.");
-        } catch (final IllegalStateException e) {
-            assertSame(exception, e, "The exception is not correct.");
-        }
-
-        then(initializer).should().start();
-        assertNotNull(filterCaptor.getValue(), "The filter should not be null.");
-        assertSame(Log4jServletFilter.class, filterCaptor.getValue(), "The filter is not correct.");
-    }
-
-    @Test
-    public void testServiceIsDetected() {
-        final ServiceLoader<ServletContainerInitializer> loader = ServiceLoader.load(ServletContainerInitializer.class);
-        final boolean found = StreamSupport.stream(loader.spliterator(), false)
-                                           .anyMatch(s -> s instanceof Log4jServletContainerInitializer);
-        assertTrue(found, "ServletContainerInitializer not found.");
-    }
-}
diff --git a/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/Log4jServletContextListenerTest.java b/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/Log4jServletContextListenerTest.java
deleted file mode 100644
index 4c2e1e1165..0000000000
--- a/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/Log4jServletContextListenerTest.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web;
-
-import jakarta.servlet.ServletContext;
-import jakarta.servlet.ServletContextEvent;
-
-import org.apache.logging.log4j.util.Strings;
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.ExtendWith;
-import org.mockito.Mock;
-import org.mockito.junit.jupiter.MockitoExtension;
-
-import static org.apache.logging.log4j.web.Log4jServletContextListener.DEFAULT_STOP_TIMEOUT;
-import static org.apache.logging.log4j.web.Log4jServletContextListener.DEFAULT_STOP_TIMEOUT_TIMEUNIT;
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.fail;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.BDDMockito.given;
-import static org.mockito.BDDMockito.then;
-import static org.mockito.BDDMockito.willThrow;
-
-@ExtendWith(MockitoExtension.class)
-public class Log4jServletContextListenerTest {
-    /* event and servletContext are marked lenient because they aren't used in the
-     * testDestroyWithNoInit but are only accessed during initialization
-     */
-    @Mock(lenient = true)
-    private ServletContextEvent event;
-    @Mock(lenient = true)
-    private ServletContext servletContext;
-    @Mock
-    private Log4jWebLifeCycle initializer;
-
-    private Log4jServletContextListener listener;
-
-    @BeforeEach
-    public void setUp() {
-        this.listener = new Log4jServletContextListener();
-        given(event.getServletContext()).willReturn(servletContext);
-        given(servletContext.getAttribute(Log4jWebSupport.SUPPORT_ATTRIBUTE)).willReturn(initializer);
-    }
-
-    @Test
-    public void testInitAndDestroy() throws Exception {
-        this.listener.contextInitialized(this.event);
-
-        then(initializer).should().start();
-        then(initializer).should().setLoggerContext();
-
-        this.listener.contextDestroyed(this.event);
-
-        then(initializer).should().clearLoggerContext();
-        then(initializer).should().stop(DEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEOUT_TIMEUNIT);
-    }
-
-    @Test
-    public void testInitFailure() throws Exception {
-        willThrow(new IllegalStateException(Strings.EMPTY)).given(initializer).start();
-
-        try {
-            this.listener.contextInitialized(this.event);
-            fail("Expected a RuntimeException.");
-        } catch (final RuntimeException e) {
-            assertEquals("Failed to initialize Log4j properly.", e.getMessage(), "The message is not correct.");
-        }
-    }
-
-    @Test
-    public void initializingLog4jServletContextListenerShouldFaileWhenAutoShutdownIsTrue() throws Exception {
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_AUTO_SHUTDOWN_DISABLED)))
-                .willReturn("true");
-        ensureInitializingFailsWhenAuthShutdownIsEnabled();
-    }
-
-    @Test
-    public void initializingLog4jServletContextListenerShouldFaileWhenAutoShutdownIsTRUE() throws Exception {
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_AUTO_SHUTDOWN_DISABLED)))
-                .willReturn("TRUE");
-        ensureInitializingFailsWhenAuthShutdownIsEnabled();
-    }
-
-    private void ensureInitializingFailsWhenAuthShutdownIsEnabled() {
-        try {
-            this.listener.contextInitialized(this.event);
-            fail("Expected a RuntimeException.");
-        } catch (final RuntimeException e) {
-            final String expectedMessage =
-                    "Do not use " + Log4jServletContextListener.class.getSimpleName() + " when "
-                            + Log4jWebSupport.IS_LOG4J_AUTO_SHUTDOWN_DISABLED + " is true. Please use "
-                            + Log4jShutdownOnContextDestroyedListener.class.getSimpleName() + " instead of "
-                            + Log4jServletContextListener.class.getSimpleName() + ".";
-
-            assertEquals(expectedMessage, e.getMessage(), "The message is not correct");
-        }
-    }
-}
diff --git a/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/Log4jServletFilterTest.java b/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/Log4jServletFilterTest.java
deleted file mode 100644
index ae3a8ec773..0000000000
--- a/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/Log4jServletFilterTest.java
+++ /dev/null
@@ -1,111 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web;
-
-import jakarta.servlet.FilterChain;
-import jakarta.servlet.FilterConfig;
-import jakarta.servlet.ServletContext;
-import jakarta.servlet.ServletRequest;
-import jakarta.servlet.ServletResponse;
-
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.ExtendWith;
-import org.mockito.Mock;
-import org.mockito.junit.jupiter.MockitoExtension;
-
-import static org.junit.jupiter.api.Assertions.*;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.ArgumentMatchers.same;
-import static org.mockito.BDDMockito.given;
-import static org.mockito.BDDMockito.then;
-import static org.mockito.Mockito.reset;
-
-@ExtendWith(MockitoExtension.class)
-public class Log4jServletFilterTest {
-    @Mock(lenient = true) // because filterConfig is not used in testDestroy
-    private FilterConfig filterConfig;
-    @Mock(lenient = true) // because filterConfig is not used in testDestroy
-    private ServletContext servletContext;
-    @Mock
-    private Log4jWebLifeCycle initializer;
-    @Mock
-    private ServletRequest request;
-    @Mock
-    private ServletResponse response;
-    @Mock
-    private FilterChain chain;
-
-    private Log4jServletFilter filter;
-
-    @BeforeEach
-    public void setUp() {
-        given(filterConfig.getServletContext()).willReturn(servletContext);
-        given(servletContext.getAttribute(Log4jWebSupport.SUPPORT_ATTRIBUTE)).willReturn(initializer);
-        this.filter = new Log4jServletFilter();
-    }
-
-    @Test
-    public void testInitAndDestroy() throws Exception {
-        this.filter.init(this.filterConfig);
-
-        then(initializer).should().clearLoggerContext();
-
-        this.filter.destroy();
-
-        then(initializer).should().setLoggerContext();
-    }
-
-    @Test
-    public void testDestroy() {
-        assertThrows(IllegalStateException.class, () -> {
-            this.filter.destroy();
-        });
-    }
-
-    @Test
-    public void testDoFilterFirstTime() throws Exception {
-        this.filter.init(this.filterConfig);
-
-        then(initializer).should().clearLoggerContext();
-        reset(initializer);
-
-        given(request.getAttribute(Log4jServletFilter.ALREADY_FILTERED_ATTRIBUTE)).willReturn(null);
-
-        this.filter.doFilter(request, response, chain);
-
-        then(request).should().setAttribute(eq(Log4jServletFilter.ALREADY_FILTERED_ATTRIBUTE), eq(true));
-        then(initializer).should().setLoggerContext();
-        then(chain).should().doFilter(same(request), same(response));
-        then(chain).shouldHaveNoMoreInteractions();
-        then(initializer).should().clearLoggerContext();
-    }
-
-    @Test
-    public void testDoFilterSecondTime() throws Exception {
-        this.filter.init(this.filterConfig);
-
-        then(initializer).should().clearLoggerContext();
-
-        given(request.getAttribute(Log4jServletFilter.ALREADY_FILTERED_ATTRIBUTE)).willReturn(true);
-
-        this.filter.doFilter(request, response, chain);
-
-        then(chain).should().doFilter(same(request), same(response));
-        then(chain).shouldHaveNoMoreInteractions();
-    }
-}
diff --git a/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/Log4jShutdownOnContextDestroyedListenerTest.java b/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/Log4jShutdownOnContextDestroyedListenerTest.java
deleted file mode 100644
index 301e82761a..0000000000
--- a/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/Log4jShutdownOnContextDestroyedListenerTest.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web;
-
-import jakarta.servlet.ServletContext;
-import jakarta.servlet.ServletContextEvent;
-
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.ExtendWith;
-import org.mockito.Mock;
-import org.mockito.junit.jupiter.MockitoExtension;
-
-import static org.apache.logging.log4j.web.Log4jShutdownOnContextDestroyedListener.DEFAULT_STOP_TIMEOUT;
-import static org.apache.logging.log4j.web.Log4jShutdownOnContextDestroyedListener.DEFAULT_STOP_TIMEOUT_TIMEUNIT;
-import static org.junit.jupiter.api.Assertions.assertThrows;
-import static org.mockito.BDDMockito.given;
-import static org.mockito.BDDMockito.then;
-import static org.mockito.Mockito.never;
-
-@ExtendWith(MockitoExtension.class)
-public class Log4jShutdownOnContextDestroyedListenerTest {
-    @Mock(lenient = true)
-    private ServletContextEvent event;
-    @Mock(lenient = true)
-    private ServletContext servletContext;
-    @Mock
-    private Log4jWebLifeCycle initializer;
-
-    private Log4jShutdownOnContextDestroyedListener listener;
-
-    public void setUp(final boolean mockInitializer) {
-        this.listener = new Log4jShutdownOnContextDestroyedListener();
-        given(event.getServletContext()).willReturn(servletContext);
-        if (mockInitializer) {
-            given(servletContext.getAttribute(Log4jWebSupport.SUPPORT_ATTRIBUTE))
-                    .willReturn(initializer);
-        }
-    }
-
-    @Test
-    public void testInitAndDestroy() throws Exception {
-        setUp(true);
-        this.listener.contextInitialized(this.event);
-
-        then(initializer).should(never()).start();
-        then(initializer).should(never()).setLoggerContext();
-
-        this.listener.contextDestroyed(this.event);
-
-        then(initializer).should().clearLoggerContext();
-        then(initializer).should().stop(DEFAULT_STOP_TIMEOUT, DEFAULT_STOP_TIMEOUT_TIMEUNIT);
-    }
-
-    @Test
-    public void testDestroy() throws Exception {
-        setUp(true);
-        this.listener.contextDestroyed(this.event);
-
-        then(initializer).should(never()).clearLoggerContext();
-        then(initializer).should(never()).stop();
-    }
-
-    @Test
-    public void whenNoInitializerInContextTheContextInitializedShouldThrowAnException() {
-        setUp(false);
-
-        assertThrows(IllegalStateException.class, () -> {
-            this.listener.contextInitialized(this.event);
-        });
-    }
-}
diff --git a/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/Log4jWebInitializerImplTest.java b/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/Log4jWebInitializerImplTest.java
deleted file mode 100644
index 4e83008e2c..0000000000
--- a/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/Log4jWebInitializerImplTest.java
+++ /dev/null
@@ -1,406 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web;
-
-import java.net.URI;
-import java.net.URL;
-import java.util.HashSet;
-
-import jakarta.servlet.ServletContext;
-
-import org.apache.logging.log4j.core.LoggerContext;
-import org.apache.logging.log4j.core.config.DefaultConfiguration;
-import org.apache.logging.log4j.core.config.composite.CompositeConfiguration;
-import org.apache.logging.log4j.core.impl.ContextAnchor;
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.ExtendWith;
-import org.mockito.ArgumentCaptor;
-import org.mockito.Captor;
-import org.mockito.Mock;
-import org.mockito.junit.jupiter.MockitoExtension;
-
-import static java.util.Arrays.asList;
-import static java.util.Collections.singletonList;
-
-import static org.hamcrest.CoreMatchers.instanceOf;
-import static org.hamcrest.CoreMatchers.is;
-import static org.hamcrest.CoreMatchers.nullValue;
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.jupiter.api.Assertions.*;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.BDDMockito.given;
-import static org.mockito.BDDMockito.then;
-
-@ExtendWith(MockitoExtension.class)
-public class Log4jWebInitializerImplTest {
-    /* Marking servletContext lenient because otherwise testCompositeLocationParameterWithEmptyUriListSetsDefaultConfiguration fails
-     * when null is passed in as the initial param because Mockito deciced null isn't a String rather than the absence of a string.
-     */
-    @Mock(lenient = true)
-    private ServletContext servletContext;
-    @Captor
-    private ArgumentCaptor<Log4jWebLifeCycle> initializerCaptor;
-    @Captor
-    private ArgumentCaptor<LoggerContext> loggerContextCaptor;
-
-    private Log4jWebInitializerImpl initializerImpl;
-
-    @BeforeEach
-    public void setUp() {
-        given(servletContext.getAttribute(Log4jWebSupport.SUPPORT_ATTRIBUTE)).willReturn(null);
-
-        final Log4jWebLifeCycle initializer = WebLoggerContextUtils.getWebLifeCycle(this.servletContext);
-
-        then(servletContext).should().setAttribute(eq(Log4jWebSupport.SUPPORT_ATTRIBUTE), initializerCaptor.capture());
-        assertNotNull(initializer, "The initializer should not be null.");
-        assertSame(initializer, initializerCaptor.getValue(), "The capture is not correct.");
-        assertTrue(initializer instanceof Log4jWebInitializerImpl, "The initializer is not correct.");
-
-        this.initializerImpl = (Log4jWebInitializerImpl) initializer;
-    }
-
-    @Test
-    public void testDeinitializeBeforeInitialize() {
-        assertThrows(IllegalStateException.class, () -> {
-            this.initializerImpl.stop();
-        });
-    }
-
-    @Test
-    public void testSetLoggerContextBeforeInitialize() {
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should be null.");
-
-        this.initializerImpl.setLoggerContext();
-
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should still be null.");
-    }
-
-    @Test
-    public void testClearLoggerContextBeforeInitialize() {
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should be null.");
-
-        this.initializerImpl.clearLoggerContext();
-
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should still be null.");
-    }
-
-    @Test
-    public void testInitializeWithNoParametersThenSetLoggerContextThenDeinitialize() {
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONTEXT_NAME))).willReturn(null);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONFIG_LOCATION))).willReturn(null);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_CONTEXT_SELECTOR_NAMED))).willReturn(null);
-        given(servletContext.getServletContextName()).willReturn("helloWorld01");
-        given(servletContext.getResourcePaths("/WEB-INF/")).willReturn(null);
-
-        this.initializerImpl.start();
-
-        then(servletContext).should().setAttribute(eq(Log4jWebSupport.CONTEXT_ATTRIBUTE), loggerContextCaptor.capture());
-        assertNotNull(loggerContextCaptor.getValue(), "The context attribute should not be null.");
-        final org.apache.logging.log4j.spi.LoggerContext loggerContext = loggerContextCaptor.getValue();
-
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should still be null.");
-
-        this.initializerImpl.setLoggerContext();
-
-        final LoggerContext context = ContextAnchor.THREAD_CONTEXT.get();
-        assertNotNull(context, "The context should not be null.");
-        assertSame(loggerContext, context, "The context is not correct.");
-
-        this.initializerImpl.clearLoggerContext();
-
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should be null again.");
-
-        this.initializerImpl.stop();
-
-        then(servletContext).should().removeAttribute(eq(Log4jWebSupport.CONTEXT_ATTRIBUTE));
-
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should again still be null.");
-
-        this.initializerImpl.setLoggerContext();
-
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should finally still be null.");
-    }
-
-    @Test
-    public void testInitializeWithClassLoaderNoParametersThenSetLoggerContextThenDeinitialize() {
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONTEXT_NAME))).willReturn(null);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONFIG_LOCATION))).willReturn(null);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_CONTEXT_SELECTOR_NAMED))).willReturn("false");
-        given(servletContext.getServletContextName()).willReturn("helloWorld02");
-        given(servletContext.getResourcePaths("/WEB-INF/")).willReturn(null);
-        given(servletContext.getClassLoader()).willReturn(getClass().getClassLoader());
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should be null.");
-
-        this.initializerImpl.start();
-
-        then(servletContext).should().setAttribute(eq(Log4jWebSupport.CONTEXT_ATTRIBUTE), loggerContextCaptor.capture());
-        assertNotNull(loggerContextCaptor.getValue(), "The context attribute should not be null.");
-        final org.apache.logging.log4j.spi.LoggerContext loggerContext = loggerContextCaptor.getValue();
-
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should still be null.");
-
-        this.initializerImpl.setLoggerContext();
-
-        final LoggerContext context = ContextAnchor.THREAD_CONTEXT.get();
-        assertNotNull(context, "The context should not be null.");
-        assertSame(loggerContext, context, "The context is not correct.");
-
-        this.initializerImpl.clearLoggerContext();
-
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should be null again.");
-
-        this.initializerImpl.stop();
-
-        then(servletContext).should().removeAttribute(eq(Log4jWebSupport.CONTEXT_ATTRIBUTE));
-
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should again still be null.");
-
-        this.initializerImpl.setLoggerContext();
-
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should finally still be null.");
-    }
-
-    @Test
-    public void testInitializeIsIdempotent() {
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONTEXT_NAME))).willReturn(null);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONFIG_LOCATION))).willReturn(null);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_CONTEXT_SELECTOR_NAMED))).willReturn("nothing");
-        given(servletContext.getServletContextName()).willReturn("helloWorld03");
-        given(servletContext.getResourcePaths("/WEB-INF/")).willReturn(null);
-        given(servletContext.getClassLoader()).willReturn(getClass().getClassLoader());
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should be null.");
-
-        this.initializerImpl.start();
-
-        then(servletContext).should().setAttribute(eq(Log4jWebSupport.CONTEXT_ATTRIBUTE), loggerContextCaptor.capture());
-        assertNotNull(loggerContextCaptor.getValue(), "The context attribute should not be null.");
-
-        this.initializerImpl.start();
-        this.initializerImpl.start();
-        this.initializerImpl.start();
-        this.initializerImpl.stop();
-
-        then(servletContext).should().removeAttribute(eq(Log4jWebSupport.CONTEXT_ATTRIBUTE));
-    }
-
-    @Test
-    public void testInitializeFailsAfterDeinitialize() {
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONTEXT_NAME))).willReturn(null);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONFIG_LOCATION))).willReturn(null);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_CONTEXT_SELECTOR_NAMED))).willReturn(null);
-        given(servletContext.getServletContextName()).willReturn("helloWorld04");
-        given(servletContext.getResourcePaths("/WEB-INF/")).willReturn(null);
-        given(servletContext.getClassLoader()).willReturn(getClass().getClassLoader());
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should be null.");
-
-        this.initializerImpl.start();
-
-        then(servletContext).should().setAttribute(eq(Log4jWebSupport.CONTEXT_ATTRIBUTE), loggerContextCaptor.capture());
-        assertNotNull(loggerContextCaptor.getValue(), "The context attribute should not be null.");
-
-        this.initializerImpl.stop();
-
-        then(servletContext).should().removeAttribute(eq(Log4jWebSupport.CONTEXT_ATTRIBUTE));
-
-        assertThrows(IllegalStateException.class, () -> {
-            this.initializerImpl.start();
-        });
-    }
-
-    @Test
-    public void testDeinitializeIsIdempotent() {
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONTEXT_NAME))).willReturn(null);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONFIG_LOCATION))).willReturn(null);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_CONTEXT_SELECTOR_NAMED))).willReturn(null);
-        given(servletContext.getServletContextName()).willReturn("helloWorld05");
-        given(servletContext.getResourcePaths("/WEB-INF/")).willReturn(null);
-        given(servletContext.getClassLoader()).willReturn(getClass().getClassLoader());
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should be null.");
-
-        this.initializerImpl.start();
-
-        then(servletContext).should().setAttribute(eq(Log4jWebSupport.CONTEXT_ATTRIBUTE), loggerContextCaptor.capture());
-        assertNotNull(loggerContextCaptor.getValue(), "The context attribute should not be null.");
-
-        this.initializerImpl.stop();
-        this.initializerImpl.stop();
-        this.initializerImpl.stop();
-        then(servletContext).should().removeAttribute(eq(Log4jWebSupport.CONTEXT_ATTRIBUTE));
-    }
-
-    @Test
-    public void testInitializeUsingJndiSelectorFails() {
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONTEXT_NAME))).willReturn(null);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONFIG_LOCATION))).willReturn(null);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_CONTEXT_SELECTOR_NAMED))).willReturn("true");
-        given(servletContext.getResourcePaths("/WEB-INF/")).willReturn(null);
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should be null.");
-
-        assertThrows(IllegalStateException.class, () -> {
-            this.initializerImpl.start();
-        });
-    }
-
-    @Test
-    public void testInitializeUsingJndiSelector() {
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONTEXT_NAME))).willReturn("helloWorld06");
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONFIG_LOCATION))).willReturn(null);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_CONTEXT_SELECTOR_NAMED))).willReturn("true");
-        given(servletContext.getResourcePaths("/WEB-INF/")).willReturn(null);
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should be null.");
-
-        this.initializerImpl.start();
-
-        then(servletContext).should().setAttribute(eq(Log4jWebSupport.CONTEXT_ATTRIBUTE), loggerContextCaptor.capture());
-        assertNull(loggerContextCaptor.getValue(), "The context attribute should be null.");
-
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should still be null.");
-
-        this.initializerImpl.setLoggerContext();
-
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should still be null because no named selector.");
-
-        this.initializerImpl.clearLoggerContext();
-
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should be null again.");
-
-        this.initializerImpl.stop();
-
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should again still be null.");
-
-        this.initializerImpl.setLoggerContext();
-
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should finally still be null.");
-    }
-
-    @Test
-    public void testWrapExecutionWithNoParameters() {
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONTEXT_NAME))).willReturn(null);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONFIG_LOCATION))).willReturn(null);
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.IS_LOG4J_CONTEXT_SELECTOR_NAMED))).willReturn(null);
-        given(servletContext.getServletContextName()).willReturn("helloWorld07");
-        given(servletContext.getResourcePaths("/WEB-INF/")).willReturn(null);
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should be null.");
-
-        this.initializerImpl.start();
-
-        then(servletContext).should().setAttribute(eq(Log4jWebSupport.CONTEXT_ATTRIBUTE), loggerContextCaptor.capture());
-        assertNotNull(loggerContextCaptor.getValue(), "The context attribute should not be null.");
-        final org.apache.logging.log4j.spi.LoggerContext loggerContext = loggerContextCaptor.getValue();
-
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should still be null.");
-
-        final Runnable runnable = () -> {
-            final LoggerContext context = ContextAnchor.THREAD_CONTEXT.get();
-            assertNotNull(context, "The context should not be null.");
-            assertSame(loggerContext, context, "The context is not correct.");
-        };
-
-        this.initializerImpl.wrapExecution(runnable);
-
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should be null again.");
-
-        this.initializerImpl.stop();
-
-        then(servletContext).should().removeAttribute(eq(Log4jWebSupport.CONTEXT_ATTRIBUTE));
-
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should again still be null.");
-
-        this.initializerImpl.setLoggerContext();
-
-        assertNull(ContextAnchor.THREAD_CONTEXT.get(), "The context should finally still be null.");
-    }
-
-    @Test
-    public void testMissingLocationParameterWithNoMatchingResourceSetsNoConfigLocation() {
-        given(servletContext.getResourcePaths("/WEB-INF/")).willReturn(new HashSet<String>());
-
-        this.initializerImpl.start();
-
-        then(servletContext).should().setAttribute(eq(Log4jWebSupport.CONTEXT_ATTRIBUTE), loggerContextCaptor.capture());
-        assertNotNull(loggerContextCaptor.getValue(), "The context attribute should not be null.");
-
-        assertThat(loggerContextCaptor.getValue().getConfigLocation(), is(nullValue()));
-
-        this.initializerImpl.stop();
-    }
-
-    @Test
-    public void testMissingLocationParameterWithOneMatchingResourceUsesResourceConfigLocation() throws Exception {
-        given(servletContext.getResourcePaths("/WEB-INF/")).willReturn(new HashSet<>(singletonList("/WEB-INF/log4j2.xml")));
-        given(servletContext.getResource("/WEB-INF/log4j2.xml")).willReturn(new URL("file:/a/b/c/WEB-INF/log4j2.xml"));
-
-        this.initializerImpl.start();
-
-        then(servletContext).should().setAttribute(eq(Log4jWebSupport.CONTEXT_ATTRIBUTE), loggerContextCaptor.capture());
-        assertNotNull(loggerContextCaptor.getValue(), "The context attribute should not be null.");
-
-        assertThat(loggerContextCaptor.getValue().getConfigLocation(), is(URI.create("file:/a/b/c/WEB-INF/log4j2.xml")));
-
-        this.initializerImpl.stop();
-    }
-
-    @Test
-    public void testMissingLocationParameterWithManyMatchingResourcesUsesFirstMatchingResourceConfigLocation() throws Exception {
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONTEXT_NAME))).willReturn("mycontext");
-        given(servletContext.getResourcePaths("/WEB-INF/")).willReturn(
-                new HashSet<>(asList("/WEB-INF/a.xml", "/WEB-INF/log4j2-mycontext.xml", "/WEB-INF/log4j2.xml")));
-        given(servletContext.getResource("/WEB-INF/log4j2-mycontext.xml")).willReturn(
-                new URL("file:/a/b/c/WEB-INF/log4j2-mycontext.xml"));
-
-        this.initializerImpl.start();
-
-        then(servletContext).should().setAttribute(eq(Log4jWebSupport.CONTEXT_ATTRIBUTE), loggerContextCaptor.capture());
-        assertNotNull(loggerContextCaptor.getValue(), "The context attribute should not be null.");
-
-        assertThat(loggerContextCaptor.getValue().getConfigLocation(),
-                is(URI.create("file:/a/b/c/WEB-INF/log4j2-mycontext.xml")));
-
-        this.initializerImpl.stop();
-    }
-
-    @Test
-    public void testCompositeLocationParameterWithEmptyUriListSetsDefaultConfiguration() {
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONFIG_LOCATION))).willReturn(",,,");
-
-        this.initializerImpl.start();
-
-        then(servletContext).should().setAttribute(eq(Log4jWebSupport.CONTEXT_ATTRIBUTE), loggerContextCaptor.capture());
-        assertNotNull(loggerContextCaptor.getValue(), "The context attribute should not be null.");
-
-        assertThat(loggerContextCaptor.getValue().getConfiguration(), is(instanceOf(DefaultConfiguration.class)));
-
-        this.initializerImpl.stop();
-    }
-
-    @Test
-    public void testCompositeLocationParameterSetsCompositeConfiguration() {
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONTEXT_NAME))).willReturn("mycontext");
-        given(servletContext.getInitParameter(eq(Log4jWebSupport.LOG4J_CONFIG_LOCATION))).willReturn(
-                "log4j2-combined.xml,log4j2-override.xml");
-
-        this.initializerImpl.start();
-
-        then(servletContext).should().setAttribute(eq(Log4jWebSupport.CONTEXT_ATTRIBUTE), loggerContextCaptor.capture());
-        assertNotNull(loggerContextCaptor.getValue(), "The context attribute should not be null.");
-
-        assertThat(loggerContextCaptor.getValue().getConfiguration(), is(instanceOf(CompositeConfiguration.class)));
-
-        this.initializerImpl.stop();
-    }
-}
diff --git a/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/PropertyTest.java b/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/PropertyTest.java
deleted file mode 100644
index 764235cc7d..0000000000
--- a/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/PropertyTest.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web;
-
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.core.impl.Log4jContextFactory;
-import org.apache.logging.log4j.util.Constants;
-import org.junit.jupiter.api.Test;
-
-import static org.junit.jupiter.api.Assertions.assertFalse;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
-/**
- *
- */
-public class PropertyTest {
-
-    @Test
-    public void testShutdownHookDisabled() {
-        assertFalse(
-                ((Log4jContextFactory) LogManager.getFactory()).isShutdownHookEnabled(),
-                "Shutdown hook should be disabled by default in web applications");
-    }
-
-    @Test
-    public void testIsWebApp() {
-        assertTrue(Constants.isWebApp(), "When servlet classes are available Constants.isWebApp() should default to true");
-    }
-}
diff --git a/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/ServletAppenderTest.java b/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/ServletAppenderTest.java
deleted file mode 100644
index e02d6d6488..0000000000
--- a/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/ServletAppenderTest.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web;
-
-/**
- *
- */
-public class ServletAppenderTest {
-
-// TODO: re-enable when https://github.com/spring-projects/spring-framework/issues/25354 is fixed
-
-//    private static final String CONFIG = "WEB-INF/classes/log4j-servlet.xml";
-//
-//    @Test
-//    public void testAppender() throws Exception {
-//        ContextAnchor.THREAD_CONTEXT.remove();
-//        final ServletContext servletContext = new MockServletContext();
-//        servletContext.setAttribute("TestAttr", "AttrValue");
-//        servletContext.setInitParameter("TestParam", "ParamValue");
-//        servletContext.setAttribute("Name1", "Ben");
-//        servletContext.setInitParameter("Name2", "Jerry");
-//        servletContext.setInitParameter(Log4jWebSupport.LOG4J_CONFIG_LOCATION, CONFIG);
-//        final Log4jWebLifeCycle initializer = WebLoggerContextUtils.getWebLifeCycle(servletContext);
-//        try {
-//            initializer.start();
-//            initializer.setLoggerContext();
-//            final LoggerContext ctx = ContextAnchor.THREAD_CONTEXT.get();
-//            assertNotNull(ctx, "No LoggerContext");
-//            assertNotNull(WebLoggerContextUtils.getServletContext(), "No ServletContext");
-//            final Configuration configuration = ctx.getConfiguration();
-//            assertNotNull(configuration, "No configuration");
-//            final Appender appender = configuration.getAppender("Servlet");
-//            assertNotNull(appender, "No ServletAppender");
-//            final Logger logger = LogManager.getLogger("Test");
-//            logger.info("This is a test");
-//            logger.error("This is a test 2", new IllegalStateException().fillInStackTrace());
-//        } catch (final IllegalStateException e) {
-//            fail("Failed to initialize Log4j properly." + e.getMessage());
-//        } finally {
-//            initializer.stop();
-//            ContextAnchor.THREAD_CONTEXT.remove();
-//        }
-//    }
-}
diff --git a/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/TestAsyncServlet.java b/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/TestAsyncServlet.java
deleted file mode 100644
index 88c6c14e02..0000000000
--- a/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/TestAsyncServlet.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web;
-
-import java.io.IOException;
-
-import jakarta.servlet.AsyncContext;
-import jakarta.servlet.ServletException;
-import jakarta.servlet.http.HttpServlet;
-import jakarta.servlet.http.HttpServletRequest;
-import jakarta.servlet.http.HttpServletResponse;
-
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
-
-// TODO: write an integration test that deploys this Servlet 3.0 class to Tomcat and Jetty
-public class TestAsyncServlet extends HttpServlet {
-
-    private static final long serialVersionUID = 1L;
-
-    @Override
-    protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {
-        final AsyncContext asyncContext = req.startAsync();
-        asyncContext.start(WebLoggerContextUtils.wrapExecutionContext(this.getServletContext(), () -> {
-            final Logger logger = LogManager.getLogger(TestAsyncServlet.class);
-            logger.info("Hello, servlet!");
-        }));
-    }
-
-    @Override
-    protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {
-        final AsyncContext asyncContext = req.startAsync();
-        asyncContext.start(() -> {
-            final Log4jWebSupport webSupport =
-                WebLoggerContextUtils.getWebLifeCycle(TestAsyncServlet.this.getServletContext());
-            webSupport.setLoggerContext();
-            // do stuff
-            webSupport.clearLoggerContext();
-        });
-    }
-}
diff --git a/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/WebLookupTest.java b/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/WebLookupTest.java
deleted file mode 100644
index 02e63c8cfa..0000000000
--- a/log4j-jakarta-web/src/test/java/org/apache/logging/log4j/web/WebLookupTest.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.web;
-
-public class WebLookupTest {
-
-// TODO: re-enable when https://github.com/spring-projects/spring-framework/issues/25354 is fixed
-
-//    @Test
-//    public void testLookup() throws Exception {
-//        ContextAnchor.THREAD_CONTEXT.remove();
-//        final ServletContext servletContext = new MockServletContext();
-//        ((MockServletContext) servletContext).setContextPath("/WebApp");
-//        servletContext.setAttribute("TestAttr", "AttrValue");
-//        servletContext.setInitParameter("TestParam", "ParamValue");
-//        servletContext.setAttribute("Name1", "Ben");
-//        servletContext.setInitParameter("Name2", "Jerry");
-//        final Log4jWebLifeCycle initializer = WebLoggerContextUtils.getWebLifeCycle(servletContext);
-//        try {
-//            initializer.start();
-//            initializer.setLoggerContext();
-//            final LoggerContext ctx = ContextAnchor.THREAD_CONTEXT.get();
-//            assertNotNull(ctx, "No LoggerContext");
-//            assertNotNull(WebLoggerContextUtils.getServletContext(), "No ServletContext");
-//            final Configuration config = ctx.getConfiguration();
-//            assertNotNull(config, "No Configuration");
-//            final StrSubstitutor substitutor = config.getStrSubstitutor();
-//            assertNotNull(substitutor, "No Interpolator");
-//            String value = substitutor.replace("${web:initParam.TestParam}");
-//            assertNotNull(value, "No value for TestParam");
-//            assertEquals("ParamValue", value, "Incorrect value for TestParam: " + value);
-//            value = substitutor.replace("${web:attr.TestAttr}");
-//            assertNotNull(value, "No value for TestAttr");
-//            assertEquals("AttrValue", value, "Incorrect value for TestAttr: " + value);
-//            value = substitutor.replace("${web:Name1}");
-//            assertNotNull(value, "No value for Name1");
-//            assertEquals("Ben", value, "Incorrect value for Name1: " + value);
-//            value = substitutor.replace("${web:Name2}");
-//            assertNotNull(value, "No value for Name2");
-//            assertEquals("Jerry", value, "Incorrect value for Name2: " + value);
-//            value = substitutor.replace("${web:contextPathName}");
-//            assertNotNull(value, "No value for context name");
-//            assertEquals("WebApp", value, "Incorrect value for context name");
-//        } catch (final IllegalStateException e) {
-//            fail("Failed to initialize Log4j properly." + e.getMessage());
-//        }
-//        initializer.stop();
-//        ContextAnchor.THREAD_CONTEXT.remove();
-//    }
-//
-//    @Test
-//    public void testLookup2() throws Exception {
-//        ContextAnchor.THREAD_CONTEXT.remove();
-//        final ServletContext servletContext = new MockServletContext();
-//        ((MockServletContext) servletContext).setContextPath("/");
-//        servletContext.setAttribute("TestAttr", "AttrValue");
-//        servletContext.setInitParameter("myapp.logdir", "target");
-//        servletContext.setAttribute("Name1", "Ben");
-//        servletContext.setInitParameter("Name2", "Jerry");
-//        servletContext.setInitParameter("log4jConfiguration", "WEB-INF/classes/log4j-webvar.xml");
-//        final Log4jWebLifeCycle initializer = WebLoggerContextUtils.getWebLifeCycle(servletContext);
-//        initializer.start();
-//        initializer.setLoggerContext();
-//        final LoggerContext ctx = ContextAnchor.THREAD_CONTEXT.get();
-//        assertNotNull(ctx, "No LoggerContext");
-//        assertNotNull(WebLoggerContextUtils.getServletContext(), "No ServletContext");
-//        final Configuration config = ctx.getConfiguration();
-//        assertNotNull(config, "No Configuration");
-//        final Map<String, Appender> appenders = config.getAppenders();
-//        for (final Map.Entry<String, Appender> entry : appenders.entrySet()) {
-//            if (entry.getKey().equals("file")) {
-//                final FileAppender fa = (FileAppender) entry.getValue();
-//                assertEquals("target/myapp.log", fa.getFileName());
-//            }
-//        }
-//        final StrSubstitutor substitutor = config.getStrSubstitutor();
-//        String value = substitutor.replace("${web:contextPathName:-default}");
-//        assertEquals("default", value, "Incorrect value for context name");
-//        assertNotNull(value, "No value for context name");
-//        initializer.stop();
-//        ContextAnchor.THREAD_CONTEXT.remove();
-//    }
-
-}
diff --git a/log4j-jakarta-web/src/test/resources/WEB-INF/classes/log4j-servlet.xml b/log4j-jakarta-web/src/test/resources/WEB-INF/classes/log4j-servlet.xml
deleted file mode 100644
index 76da3691b2..0000000000
--- a/log4j-jakarta-web/src/test/resources/WEB-INF/classes/log4j-servlet.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<Configuration status="WARN" name="ServletTest">
-
-    <Appenders>
-        <Servlet name="Servlet" logThrowables="true">
-            <PatternLayout pattern="%m%n%ex{none}"/>
-        </Servlet>
-    </Appenders>
-
-    <Loggers>
-        <Root level="debug">
-            <AppenderRef ref="Servlet"/>
-        </Root>
-    </Loggers>
-
-</Configuration>
diff --git a/log4j-jakarta-web/src/test/resources/WEB-INF/classes/log4j-webvar.xml b/log4j-jakarta-web/src/test/resources/WEB-INF/classes/log4j-webvar.xml
deleted file mode 100644
index 9773a0f730..0000000000
--- a/log4j-jakarta-web/src/test/resources/WEB-INF/classes/log4j-webvar.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<Configuration status="OFF">
-  <Appenders>
-    <File name="file" fileName="${web:initParam.myapp.logdir}/myapp.log" append="true">
-      <PatternLayout pattern="%d [%t] %-5p %c - %m%n"/>
-    </File>
-  </Appenders>
-  <Loggers>
-    <Root level="warn">
-      <AppenderRef ref="file"/>
-    </Root>
-  </Loggers>
-</Configuration>
diff --git a/log4j-jakarta-web/src/test/resources/log4j2-combined.xml b/log4j-jakarta-web/src/test/resources/log4j2-combined.xml
deleted file mode 100644
index d85749123b..0000000000
--- a/log4j-jakarta-web/src/test/resources/log4j2-combined.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<Configuration status="OFF">
-  <Appenders>
-    <Console name="Console" target="SYSTEM_OUT">
-      <PatternLayout pattern="%d [%t] %-5level: %msg%n%throwable" />
-    </Console>
-  </Appenders>
-  <Loggers>
-    <Logger name="org.foo" level="DEBUG" />
-    <Root level="TRACE">
-      <AppenderRef ref="Console" />
-    </Root>
-  </Loggers>
-</Configuration>
diff --git a/log4j-jakarta-web/src/test/resources/log4j2-override.xml b/log4j-jakarta-web/src/test/resources/log4j2-override.xml
deleted file mode 100644
index af9662bd5a..0000000000
--- a/log4j-jakarta-web/src/test/resources/log4j2-override.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<Configuration>
-  <Loggers>
-    <Logger name="org.foo" level="ERROR" />
-  </Loggers>
-</Configuration>
diff --git a/log4j-jeromq/pom.xml b/log4j-jeromq/pom.xml
index a60b772435..983df2a7d9 100644
--- a/log4j-jeromq/pom.xml
+++ b/log4j-jeromq/pom.xml
@@ -30,7 +30,7 @@
   <properties>
     <log4jParentDir>${basedir}/..</log4jParentDir>
     <docLabel>Log4j ZeroMQ using JeroMQ Documentation</docLabel>
-    <projectDir>/log4j-jpa</projectDir>
+    <projectDir>/log4j-jeromq</projectDir>
     <!--
       ~ OSGi and JPMS options
       -->
diff --git a/log4j-jpa/pom.xml b/log4j-jpa/pom.xml
deleted file mode 100644
index a18e325584..0000000000
--- a/log4j-jpa/pom.xml
+++ /dev/null
@@ -1,124 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <parent>
-    <groupId>org.apache.logging.log4j</groupId>
-    <artifactId>log4j</artifactId>
-    <version>${revision}</version>
-    <relativePath>../log4j-parent</relativePath>
-  </parent>
-
-  <artifactId>log4j-jpa</artifactId>
-  <name>Apache Log4j JPA</name>
-  <description>Apache Log4j Java Persistence API Appender.</description>
-  <properties>
-    <log4jParentDir>${basedir}/..</log4jParentDir>
-    <docLabel>Log4j JPA Documentation</docLabel>
-    <projectDir>/log4j-jpa</projectDir>
-
-    <!--
-      ~ OSGi and JPMS options
-      -->
-    <bnd-extra-module-options>
-      <!-- Non detected module names -->
-      com.fasterxml.jackson.core;substitute="jackson-core",
-      com.fasterxml.jackson.databind;substitute="jackson-databind"
-    </bnd-extra-module-options>
-    <Fragment-Host>org.apache.logging.log4j.core</Fragment-Host>
-  </properties>
-
-  <dependencies>
-    <!-- Used for JPA appenders (needs an implementation of course) -->
-    <dependency>
-      <groupId>javax.persistence</groupId>
-      <artifactId>javax.persistence-api</artifactId>
-      <scope>provided</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-core</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>com.fasterxml.jackson.core</groupId>
-      <artifactId>jackson-core</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>com.fasterxml.jackson.core</groupId>
-      <artifactId>jackson-databind</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-api-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-core-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>com.h2database</groupId>
-      <artifactId>h2</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.hamcrest</groupId>
-      <artifactId>hamcrest</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.hsqldb</groupId>
-      <artifactId>hsqldb</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.junit.jupiter</groupId>
-      <artifactId>junit-jupiter-engine</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.junit.vintage</groupId>
-      <artifactId>junit-vintage-engine</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.eclipse.persistence</groupId>
-      <artifactId>org.eclipse.persistence.jpa</artifactId>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <annotationProcessorPaths combine.children="append">
-            <path>
-              <groupId>org.apache.logging.log4j</groupId>
-              <artifactId>log4j-plugin-processor</artifactId>
-              <version>${project.version}</version>
-            </path>
-          </annotationProcessorPaths>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
-</project>
diff --git a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/appender/AbstractLogEventWrapperEntity.java b/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/appender/AbstractLogEventWrapperEntity.java
deleted file mode 100644
index 37fcc8aa35..0000000000
--- a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/appender/AbstractLogEventWrapperEntity.java
+++ /dev/null
@@ -1,342 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.appender;
-
-import java.util.Map;
-
-import javax.persistence.Inheritance;
-import javax.persistence.InheritanceType;
-import javax.persistence.MappedSuperclass;
-import javax.persistence.Transient;
-
-import org.apache.logging.log4j.Level;
-import org.apache.logging.log4j.Marker;
-import org.apache.logging.log4j.ThreadContext;
-import org.apache.logging.log4j.core.AbstractLogEvent;
-import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.core.time.Instant;
-import org.apache.logging.log4j.jpa.converter.ContextDataAttributeConverter;
-import org.apache.logging.log4j.message.Message;
-import org.apache.logging.log4j.util.ReadOnlyStringMap;
-
-/**
- * <p>
- * Users of the JPA appender MUST extend this class, using JPA annotations on the concrete class and all of its
- * accessor methods (as needed) to map them to the proper table and columns. Accessors you do not want persisted should
- * be annotated with {@link Transient @Transient}. All accessors should call {@link #getWrappedEvent()} and delegate the
- * call to the underlying event. Users may want to instead extend {@link BasicLogEventEntity}, which takes care of all
- * of this for you.
- * </p>
- * <p>
- * The concrete class must have two constructors: a public no-arg constructor to convince the JPA provider that it's a
- * valid entity, and a public constructor that takes a single {@link LogEvent event} and passes it to the parent class
- * with {@link #AbstractLogEventWrapperEntity(LogEvent) super(event)}. Furthermore, the concrete class must be annotated
- * {@link javax.persistence.Entity @Entity} and {@link javax.persistence.Table @Table} and must implement a fully
- * mutable ID property annotated with {@link javax.persistence.Id @Id} and
- * {@link javax.persistence.GeneratedValue @GeneratedValue} to tell the JPA provider how to calculate an ID for new
- * events.
- * </p>
- * <p>
- * Many of the return types of {@link LogEvent} methods (e.g., {@link StackTraceElement}, {@link Message},
- * {@link Marker}, {@link Throwable},
- * {@link org.apache.logging.log4j.ThreadContext.ContextStack ThreadContext.ContextStack}, and
- * {@link Map Map&lt;String, String&gt;}) will not be recognized by the JPA provider. In conjunction with
- * {@link javax.persistence.Convert @Convert}, you can use the converters in the
- * {@link org.apache.logging.log4j.jpa.converter} package to convert these types to database columns.
- * If you want to retrieve log events from the database, you can create a true POJO entity and also use these
- * converters for extracting persisted values.<br>
- * </p>
- * <p>
- * The mutator methods in this class not specified in {@link LogEvent} are no-op methods, implemented to satisfy the JPA
- * requirement that accessor methods have matching mutator methods. If you create additional accessor methods, you must
- * likewise create matching no-op mutator methods.
- * </p>
- *
- * @see BasicLogEventEntity
- */
-@MappedSuperclass
-@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
-public abstract class AbstractLogEventWrapperEntity implements LogEvent {
-
-    private final LogEvent wrappedEvent;
-
-    /**
-     * Instantiates this base class. All concrete implementations must have a constructor matching this constructor's
-     * signature. The no-argument constructor is required for a standards-compliant JPA provider to accept this as an
-     * entity.
-     */
-    @SuppressWarnings("unused")
-    protected AbstractLogEventWrapperEntity() {
-        this(new NullLogEvent());
-    }
-
-    /**
-     * Instantiates this base class. All concrete implementations must have a constructor matching this constructor's
-     * signature. This constructor is used for wrapping this entity around a logged event.
-     *
-     * @param wrappedEvent The underlying event from which information is obtained.
-     */
-    protected AbstractLogEventWrapperEntity(final LogEvent wrappedEvent) {
-        if (wrappedEvent == null) {
-            throw new IllegalArgumentException("The wrapped event cannot be null.");
-        }
-        this.wrappedEvent = wrappedEvent;
-    }
-
-    @Override
-    public LogEvent toImmutable() {
-        return toMemento();
-    }
-
-    /**
-     * All eventual accessor methods must call this method and delegate the method call to the underlying wrapped event.
-     * Annotated {@link Transient} so as not to be included in the persisted entity.
-     *
-     * @return The underlying event from which information is obtained.
-     */
-    @Transient
-    protected final LogEvent getWrappedEvent() {
-        return this.wrappedEvent;
-    }
-
-    /**
-     * A no-op mutator to satisfy JPA requirements, as this entity is write-only.
-     *
-     * @param level Ignored.
-     */
-    @SuppressWarnings("unused")
-    public void setLevel(final Level level) {
-        // this entity is write-only
-    }
-
-    /**
-     * A no-op mutator to satisfy JPA requirements, as this entity is write-only.
-     *
-     * @param loggerName Ignored.
-     */
-    @SuppressWarnings("unused")
-    public void setLoggerName(final String loggerName) {
-        // this entity is write-only
-    }
-
-    /**
-     * A no-op mutator to satisfy JPA requirements, as this entity is write-only.
-     *
-     * @param source Ignored.
-     */
-    @SuppressWarnings("unused")
-    public void setSource(final StackTraceElement source) {
-        // this entity is write-only
-    }
-
-    /**
-     * A no-op mutator to satisfy JPA requirements, as this entity is write-only.
-     *
-     * @param message Ignored.
-     */
-    @SuppressWarnings("unused")
-    public void setMessage(final Message message) {
-        // this entity is write-only
-    }
-
-    /**
-     * A no-op mutator to satisfy JPA requirements, as this entity is write-only.
-     *
-     * @param marker Ignored.
-     */
-    @SuppressWarnings("unused")
-    public void setMarker(final Marker marker) {
-        // this entity is write-only
-    }
-
-    /**
-     * A no-op mutator to satisfy JPA requirements, as this entity is write-only.
-     *
-     * @param threadId Ignored.
-     */
-    @SuppressWarnings("unused")
-    public void setThreadId(final long threadId) {
-        // this entity is write-only
-    }
-
-    /**
-     * A no-op mutator to satisfy JPA requirements, as this entity is write-only.
-     *
-     * @param threadName Ignored.
-     */
-    @SuppressWarnings("unused")
-    public void setThreadName(final String threadName) {
-        // this entity is write-only
-    }
-
-    /**
-     * A no-op mutator to satisfy JPA requirements, as this entity is write-only.
-     *
-     * @param threadPriority Ignored.
-     */
-    @SuppressWarnings("unused")
-    public void setThreadPriority(final int threadPriority) {
-        // this entity is write-only
-    }
-
-    /**
-     * A no-op mutator to satisfy JPA requirements, as this entity is write-only.
-     *
-     * @param nanoTime Ignored.
-     */
-    @SuppressWarnings("unused")
-    public void setNanoTime(final long nanoTime) {
-        // this entity is write-only
-    }
-
-    /**
-     * A no-op mutator to satisfy JPA requirements, as this entity is write-only.
-     *
-     * @param millis Ignored.
-     */
-    @SuppressWarnings("unused")
-    public void setTimeMillis(final long millis) {
-        // this entity is write-only
-    }
-
-    /**
-     * A no-op mutator to satisfy JPA requirements, as this entity is write-only.
-     *
-     * @param instant Ignored.
-     */
-    @SuppressWarnings("unused")
-    public void setInstant(final Instant instant) {
-        // this entity is write-only
-    }
-
-    /**
-     * A no-op mutator to satisfy JPA requirements, as this entity is write-only.
-     *
-     * @param nanoOfMillisecond Ignored.
-     */
-    @SuppressWarnings("unused")
-    public void setNanoOfMillisecond(final int nanoOfMillisecond) {
-        // this entity is write-only
-    }
-
-    /**
-     * A no-op mutator to satisfy JPA requirements, as this entity is write-only.
-     *
-     * @param throwable Ignored.
-     */
-    @SuppressWarnings("unused")
-    public void setThrown(final Throwable throwable) {
-        // this entity is write-only
-    }
-
-    /**
-     * A no-op mutator to satisfy JPA requirements, as this entity is write-only.
-     *
-     * @param contextData Ignored.
-     */
-    @SuppressWarnings("unused")
-    public void setContextData(final ReadOnlyStringMap contextData) {
-        // this entity is write-only
-    }
-
-    /**
-     * A no-op mutator to satisfy JPA requirements, as this entity is write-only.
-     *
-     * @param map Ignored.
-     */
-    @SuppressWarnings("unused")
-    public void setContextMap(final Map<String, String> map) {
-        // this entity is write-only
-    }
-
-    /**
-     * A no-op mutator to satisfy JPA requirements, as this entity is write-only.
-     *
-     * @param contextStack Ignored.
-     */
-    @SuppressWarnings("unused")
-    public void setContextStack(final ThreadContext.ContextStack contextStack) {
-        // this entity is write-only
-    }
-
-    /**
-     * A no-op mutator to satisfy JPA requirements, as this entity is write-only.
-     *
-     * @param fqcn Ignored.
-     */
-    @SuppressWarnings("unused")
-    public void setLoggerFqcn(final String fqcn) {
-        // this entity is write-only
-    }
-
-    /**
-     * Indicates whether the source of the logging request is required downstream. Annotated
-     * {@link Transient @Transient} so as to not be included in the persisted entity.
-     *
-     * @return whether the source of the logging request is required downstream.
-     */
-    @Override
-    @Transient
-    public final boolean isIncludeLocation() {
-        return this.getWrappedEvent().isIncludeLocation();
-    }
-
-    @Override
-    public final void setIncludeLocation(final boolean locationRequired) {
-        this.getWrappedEvent().setIncludeLocation(locationRequired);
-    }
-
-    /**
-     * Indicates whether this event is the last one in a batch. Annotated {@link Transient @Transient} so as to not be
-     * included in the persisted entity.
-     *
-     * @return whether this event is the last one in a batch.
-     */
-    @Override
-    @Transient
-    public final boolean isEndOfBatch() {
-        return this.getWrappedEvent().isEndOfBatch();
-    }
-
-    @Override
-    public final void setEndOfBatch(final boolean endOfBatch) {
-        this.getWrappedEvent().setEndOfBatch(endOfBatch);
-    }
-
-    /**
-     * Gets the context map. Transient, since the String version of the data is obtained via ReadOnlyStringMap.
-     *
-     * @return the context data.
-     * @see ContextDataAttributeConverter
-     * @see org.apache.logging.log4j.jpa.converter.ContextDataAttributeConverter
-     */
-    @Override
-    @Transient
-    //@Convert(converter = ContextDataAttributeConverter.class)
-    public ReadOnlyStringMap getContextData() {
-        return this.getWrappedEvent().getContextData();
-    }
-
-    /**
-     * A no-op log event class to prevent {@code NullPointerException}s. O/RMs tend to create instances of entities in
-     * order to "play around" with them.
-     */
-    private static class NullLogEvent extends AbstractLogEvent {
-
-        // Inherits everything
-    }
-}
diff --git a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/appender/BasicLogEventEntity.java b/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/appender/BasicLogEventEntity.java
deleted file mode 100644
index 7548ccb95f..0000000000
--- a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/appender/BasicLogEventEntity.java
+++ /dev/null
@@ -1,257 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.appender;
-
-import javax.persistence.Basic;
-import javax.persistence.Convert;
-import javax.persistence.MappedSuperclass;
-import javax.persistence.Transient;
-
-import org.apache.logging.log4j.Level;
-import org.apache.logging.log4j.Marker;
-import org.apache.logging.log4j.ThreadContext;
-import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.core.impl.ThrowableProxy;
-import org.apache.logging.log4j.core.time.Instant;
-import org.apache.logging.log4j.jpa.converter.ContextMapAttributeConverter;
-import org.apache.logging.log4j.jpa.converter.ContextStackAttributeConverter;
-import org.apache.logging.log4j.jpa.converter.InstantAttributeConverter;
-import org.apache.logging.log4j.jpa.converter.LevelAttributeConverter;
-import org.apache.logging.log4j.jpa.converter.MarkerAttributeConverter;
-import org.apache.logging.log4j.jpa.converter.MessageAttributeConverter;
-import org.apache.logging.log4j.jpa.converter.StackTraceElementAttributeConverter;
-import org.apache.logging.log4j.jpa.converter.ThrowableAttributeConverter;
-import org.apache.logging.log4j.message.Message;
-
-/**
- * Users of the JPA appender may want to extend this class instead of {@link AbstractLogEventWrapperEntity}. This class
- * implements all of the required mutator methods but does not implement a mutable entity ID property. In order to
- * create an entity based on this class, you need only create two constructors matching this class's constructors,
- * annotate the class {@link javax.persistence.Entity @Entity} and {@link javax.persistence.Table @Table}, and implement
- * the fully mutable entity ID property annotated with {@link javax.persistence.Id @Id} and
- * {@link javax.persistence.GeneratedValue @GeneratedValue} to tell the JPA provider how to calculate an ID for new
- * events.<br>
- * <br>
- * The attributes in this entity use the default column names (which, according to the JPA spec, are the property names
- * minus the "get" and "set" from the accessors/mutators). If you want to use different column names for one or more
- * columns, override the necessary accessor methods defined in this class with the same annotations plus the
- * {@link javax.persistence.Column @Column} annotation to specify the column name.<br>
- * <br>
- * The #getContextMap() and {@link #getContextStack()} attributes in this entity use the
- * {@link ContextMapAttributeConverter} and {@link ContextStackAttributeConverter}, respectively. These convert the
- * properties to simple strings that cannot be converted back to the properties. If you wish to instead convert these to
- * a reversible JSON string, override these attributes with the same annotations but use the
- * {@link org.apache.logging.log4j.jpa.converter.ContextMapJsonAttributeConverter} and
- * {@link org.apache.logging.log4j.jpa.converter.ContextStackJsonAttributeConverter} instead.<br>
- * <br>
- * All other attributes in this entity use reversible converters that can be used for both persistence and retrieval. If
- * there are any attributes you do not want persistent, you should override their accessor methods and annotate with
- * {@link javax.persistence.Transient @Transient}.
- *
- * @see AbstractLogEventWrapperEntity
- */
-@MappedSuperclass
-public abstract class BasicLogEventEntity extends AbstractLogEventWrapperEntity {
-
-    /**
-     * Instantiates this base class. All concrete implementations must have a constructor matching this constructor's
-     * signature. The no-argument constructor is required for a standards-compliant JPA provider to accept this as an
-     * entity.
-     */
-    public BasicLogEventEntity() {
-        super();
-    }
-
-    /**
-     * Instantiates this base class. All concrete implementations must have a constructor matching this constructor's
-     * signature. This constructor is used for wrapping this entity around a logged event.
-     *
-     * @param wrappedEvent The underlying event from which information is obtained.
-     */
-    public BasicLogEventEntity(final LogEvent wrappedEvent) {
-        super(wrappedEvent);
-    }
-
-    /**
-     * Gets the level. Annotated with {@code @Basic} and {@code @Enumerated(EnumType.STRING)}.
-     *
-     * @return the level.
-     */
-    @Override
-    @Convert(converter = LevelAttributeConverter.class)
-    public Level getLevel() {
-        return this.getWrappedEvent().getLevel();
-    }
-
-    /**
-     * Gets the logger name. Annotated with {@code @Basic}.
-     *
-     * @return the logger name.
-     */
-    @Override
-    @Basic
-    public String getLoggerName() {
-        return this.getWrappedEvent().getLoggerName();
-    }
-
-    /**
-     * Gets the source location information. Annotated with
-     * {@code @Convert(converter = StackTraceElementAttributeConverter.class)}.
-     *
-     * @return the source location information.
-     * @see StackTraceElementAttributeConverter
-     */
-    @Override
-    @Convert(converter = StackTraceElementAttributeConverter.class)
-    public StackTraceElement getSource() {
-        return this.getWrappedEvent().getSource();
-    }
-
-    /**
-     * Gets the message. Annotated with {@code @Convert(converter = MessageAttributeConverter.class)}.
-     *
-     * @return the message.
-     * @see MessageAttributeConverter
-     */
-    @Override
-    @Convert(converter = MessageAttributeConverter.class)
-    public Message getMessage() {
-        return this.getWrappedEvent().getMessage();
-    }
-
-    /**
-     * Gets the marker. Annotated with {@code @Convert(converter = MarkerAttributeConverter.class)}.
-     *
-     * @return the marker.
-     * @see MarkerAttributeConverter
-     */
-    @Override
-    @Convert(converter = MarkerAttributeConverter.class)
-    public Marker getMarker() {
-        return this.getWrappedEvent().getMarker();
-    }
-
-    /**
-     * Gets the thread ID. Annotated with {@code @Basic}.
-     *
-     * @return the thread ID.
-     */
-    @Override
-    @Basic
-    public long getThreadId() {
-        return this.getWrappedEvent().getThreadId();
-    }
-
-    /**
-     * Gets the thread name. Annotated with {@code @Basic}.
-     *
-     * @return the thread name.
-     */
-    @Override
-    @Basic
-    public int getThreadPriority() {
-        return this.getWrappedEvent().getThreadPriority();
-    }
-
-    /**
-     * Gets the thread name. Annotated with {@code @Basic}.
-     *
-     * @return the thread name.
-     */
-    @Override
-    @Basic
-    public String getThreadName() {
-        return this.getWrappedEvent().getThreadName();
-    }
-
-    /**
-     * Gets the number of milliseconds since JVM launch. Annotated with {@code @Basic}.
-     *
-     * @return the number of milliseconds since JVM launch.
-     */
-    @Override
-    @Basic
-    public long getTimeMillis() {
-        return this.getWrappedEvent().getTimeMillis();
-    }
-
-    @Override
-    @Convert(converter = InstantAttributeConverter.class)
-    public Instant getInstant() {
-        return this.getWrappedEvent().getInstant();
-    }
-
-    /**
-     * Returns the value of the running Java Virtual Machine's high-resolution time source when this event was created,
-     * or a dummy value if it is known that this value will not be used downstream.
-     *
-     * @return the JVM nano time
-     */
-    @Override
-    @Basic
-    public long getNanoTime() {
-        return this.getWrappedEvent().getNanoTime();
-    }
-
-    /**
-     * Gets the exception logged. Annotated with {@code @Convert(converter = ThrowableAttributeConverter.class)}.
-     *
-     * @return the exception logged.
-     * @see ThrowableAttributeConverter
-     */
-    @Override
-    @Convert(converter = ThrowableAttributeConverter.class)
-    public Throwable getThrown() {
-        return this.getWrappedEvent().getThrown();
-    }
-
-    /**
-     * Gets the exception logged. Annotated with {@code @Convert(converter = ThrowableAttributeConverter.class)}.
-     *
-     * @return the exception logged.
-     * @see ThrowableAttributeConverter
-     */
-    @Override
-    @Transient
-    public ThrowableProxy getThrownProxy() {
-        return this.getWrappedEvent().getThrownProxy();
-    }
-
-    /**
-     * Gets the context stack. Annotated with {@code @Convert(converter = ContextStackAttributeConverter.class)}.
-     *
-     * @return the context stack.
-     * @see ContextStackAttributeConverter
-     * @see org.apache.logging.log4j.jpa.converter.ContextStackJsonAttributeConverter
-     */
-    @Override
-    @Convert(converter = ContextStackAttributeConverter.class)
-    public ThreadContext.ContextStack getContextStack() {
-        return this.getWrappedEvent().getContextStack();
-    }
-
-    /**
-     * Gets the fully qualified class name of the caller of the logger API. Annotated with {@code @Basic}.
-     *
-     * @return the fully qualified class name of the caller of the logger API.
-     */
-    @Override
-    @Basic
-    public String getLoggerFqcn() {
-        return this.getWrappedEvent().getLoggerFqcn();
-    }
-}
diff --git a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/appender/JpaAppender.java b/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/appender/JpaAppender.java
deleted file mode 100644
index 615117b876..0000000000
--- a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/appender/JpaAppender.java
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.appender;
-
-import java.lang.reflect.Constructor;
-
-import org.apache.logging.log4j.core.Appender;
-import org.apache.logging.log4j.core.Filter;
-import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.core.appender.AbstractAppender;
-import org.apache.logging.log4j.core.appender.db.AbstractDatabaseAppender;
-import org.apache.logging.log4j.core.config.Configuration;
-import org.apache.logging.log4j.core.config.Property;
-import org.apache.logging.log4j.core.util.Booleans;
-import org.apache.logging.log4j.plugins.Configurable;
-import org.apache.logging.log4j.plugins.Plugin;
-import org.apache.logging.log4j.plugins.PluginAttribute;
-import org.apache.logging.log4j.plugins.PluginElement;
-import org.apache.logging.log4j.plugins.PluginFactory;
-import org.apache.logging.log4j.util.LoaderUtil;
-import org.apache.logging.log4j.util.Strings;
-
-/**
- * This Appender writes logging events to a relational database using the Java Persistence API. It requires a
- * pre-configured JPA persistence unit and a concrete implementation of the abstract
- * {@link AbstractLogEventWrapperEntity} class decorated with JPA annotations.
- *
- * @see AbstractLogEventWrapperEntity
- */
-@Configurable(elementType = Appender.ELEMENT_TYPE, printObject = true)
-@Plugin("JPA")
-public final class JpaAppender extends AbstractDatabaseAppender<JpaDatabaseManager> {
-
-    private final String description;
-
-    private JpaAppender(final String name, final Filter filter, final boolean ignoreExceptions,
-            final Property[] properties, final JpaDatabaseManager manager) {
-        super(name, filter, null, ignoreExceptions, properties, manager);
-        this.description = this.getName() + "{ manager=" + this.getManager() + " }";
-    }
-
-    @Override
-    public String toString() {
-        return this.description;
-    }
-
-    /**
-     * Factory method for creating a JPA appender within the plugin manager.
-     *
-     * @param name The name of the appender.
-     * @param ignore If {@code "true"} (default) exceptions encountered when appending events are logged; otherwise
-     *               they are propagated to the caller.
-     * @param filter The filter, if any, to use.
-     * @param bufferSize If an integer greater than 0, this causes the appender to buffer log events and flush whenever
-     *                   the buffer reaches this size.
-     * @param entityClassName The fully qualified name of the concrete {@link AbstractLogEventWrapperEntity}
-     *                        implementation that has JPA annotations mapping it to a database table.
-     * @param persistenceUnitName The name of the JPA persistence unit that should be used for persisting log events.
-     * @return a new JPA appender.
-     */
-    @PluginFactory
-    public static JpaAppender createAppender(
-            @PluginAttribute final String name,
-            @PluginAttribute("ignoreExceptions") final String ignore,
-            @PluginElement final Filter filter,
-            @PluginAttribute final String bufferSize,
-            @PluginAttribute final String entityClassName,
-            @PluginAttribute final String persistenceUnitName,
-            final Configuration configuration) {
-        if (Strings.isEmpty(entityClassName) || Strings.isEmpty(persistenceUnitName)) {
-            LOGGER.error("Attributes entityClassName and persistenceUnitName are required for JPA Appender.");
-            return null;
-        }
-
-        final int bufferSizeInt = AbstractAppender.parseInt(bufferSize, 0);
-        final boolean ignoreExceptions = Booleans.parseBoolean(ignore, true);
-
-        try {
-            final Class<? extends AbstractLogEventWrapperEntity> entityClass =
-                LoaderUtil.loadClass(entityClassName).asSubclass(AbstractLogEventWrapperEntity.class);
-
-            try {
-                final Constructor<?> ignored = entityClass.getConstructor();
-            } catch (final NoSuchMethodException e) {
-                LOGGER.error("Entity class [{}] does not have a no-arg constructor. The JPA provider will reject it.",
-                        entityClassName);
-                return null;
-            }
-
-            final Constructor<? extends AbstractLogEventWrapperEntity> entityConstructor =
-                    entityClass.getConstructor(LogEvent.class);
-
-            final String managerName = "jpaManager{ description=" + name + ", bufferSize=" + bufferSizeInt
-                    + ", persistenceUnitName=" + persistenceUnitName + ", entityClass=" + entityClass.getName() + '}';
-
-            final JpaDatabaseManager manager = JpaDatabaseManager.getJPADatabaseManager(
-                    managerName, bufferSizeInt, entityClass, entityConstructor, persistenceUnitName, configuration
-            );
-            if (manager == null) {
-                return null;
-            }
-
-            return new JpaAppender(name, filter, ignoreExceptions, null, manager);
-        } catch (final ClassNotFoundException e) {
-            LOGGER.error("Could not load entity class [{}].", entityClassName, e);
-            return null;
-        } catch (final NoSuchMethodException e) {
-            LOGGER.error("Entity class [{}] does not have a constructor with a single argument of type LogEvent.",
-                    entityClassName);
-            return null;
-        } catch (final ClassCastException e) {
-            LOGGER.error("Entity class [{}] does not extend AbstractLogEventWrapperEntity.", entityClassName);
-            return null;
-        }
-    }
-}
diff --git a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/appender/JpaDatabaseManager.java b/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/appender/JpaDatabaseManager.java
deleted file mode 100644
index d9dbcece10..0000000000
--- a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/appender/JpaDatabaseManager.java
+++ /dev/null
@@ -1,196 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.appender;
-
-import java.lang.reflect.Constructor;
-
-import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
-import javax.persistence.EntityTransaction;
-import javax.persistence.Persistence;
-
-import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.core.appender.AppenderLoggingException;
-import org.apache.logging.log4j.core.appender.ManagerFactory;
-import org.apache.logging.log4j.core.appender.db.AbstractDatabaseManager;
-import org.apache.logging.log4j.core.config.Configuration;
-
-/**
- * An {@link AbstractDatabaseManager} implementation for relational databases accessed via JPA.
- */
-public final class JpaDatabaseManager extends AbstractDatabaseManager {
-    private static final JPADatabaseManagerFactory FACTORY = new JPADatabaseManagerFactory();
-
-    private final String entityClassName;
-    private final Constructor<? extends AbstractLogEventWrapperEntity> entityConstructor;
-    private final String persistenceUnitName;
-
-    private EntityManagerFactory entityManagerFactory;
-
-    private EntityManager entityManager;
-    private EntityTransaction transaction;
-
-    private JpaDatabaseManager(final String name, final int bufferSize,
-                               final Class<? extends AbstractLogEventWrapperEntity> entityClass,
-                               final Constructor<? extends AbstractLogEventWrapperEntity> entityConstructor,
-                               final String persistenceUnitName, final Configuration configuration) {
-        super(name, bufferSize, null, configuration);
-        this.entityClassName = entityClass.getName();
-        this.entityConstructor = entityConstructor;
-        this.persistenceUnitName = persistenceUnitName;
-    }
-
-    @Override
-    protected void startupInternal() {
-        this.entityManagerFactory = Persistence.createEntityManagerFactory(this.persistenceUnitName);
-    }
-
-    @Override
-    protected boolean shutdownInternal() {
-        boolean closed = true;
-        if (this.entityManager != null || this.transaction != null) {
-            closed &= this.commitAndClose();
-        }
-        if (this.entityManagerFactory != null && this.entityManagerFactory.isOpen()) {
-            this.entityManagerFactory.close();
-        }
-        return closed;
-    }
-
-    @Override
-    protected void connectAndStart() {
-        try {
-            this.entityManager = this.entityManagerFactory.createEntityManager();
-            this.transaction = this.entityManager.getTransaction();
-            this.transaction.begin();
-        } catch (final Exception e) {
-            throw new AppenderLoggingException(
-                    "Cannot write logging event or flush buffer; manager cannot create EntityManager or transaction.", e
-            );
-        }
-    }
-
-    @Override
-    protected void writeInternal(final LogEvent event) {
-        if (!this.isRunning() || this.entityManagerFactory == null || this.entityManager == null
-                || this.transaction == null) {
-            throw new AppenderLoggingException(
-                    "Cannot write logging event; JPA manager not connected to the database.");
-        }
-
-        AbstractLogEventWrapperEntity entity;
-        try {
-            entity = this.entityConstructor.newInstance(event);
-        } catch (final Exception e) {
-            throw new AppenderLoggingException("Failed to instantiate entity class [" + this.entityClassName + "].", e);
-        }
-
-        try {
-            this.entityManager.persist(entity);
-        } catch (final Exception e) {
-            if (this.transaction != null && this.transaction.isActive()) {
-                this.transaction.rollback();
-                this.transaction = null;
-            }
-            throw new AppenderLoggingException("Failed to insert record for log event in JPA manager: " +
-                    e.getMessage(), e);
-        }
-    }
-
-    @Override
-    protected boolean commitAndClose() {
-        boolean closed = true;
-        try {
-            if (this.transaction != null && this.transaction.isActive()) {
-                this.transaction.commit();
-            }
-        } catch (final Exception e) {
-            if (this.transaction != null && this.transaction.isActive()) {
-                this.transaction.rollback();
-            }
-        } finally {
-            this.transaction = null;
-            try {
-                if (this.entityManager != null && this.entityManager.isOpen()) {
-                    this.entityManager.close();
-                }
-            } catch (final Exception e) {
-                logWarn("Failed to close entity manager while logging event or flushing buffer", e);
-                closed = false;
-            } finally {
-                this.entityManager = null;
-            }
-        }
-        return closed;
-    }
-
-    /**
-     * Creates a JPA manager for use within the {@link JpaAppender}, or returns a suitable one if it already exists.
-     *
-     * @param name The name of the manager, which should include connection details, entity class name, etc.
-     * @param bufferSize The size of the log event buffer.
-     * @param entityClass The fully-qualified class name of the {@link AbstractLogEventWrapperEntity} concrete
-     *                    implementation.
-     * @param entityConstructor The one-arg {@link LogEvent} constructor for the concrete entity class.
-     * @param persistenceUnitName The name of the JPA persistence unit that should be used for persisting log events.
-     * @return a new or existing JPA manager as applicable.
-     */
-    public static JpaDatabaseManager getJPADatabaseManager(final String name, final int bufferSize,
-                                                           final Class<? extends AbstractLogEventWrapperEntity>
-                                                                   entityClass,
-                                                           final Constructor<? extends AbstractLogEventWrapperEntity>
-                                                                   entityConstructor,
-                                                           final String persistenceUnitName,
-                                                           final Configuration configuration) {
-
-        return AbstractDatabaseManager.getManager(
-                name, new FactoryData(bufferSize, entityClass, entityConstructor, persistenceUnitName, configuration), FACTORY
-        );
-    }
-
-    /**
-     * Encapsulates data that {@link JPADatabaseManagerFactory} uses to create managers.
-     */
-    private static final class FactoryData extends AbstractDatabaseManager.AbstractFactoryData {
-        private final Class<? extends AbstractLogEventWrapperEntity> entityClass;
-        private final Constructor<? extends AbstractLogEventWrapperEntity> entityConstructor;
-        private final String persistenceUnitName;
-
-        protected FactoryData(final int bufferSize, final Class<? extends AbstractLogEventWrapperEntity> entityClass,
-                              final Constructor<? extends AbstractLogEventWrapperEntity> entityConstructor,
-                              final String persistenceUnitName, final Configuration configuration) {
-            super(configuration, bufferSize, null);
-
-            this.entityClass = entityClass;
-            this.entityConstructor = entityConstructor;
-            this.persistenceUnitName = persistenceUnitName;
-        }
-    }
-
-    /**
-     * Creates managers.
-     */
-    private static final class JPADatabaseManagerFactory implements ManagerFactory<JpaDatabaseManager, FactoryData> {
-        @Override
-        public JpaDatabaseManager createManager(final String name, final FactoryData data) {
-            return new JpaDatabaseManager(
-                    name, data.getBufferSize(), data.entityClass, data.entityConstructor, data.persistenceUnitName,
-                    data.getConfiguration()
-            );
-        }
-    }
-}
diff --git a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/appender/package-info.java b/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/appender/package-info.java
deleted file mode 100644
index 79fd276d2a..0000000000
--- a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/appender/package-info.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * 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.
- */
-/**
- * The JPA Appender supports writing log events to a relational database using the Java Persistence API. You will need
- * a JDBC driver on your classpath for the database you wish to log to. You will also need the Java Persistence API 2.1
- * and your JPA provider of choice on the class path; these Maven dependencies are optional and will not automatically
- * be added to your classpath.
- */
-@Export
-@Open("org.apache.logging.log4j.core")
-@Version("1.0.0")
-package org.apache.logging.log4j.jpa.appender;
-
-import aQute.bnd.annotation.jpms.Open;
-import org.osgi.annotation.bundle.Export;
-import org.osgi.annotation.versioning.Version;
diff --git a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ContextDataAttributeConverter.java b/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ContextDataAttributeConverter.java
deleted file mode 100644
index 145e78e913..0000000000
--- a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ContextDataAttributeConverter.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import javax.persistence.AttributeConverter;
-import javax.persistence.Converter;
-
-import org.apache.logging.log4j.util.ReadOnlyStringMap;
-
-/**
- * A JPA 2.1 attribute converter for {@link ReadOnlyStringMap}s in
- * {@link org.apache.logging.log4j.core.LogEvent}s. This converter is only capable of converting to {@link String}s. The
- * {@link #convertToEntityAttribute(String)} method throws an {@link UnsupportedOperationException}. If you need to
- * support converting to an entity attribute, you should use the {@link ContextMapJsonAttributeConverter} for conversion
- * both ways.
- */
-@Converter(autoApply = false)
-public class ContextDataAttributeConverter implements AttributeConverter<ReadOnlyStringMap, String> {
-    @Override
-    public String convertToDatabaseColumn(final ReadOnlyStringMap contextData) {
-        if (contextData == null) {
-            return null;
-        }
-
-        return contextData.toString();
-    }
-
-    @Override
-    public ReadOnlyStringMap convertToEntityAttribute(final String s) {
-        throw new UnsupportedOperationException("Log events can only be persisted, not extracted.");
-    }
-}
diff --git a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ContextDataJsonAttributeConverter.java b/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ContextDataJsonAttributeConverter.java
deleted file mode 100644
index 009ce17b44..0000000000
--- a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ContextDataJsonAttributeConverter.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import java.io.IOException;
-import java.util.Iterator;
-import java.util.Map;
-
-import javax.persistence.AttributeConverter;
-import javax.persistence.Converter;
-import javax.persistence.PersistenceException;
-
-import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.fasterxml.jackson.databind.node.JsonNodeFactory;
-import com.fasterxml.jackson.databind.node.ObjectNode;
-import org.apache.logging.log4j.core.impl.ContextDataFactory;
-import org.apache.logging.log4j.util.ReadOnlyStringMap;
-import org.apache.logging.log4j.util.StringMap;
-import org.apache.logging.log4j.util.Strings;
-
-/**
- * A JPA 2.1 attribute converter for {@link ReadOnlyStringMap}s in
- * {@link org.apache.logging.log4j.core.LogEvent}s. This converter is capable of converting both to and from
- * {@link String}s.
- *
- * In addition to other optional dependencies required by the JPA appender, this converter requires the Jackson Data
- * Processor.
- */
-@Converter(autoApply = false)
-public class ContextDataJsonAttributeConverter implements AttributeConverter<ReadOnlyStringMap, String> {
-    static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
-
-    @Override
-    public String convertToDatabaseColumn(final ReadOnlyStringMap contextData) {
-        if (contextData == null) {
-            return null;
-        }
-
-        try {
-            final JsonNodeFactory factory = OBJECT_MAPPER.getNodeFactory();
-            final ObjectNode root = factory.objectNode();
-            contextData.forEach((key, value) -> {
-                // we will cheat here and write the toString of the Object... meh, but ok.
-                root.put(key, String.valueOf(value));
-            });
-            return OBJECT_MAPPER.writeValueAsString(root);
-        } catch (final Exception e) {
-            throw new PersistenceException("Failed to convert contextData to JSON string.", e);
-        }
-    }
-
-    @Override
-    public ReadOnlyStringMap convertToEntityAttribute(final String s) {
-        if (Strings.isEmpty(s)) {
-            return null;
-        }
-        try {
-            final StringMap result = ContextDataFactory.createContextData();
-            final ObjectNode root = (ObjectNode) OBJECT_MAPPER.readTree(s);
-            final Iterator<Map.Entry<String, JsonNode>> entries = root.fields();
-            while (entries.hasNext()) {
-                final Map.Entry<String, JsonNode> entry = entries.next();
-
-                // Don't know what to do with non-text values.
-                // Maybe users who need this need to provide custom converter?
-                final Object value = entry.getValue().textValue();
-                result.putValue(entry.getKey(), value);
-            }
-            return result;
-        } catch (final IOException e) {
-            throw new PersistenceException("Failed to convert JSON string to map.", e);
-        }
-    }
-}
diff --git a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ContextMapAttributeConverter.java b/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ContextMapAttributeConverter.java
deleted file mode 100644
index e2215ce155..0000000000
--- a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ContextMapAttributeConverter.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import java.util.Map;
-
-import javax.persistence.AttributeConverter;
-import javax.persistence.Converter;
-
-/**
- * A JPA 2.1 attribute converter for {@link Map Map&lt;String, String&gt;}s in
- * {@link org.apache.logging.log4j.core.LogEvent}s. This converter is only capable of converting to {@link String}s. The
- * {@link #convertToEntityAttribute(String)} method throws an {@link UnsupportedOperationException}. If you need to
- * support converting to an entity attribute, you should use the {@link ContextMapJsonAttributeConverter} for conversion
- * both ways.
- */
-@Converter(autoApply = false)
-public class ContextMapAttributeConverter implements AttributeConverter<Map<String, String>, String> {
-    @Override
-    public String convertToDatabaseColumn(final Map<String, String> contextMap) {
-        if (contextMap == null) {
-            return null;
-        }
-
-        return contextMap.toString();
-    }
-
-    @Override
-    public Map<String, String> convertToEntityAttribute(final String s) {
-        throw new UnsupportedOperationException("Log events can only be persisted, not extracted.");
-    }
-}
diff --git a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ContextMapJsonAttributeConverter.java b/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ContextMapJsonAttributeConverter.java
deleted file mode 100644
index 324dfe0291..0000000000
--- a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ContextMapJsonAttributeConverter.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import java.io.IOException;
-import java.util.Map;
-
-import javax.persistence.AttributeConverter;
-import javax.persistence.Converter;
-import javax.persistence.PersistenceException;
-
-import com.fasterxml.jackson.core.type.TypeReference;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import org.apache.logging.log4j.util.Strings;
-
-/**
- * A JPA 2.1 attribute converter for {@link Map Map&lt;String, String&gt;}s in
- * {@link org.apache.logging.log4j.core.LogEvent}s. This converter is capable of converting both to and from
- * {@link String}s.
- *
- * In addition to other optional dependencies required by the JPA appender, this converter requires the Jackson Data
- * Processor.
- */
-@Converter(autoApply = false)
-public class ContextMapJsonAttributeConverter implements AttributeConverter<Map<String, String>, String> {
-    static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
-
-    @Override
-    public String convertToDatabaseColumn(final Map<String, String> contextMap) {
-        if (contextMap == null) {
-            return null;
-        }
-
-        try {
-            return OBJECT_MAPPER.writeValueAsString(contextMap);
-        } catch (final IOException e) {
-            throw new PersistenceException("Failed to convert map to JSON string.", e);
-        }
-    }
-
-    @Override
-    public Map<String, String> convertToEntityAttribute(final String s) {
-        if (Strings.isEmpty(s)) {
-            return null;
-        }
-        try {
-            return OBJECT_MAPPER.readValue(s, new TypeReference<Map<String, String>>() { });
-        } catch (final IOException e) {
-            throw new PersistenceException("Failed to convert JSON string to map.", e);
-        }
-    }
-}
diff --git a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ContextStackAttributeConverter.java b/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ContextStackAttributeConverter.java
deleted file mode 100644
index 623cdc3f6b..0000000000
--- a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ContextStackAttributeConverter.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import javax.persistence.AttributeConverter;
-import javax.persistence.Converter;
-
-import org.apache.logging.log4j.ThreadContext;
-
-/**
- * A JPA 2.1 attribute converter for
- * {@link org.apache.logging.log4j.ThreadContext.ContextStack ThreadContext.ContextStack}s in
- * {@link org.apache.logging.log4j.core.LogEvent}s. This converter is only capable of converting to {@link String}s. The
- * {@link #convertToEntityAttribute(String)} method throws an {@link UnsupportedOperationException}. If you need to
- * support converting to an entity attribute, you should use the {@link ContextStackJsonAttributeConverter} for
- * conversion both ways.
- */
-@Converter(autoApply = false)
-public class ContextStackAttributeConverter implements AttributeConverter<ThreadContext.ContextStack, String> {
-    @Override
-    public String convertToDatabaseColumn(final ThreadContext.ContextStack contextStack) {
-        if (contextStack == null) {
-            return null;
-        }
-
-        final StringBuilder builder = new StringBuilder();
-        for (final String value : contextStack.asList()) {
-            if (builder.length() > 0) {
-                builder.append('\n');
-            }
-            builder.append(value);
-        }
-        return builder.toString();
-    }
-
-    @Override
-    public ThreadContext.ContextStack convertToEntityAttribute(final String s) {
-        throw new UnsupportedOperationException("Log events can only be persisted, not extracted.");
-    }
-}
diff --git a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ContextStackJsonAttributeConverter.java b/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ContextStackJsonAttributeConverter.java
deleted file mode 100644
index 42e29d50df..0000000000
--- a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ContextStackJsonAttributeConverter.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import java.io.IOException;
-import java.util.List;
-
-import javax.persistence.AttributeConverter;
-import javax.persistence.Converter;
-import javax.persistence.PersistenceException;
-
-import com.fasterxml.jackson.core.type.TypeReference;
-import org.apache.logging.log4j.ThreadContext;
-import org.apache.logging.log4j.spi.DefaultThreadContextStack;
-import org.apache.logging.log4j.util.Strings;
-
-/**
- * A JPA 2.1 attribute converter for
- * {@link org.apache.logging.log4j.ThreadContext.ContextStack ThreadContext.ContextStack}s in
- * {@link org.apache.logging.log4j.core.LogEvent}s. This converter is capable of converting both to and from
- * {@link String}s.
- *
- * In addition to other optional dependencies required by the JPA appender, this converter requires the Jackson Data
- * Processor.
- */
-@Converter(autoApply = false)
-public class ContextStackJsonAttributeConverter implements AttributeConverter<ThreadContext.ContextStack, String> {
-    @Override
-    public String convertToDatabaseColumn(final ThreadContext.ContextStack contextStack) {
-        if (contextStack == null) {
-            return null;
-        }
-
-        try {
-            return ContextMapJsonAttributeConverter.OBJECT_MAPPER.writeValueAsString(contextStack.asList());
-        } catch (final IOException e) {
-            throw new PersistenceException("Failed to convert stack list to JSON string.", e);
-        }
-    }
-
-    @Override
-    public ThreadContext.ContextStack convertToEntityAttribute(final String s) {
-        if (Strings.isEmpty(s)) {
-            return null;
-        }
-
-        List<String> list;
-        try {
-            list = ContextMapJsonAttributeConverter.OBJECT_MAPPER.readValue(s, new TypeReference<List<String>>() { });
-        } catch (final IOException e) {
-            throw new PersistenceException("Failed to convert JSON string to list for stack.", e);
-        }
-
-        final DefaultThreadContextStack result = new DefaultThreadContextStack(true);
-        result.addAll(list);
-        return result;
-    }
-}
diff --git a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/InstantAttributeConverter.java b/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/InstantAttributeConverter.java
deleted file mode 100644
index 56d49aefd0..0000000000
--- a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/InstantAttributeConverter.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import javax.persistence.AttributeConverter;
-import javax.persistence.Converter;
-
-import org.apache.logging.log4j.core.time.Instant;
-import org.apache.logging.log4j.core.time.MutableInstant;
-import org.apache.logging.log4j.util.Strings;
-
-/**
- * A JPA 2.1 attribute converter for {@link Instant}s in {@link org.apache.logging.log4j.core.LogEvent}s. This
- * converter is capable of converting both to and from {@link String}s.
- */
-@Converter(autoApply = false)
-public class InstantAttributeConverter implements AttributeConverter<Instant, String> {
-
-    @Override
-    public String convertToDatabaseColumn(final Instant instant) {
-        if (instant == null) {
-            return null;
-        }
-        return instant.getEpochSecond() + "," + instant.getNanoOfSecond();
-    }
-
-    @Override
-    public Instant convertToEntityAttribute(final String s) {
-        if (Strings.isEmpty(s)) {
-            return null;
-        }
-
-        final int pos = s.indexOf(",");
-        final long epochSecond = Long.parseLong(s.substring(0, pos));
-        final int nanos = Integer.parseInt(s.substring(pos + 1, s.length()));
-
-        final MutableInstant result = new MutableInstant();
-        result.initFromEpochSecond(epochSecond, nanos);
-        return result;
-    }
-}
diff --git a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/LevelAttributeConverter.java b/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/LevelAttributeConverter.java
deleted file mode 100644
index 72ff039b97..0000000000
--- a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/LevelAttributeConverter.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import javax.persistence.AttributeConverter;
-import javax.persistence.Converter;
-
-import org.apache.logging.log4j.Level;
-import org.apache.logging.log4j.util.Strings;
-
-/**
- * A JPA 2.1 attribute converter for {@link org.apache.logging.log4j.Level}s in {@link org.apache.logging.log4j.core.LogEvent}s. This
- * converter is capable of converting both to and from {@link String}s.
- */
-@Converter(autoApply = false)
-public class LevelAttributeConverter implements AttributeConverter<Level, String> {
-    @Override
-    public String convertToDatabaseColumn(final Level level) {
-        if (level == null) {
-            return null;
-        }
-        return level.name();
-    }
-
-    @Override
-    public Level convertToEntityAttribute(final String s) {
-        if (Strings.isEmpty(s)) {
-            return null;
-        }
-
-        return Level.toLevel(s, null);
-    }
-}
diff --git a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/MarkerAttributeConverter.java b/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/MarkerAttributeConverter.java
deleted file mode 100644
index e244d36931..0000000000
--- a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/MarkerAttributeConverter.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import javax.persistence.AttributeConverter;
-import javax.persistence.Converter;
-
-import org.apache.logging.log4j.Marker;
-import org.apache.logging.log4j.MarkerManager;
-import org.apache.logging.log4j.util.Strings;
-
-/**
- * A JPA 2.1 attribute converter for {@link Marker}s in {@link org.apache.logging.log4j.core.LogEvent}s. This
- * converter is capable of converting both to and from {@link String}s.
- */
-@Converter(autoApply = false)
-public class MarkerAttributeConverter implements AttributeConverter<Marker, String> {
-    @Override
-    public String convertToDatabaseColumn(final Marker marker) {
-        if (marker == null) {
-            return null;
-        }
-        return marker.toString();
-    }
-
-    @Override
-    public Marker convertToEntityAttribute(final String s) {
-        if (Strings.isEmpty(s)) {
-            return null;
-        }
-
-        final int bracket = s.indexOf("[");
-
-        return bracket < 1 ? MarkerManager.getMarker(s) : MarkerManager.getMarker(s.substring(0, bracket));
-    }
-}
diff --git a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/MessageAttributeConverter.java b/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/MessageAttributeConverter.java
deleted file mode 100644
index 82705d8a32..0000000000
--- a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/MessageAttributeConverter.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import javax.persistence.AttributeConverter;
-import javax.persistence.Converter;
-
-import org.apache.logging.log4j.message.Message;
-import org.apache.logging.log4j.status.StatusLogger;
-import org.apache.logging.log4j.util.Strings;
-
-/**
- * A JPA 2.1 attribute converter for {@link Message}s in {@link org.apache.logging.log4j.core.LogEvent}s. This
- * converter is capable of converting both to and from {@link String}s.
- */
-@Converter(autoApply = false)
-public class MessageAttributeConverter implements AttributeConverter<Message, String> {
-    private static final StatusLogger LOGGER = StatusLogger.getLogger();
-
-    @Override
-    public String convertToDatabaseColumn(final Message message) {
-        if (message == null) {
-            return null;
-        }
-
-        return message.getFormattedMessage();
-    }
-
-    @Override
-    public Message convertToEntityAttribute(final String s) {
-        if (Strings.isEmpty(s)) {
-            return null;
-        }
-
-        return LOGGER.getMessageFactory().newMessage(s);
-    }
-}
diff --git a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/StackTraceElementAttributeConverter.java b/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/StackTraceElementAttributeConverter.java
deleted file mode 100644
index 8e89b28fbc..0000000000
--- a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/StackTraceElementAttributeConverter.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import javax.persistence.AttributeConverter;
-import javax.persistence.Converter;
-
-import org.apache.logging.log4j.util.Strings;
-
-/**
- * A JPA 2.1 attribute converter for {@link StackTraceElement}s in {@link org.apache.logging.log4j.core.LogEvent}s. This
- * converter is capable of converting both to and from {@link String}s.
- */
-@Converter(autoApply = false)
-public class StackTraceElementAttributeConverter implements AttributeConverter<StackTraceElement, String> {
-    private static final int UNKNOWN_SOURCE = -1;
-
-    private static final int NATIVE_METHOD = -2;
-
-    @Override
-    public String convertToDatabaseColumn(final StackTraceElement element) {
-        if (element == null) {
-            return null;
-        }
-
-        return element.toString();
-    }
-
-    @Override
-    public StackTraceElement convertToEntityAttribute(final String s) {
-        if (Strings.isEmpty(s)) {
-            return null;
-        }
-
-        return StackTraceElementAttributeConverter.convertString(s);
-    }
-
-    static StackTraceElement convertString(final String s) {
-        final int open = s.indexOf("(");
-
-        final String classMethod = s.substring(0, open);
-        final String className = classMethod.substring(0, classMethod.lastIndexOf("."));
-        final String methodName = classMethod.substring(classMethod.lastIndexOf(".") + 1);
-
-        final String parenthesisContents = s.substring(open + 1, s.indexOf(")"));
-
-        String fileName = null;
-        int lineNumber = UNKNOWN_SOURCE;
-        if ("Native Method".equals(parenthesisContents)) {
-            lineNumber = NATIVE_METHOD;
-        } else if (!"Unknown Source".equals(parenthesisContents)) {
-            final int colon = parenthesisContents.indexOf(":");
-            if (colon > UNKNOWN_SOURCE) {
-                fileName = parenthesisContents.substring(0, colon);
-                try {
-                    lineNumber = Integer.parseInt(parenthesisContents.substring(colon + 1));
-                } catch (final NumberFormatException ignore) {
-                    // we don't care
-                }
-            } else {
-                fileName = parenthesisContents;
-            }
-        }
-
-        return new StackTraceElement(className, methodName, fileName, lineNumber);
-    }
-}
diff --git a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ThrowableAttributeConverter.java b/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ThrowableAttributeConverter.java
deleted file mode 100644
index e003de57c1..0000000000
--- a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/ThrowableAttributeConverter.java
+++ /dev/null
@@ -1,238 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import java.lang.reflect.Constructor;
-import java.lang.reflect.Field;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-import java.util.ListIterator;
-
-import javax.persistence.AttributeConverter;
-import javax.persistence.Converter;
-
-import org.apache.logging.log4j.util.LoaderUtil;
-import org.apache.logging.log4j.util.Strings;
-
-/**
- * A JPA 2.1 attribute converter for {@link Throwable}s in {@link org.apache.logging.log4j.core.LogEvent}s. This
- * converter is capable of converting both to and from {@link String}s.
- */
-@Converter(autoApply = false)
-public class ThrowableAttributeConverter implements AttributeConverter<Throwable, String> {
-    private static final int CAUSED_BY_STRING_LENGTH = 10;
-
-    private static final Field THROWABLE_CAUSE;
-
-    private static final Field THROWABLE_MESSAGE;
-
-    static {
-        try {
-            THROWABLE_CAUSE = Throwable.class.getDeclaredField("cause");
-            THROWABLE_CAUSE.setAccessible(true);
-            THROWABLE_MESSAGE = Throwable.class.getDeclaredField("detailMessage");
-            THROWABLE_MESSAGE.setAccessible(true);
-        } catch (final NoSuchFieldException e) {
-            throw new IllegalStateException("Something is wrong with java.lang.Throwable.", e);
-        }
-    }
-
-    @Override
-    public String convertToDatabaseColumn(final Throwable throwable) {
-        if (throwable == null) {
-            return null;
-        }
-
-        final StringBuilder builder = new StringBuilder();
-        this.convertThrowable(builder, throwable);
-        return builder.toString();
-    }
-
-    private void convertThrowable(final StringBuilder builder, final Throwable throwable) {
-        builder.append(throwable.toString()).append('\n');
-        for (final StackTraceElement element : throwable.getStackTrace()) {
-            builder.append("\tat ").append(element).append('\n');
-        }
-        if (throwable.getCause() != null) {
-            builder.append("Caused by ");
-            this.convertThrowable(builder, throwable.getCause());
-        }
-    }
-
-    @Override
-    public Throwable convertToEntityAttribute(final String s) {
-        if (Strings.isEmpty(s)) {
-            return null;
-        }
-
-        final List<String> lines = Arrays.asList(s.split("(\n|\r\n)"));
-        return this.convertString(lines.listIterator(), false);
-    }
-
-    private Throwable convertString(final ListIterator<String> lines, final boolean removeCausedBy) {
-        String firstLine = lines.next();
-        if (removeCausedBy) {
-            firstLine = firstLine.substring(CAUSED_BY_STRING_LENGTH);
-        }
-        final int colon = firstLine.indexOf(":");
-        String throwableClassName;
-        String message = null;
-        if (colon > 1) {
-            throwableClassName = firstLine.substring(0, colon);
-            if (firstLine.length() > colon + 1) {
-                message = firstLine.substring(colon + 1).trim();
-            }
-        } else {
-            throwableClassName = firstLine;
-        }
-
-        final List<StackTraceElement> stackTrace = new ArrayList<>();
-        Throwable cause = null;
-        while (lines.hasNext()) {
-            final String line = lines.next();
-
-            if (line.startsWith("Caused by ")) {
-                lines.previous();
-                cause = convertString(lines, true);
-                break;
-            }
-
-            stackTrace.add(
-                    StackTraceElementAttributeConverter.convertString(line.trim().substring(3).trim())
-            );
-        }
-
-        return this.getThrowable(throwableClassName, message, cause,
-                stackTrace.toArray(new StackTraceElement[stackTrace.size()]));
-    }
-
-    private Throwable getThrowable(final String throwableClassName, final String message, final Throwable cause,
-                                   final StackTraceElement[] stackTrace) {
-        try {
-            @SuppressWarnings("unchecked")
-            final Class<Throwable> throwableClass = (Class<Throwable>) LoaderUtil.loadClass(throwableClassName);
-
-            if (!Throwable.class.isAssignableFrom(throwableClass)) {
-                return null;
-            }
-
-            Throwable throwable;
-            if (message != null && cause != null) {
-                throwable = this.getThrowable(throwableClass, message, cause);
-                if (throwable == null) {
-                    throwable = this.getThrowable(throwableClass, cause);
-                    if (throwable == null) {
-                        throwable = this.getThrowable(throwableClass, message);
-                        if (throwable == null) {
-                            throwable = this.getThrowable(throwableClass);
-                            if (throwable != null) {
-                                THROWABLE_MESSAGE.set(throwable, message);
-                                THROWABLE_CAUSE.set(throwable, cause);
-                            }
-                        } else {
-                            THROWABLE_CAUSE.set(throwable, cause);
-                        }
-                    } else {
-                        THROWABLE_MESSAGE.set(throwable, message);
-                    }
-                }
-            } else if (cause != null) {
-                throwable = this.getThrowable(throwableClass, cause);
-                if (throwable == null) {
-                    throwable = this.getThrowable(throwableClass);
-                    if (throwable != null) {
-                        THROWABLE_CAUSE.set(throwable, cause);
-                    }
-                }
-            } else if (message != null) {
-                throwable = this.getThrowable(throwableClass, message);
-                if (throwable == null) {
-                    throwable = this.getThrowable(throwableClass);
-                    if (throwable != null) {
-                        THROWABLE_MESSAGE.set(throwable, cause);
-                    }
-                }
-            } else {
-                throwable = this.getThrowable(throwableClass);
-            }
-
-            if (throwable == null) {
-                return null;
-            }
-            throwable.setStackTrace(stackTrace);
-            return throwable;
-        } catch (final Exception e) {
-            return null;
-        }
-    }
-
-    private Throwable getThrowable(final Class<Throwable> throwableClass, final String message, final Throwable cause) {
-        try {
-            @SuppressWarnings("unchecked")
-            final
-            Constructor<Throwable>[] constructors = (Constructor<Throwable>[]) throwableClass.getConstructors();
-            for (final Constructor<Throwable> constructor : constructors) {
-                final Class<?>[] parameterTypes = constructor.getParameterTypes();
-                if (parameterTypes.length == 2) {
-                    if (String.class == parameterTypes[0] && Throwable.class.isAssignableFrom(parameterTypes[1])) {
-                        return constructor.newInstance(message, cause);
-                    } else if (String.class == parameterTypes[1] &&
-                            Throwable.class.isAssignableFrom(parameterTypes[0])) {
-                        return constructor.newInstance(cause, message);
-                    }
-                }
-            }
-            return null;
-        } catch (final Exception e) {
-            return null;
-        }
-    }
-
-    private Throwable getThrowable(final Class<Throwable> throwableClass, final Throwable cause) {
-        try {
-            @SuppressWarnings("unchecked")
-            final
-            Constructor<Throwable>[] constructors = (Constructor<Throwable>[]) throwableClass.getConstructors();
-            for (final Constructor<Throwable> constructor : constructors) {
-                final Class<?>[] parameterTypes = constructor.getParameterTypes();
-                if (parameterTypes.length == 1 && Throwable.class.isAssignableFrom(parameterTypes[0])) {
-                    return constructor.newInstance(cause);
-                }
-            }
-            return null;
-        } catch (final Exception e) {
-            return null;
-        }
-    }
-
-    private Throwable getThrowable(final Class<Throwable> throwableClass, final String message) {
-        try {
-            return throwableClass.getConstructor(String.class).newInstance(message);
-        } catch (final Exception e) {
-            return null;
-        }
-    }
-
-    private Throwable getThrowable(final Class<Throwable> throwableClass) {
-        try {
-            return LoaderUtil.newInstanceOf(throwableClass);
-        } catch (final Exception e) {
-            return null;
-        }
-    }
-}
diff --git a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/package-info.java b/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/package-info.java
deleted file mode 100644
index f585871e8e..0000000000
--- a/log4j-jpa/src/main/java/org/apache/logging/log4j/jpa/converter/package-info.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * 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.
- */
-// Lines too long...
-//CHECKSTYLE:OFF
-/**
- * The converters in this package implement the JPA 2.1 mechanism for converting non-standard types to and from
- * database fields. Most of these types are capable of two-way conversion and can be used to both persist and retrieve
- * entities. The
- * {@link org.apache.logging.log4j.jpa.converter.ContextMapAttributeConverter ContextMapAttributeConverter}
- * and {@link org.apache.logging.log4j.jpa.converter.ContextStackAttributeConverter ContextStackAttributeConverter}
- * only support persistence and not retrieval, persisting the type as a simple string. You can use the
- * {@link org.apache.logging.log4j.jpa.converter.ContextMapJsonAttributeConverter ContextMapJsonAttributeConverter}
- * and {@link org.apache.logging.log4j.jpa.converter.ContextStackJsonAttributeConverter ContextStackJsonAttributeConverter}
- * instead, which require the Jackson Data Processor dependency to also be on your class path.
- */
-//CHECKSTYLE:ON
-@Export
-@Open("org.apache.logging.log4j.core")
-@Version("1.0.0")
-package org.apache.logging.log4j.jpa.converter;
-
-import aQute.bnd.annotation.jpms.Open;
-import org.osgi.annotation.bundle.Export;
-import org.osgi.annotation.versioning.Version;
diff --git a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/appender/AbstractJpaAppenderTest.java b/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/appender/AbstractJpaAppenderTest.java
deleted file mode 100644
index bd63d56d81..0000000000
--- a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/appender/AbstractJpaAppenderTest.java
+++ /dev/null
@@ -1,210 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.appender;
-
-import java.io.ByteArrayOutputStream;
-import java.io.PrintWriter;
-import java.sql.Connection;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
-import org.apache.logging.log4j.core.Appender;
-import org.apache.logging.log4j.core.LoggerContext;
-import org.apache.logging.log4j.core.config.DefaultConfiguration;
-import org.apache.logging.log4j.core.impl.Log4jPropertyKey;
-import org.apache.logging.log4j.core.test.categories.Appenders;
-import org.apache.logging.log4j.status.StatusLogger;
-import org.apache.logging.log4j.util.PropertiesUtil;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-
-import static org.junit.Assert.*;
-
-@Category(Appenders.Jpa.class)
-public abstract class AbstractJpaAppenderTest {
-    private final String databaseType;
-    private Connection connection;
-
-    public AbstractJpaAppenderTest(final String databaseType) {
-        this.databaseType = databaseType;
-    }
-
-    protected abstract Connection setUpConnection() throws SQLException;
-
-    public void setUp(final String configFileName) throws SQLException {
-        this.connection = this.setUpConnection();
-
-        final String resource = "org/apache/logging/log4j/jpa/appender/" + configFileName;
-        assertNotNull(getClass().getClassLoader().getResource(resource));
-        System.setProperty(Log4jPropertyKey.CONFIG_LOCATION.getSystemKey(), resource);
-        ((PropertiesUtil) PropertiesUtil.getProperties()).reload();
-        final LoggerContext context = LoggerContext.getContext(false);
-        if (context.getConfiguration() instanceof DefaultConfiguration) {
-            context.reconfigure();
-        }
-        StatusLogger.getLogger().reset();
-    }
-
-    public void tearDown() throws SQLException {
-        final LoggerContext context = LoggerContext.getContext(false);
-        try {
-            final String appenderName = "databaseAppender";
-            final Appender appender = context.getConfiguration().getAppender(appenderName);
-            assertNotNull("The appender '" + appenderName + "' should not be null.", appender);
-            assertTrue("The appender should be a JpaAppender.", appender instanceof JpaAppender);
-            ((JpaAppender) appender).getManager().close();
-        } finally {
-            System.clearProperty(Log4jPropertyKey.CONFIG_LOCATION.getSystemKey());
-            ((PropertiesUtil) PropertiesUtil.getProperties()).reload();
-            context.reconfigure();
-            StatusLogger.getLogger().reset();
-
-            try (final Statement statement = this.connection.createStatement();) {
-                statement.execute("SHUTDOWN");
-            }
-
-            this.connection.close();
-        }
-    }
-
-    @Test
-    public void testBaseJpaEntityAppender() throws SQLException {
-        try {
-            this.setUp("log4j2-" + this.databaseType + "-jpa-base.xml");
-
-            final RuntimeException exception = new RuntimeException("Hello, world!");
-            final ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
-            final PrintWriter writer = new PrintWriter(outputStream);
-            exception.printStackTrace(writer);
-            writer.close();
-            final String stackTrace = outputStream.toString().replace("\r\n", "\n");
-
-            final long millis = System.currentTimeMillis();
-
-            final Logger logger1 = LogManager.getLogger(this.getClass().getName() + ".testBaseJpaEntityAppender");
-            final Logger logger2 = LogManager.getLogger(this.getClass().getName() + ".testBaseJpaEntityAppenderAgain");
-            logger1.info("Test my message 01.");
-            logger1.error("This is another message 02.", exception);
-            logger2.warn("A final warning has been issued.");
-
-            final Statement statement = this.connection.createStatement();
-            final ResultSet resultSet = statement.executeQuery("SELECT * FROM jpaBaseLogEntry ORDER BY id");
-
-            assertTrue("There should be at least one row.", resultSet.next());
-
-            long date = resultSet.getTimestamp("eventDate").getTime();
-            assertTrue("The date should be later than pre-logging (1).", date >= millis);
-            assertTrue("The date should be earlier than now (1).", date <= System.currentTimeMillis());
-            assertEquals("The level column is not correct (1).", "INFO", resultSet.getString("level"));
-            assertEquals("The logger column is not correct (1).", logger1.getName(), resultSet.getString("logger"));
-            assertEquals("The message column is not correct (1).", "Test my message 01.",
-                    resultSet.getString("message"));
-            assertNull("The exception column is not correct (1).", resultSet.getString("exception"));
-
-            assertTrue("There should be at least two rows.", resultSet.next());
-
-            date = resultSet.getTimestamp("eventDate").getTime();
-            assertTrue("The date should be later than pre-logging (2).", date >= millis);
-            assertTrue("The date should be earlier than now (2).", date <= System.currentTimeMillis());
-            assertEquals("The level column is not correct (2).", "ERROR", resultSet.getString("level"));
-            assertEquals("The logger column is not correct (2).", logger1.getName(), resultSet.getString("logger"));
-            assertEquals("The message column is not correct (2).", "This is another message 02.",
-                    resultSet.getString("message"));
-            assertEquals("The exception column is not correct (2).", stackTrace, resultSet.getString("exception"));
-
-            assertTrue("There should be three rows.", resultSet.next());
-
-            date = resultSet.getTimestamp("eventDate").getTime();
-            assertTrue("The date should be later than pre-logging (3).", date >= millis);
-            assertTrue("The date should be earlier than now (3).", date <= System.currentTimeMillis());
-            assertEquals("The level column is not correct (3).", "WARN", resultSet.getString("level"));
-            assertEquals("The logger column is not correct (3).", logger2.getName(), resultSet.getString("logger"));
-            assertEquals("The message column is not correct (3).", "A final warning has been issued.",
-                    resultSet.getString("message"));
-            assertNull("The exception column is not correct (3).", resultSet.getString("exception"));
-
-            assertFalse("There should not be four rows.", resultSet.next());
-        } finally {
-            this.tearDown();
-        }
-    }
-
-    @Test
-    public void testBasicJpaEntityAppender() throws SQLException {
-        try {
-            this.setUp("log4j2-" + this.databaseType + "-jpa-basic.xml");
-
-            final Error exception = new Error("Goodbye, cruel world!");
-            final ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
-            final PrintWriter writer = new PrintWriter(outputStream);
-            exception.printStackTrace(writer);
-            writer.close();
-            final String stackTrace = outputStream.toString().replace("\r\n", "\n");
-
-            final long millis = System.currentTimeMillis();
-
-            final Logger logger1 = LogManager.getLogger(this.getClass().getName() + ".testBasicJpaEntityAppender");
-            final Logger logger2 = LogManager.getLogger(this.getClass().getName() + ".testBasicJpaEntityAppenderAgain");
-            logger1.debug("Test my debug 01.");
-            logger1.warn("This is another warning 02.", exception);
-            logger2.fatal("A fatal warning has been issued.");
-
-            final Statement statement = this.connection.createStatement();
-            final ResultSet resultSet = statement.executeQuery("SELECT * FROM jpaBasicLogEntry ORDER BY id");
-
-            assertTrue("There should be at least one row.", resultSet.next());
-
-            long date = resultSet.getLong("timemillis");
-            assertTrue("The date should be later than pre-logging (1).", date >= millis);
-            assertTrue("The date should be earlier than now (1).", date <= System.currentTimeMillis());
-            assertEquals("The level column is not correct (1).", "DEBUG", resultSet.getString("level"));
-            assertEquals("The logger column is not correct (1).", logger1.getName(), resultSet.getString("loggerName"));
-            assertEquals("The message column is not correct (1).", "Test my debug 01.",
-                    resultSet.getString("message"));
-            assertNull("The exception column is not correct (1).", resultSet.getString("thrown"));
-
-            assertTrue("There should be at least two rows.", resultSet.next());
-
-            date = resultSet.getLong("timemillis");
-            assertTrue("The date should be later than pre-logging (2).", date >= millis);
-            assertTrue("The date should be earlier than now (2).", date <= System.currentTimeMillis());
-            assertEquals("The level column is not correct (2).", "WARN", resultSet.getString("level"));
-            assertEquals("The logger column is not correct (2).", logger1.getName(), resultSet.getString("loggerName"));
-            assertEquals("The message column is not correct (2).", "This is another warning 02.",
-                    resultSet.getString("message"));
-            assertEquals("The exception column is not correct (2).", stackTrace, resultSet.getString("thrown"));
-
-            assertTrue("There should be three rows.", resultSet.next());
-
-            date = resultSet.getLong("timemillis");
-            assertTrue("The date should be later than pre-logging (3).", date >= millis);
-            assertTrue("The date should be earlier than now (3).", date <= System.currentTimeMillis());
-            assertEquals("The level column is not correct (3).", "FATAL", resultSet.getString("level"));
-            assertEquals("The logger column is not correct (3).", logger2.getName(), resultSet.getString("loggerName"));
-            assertEquals("The message column is not correct (3).", "A fatal warning has been issued.",
-                    resultSet.getString("message"));
-            assertNull("The exception column is not correct (3).", resultSet.getString("thrown"));
-
-            assertFalse("There should not be four rows.", resultSet.next());
-        } finally {
-            this.tearDown();
-        }
-    }
-}
diff --git a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/appender/JpaH2AppenderTest.java b/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/appender/JpaH2AppenderTest.java
deleted file mode 100644
index 295a6ec213..0000000000
--- a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/appender/JpaH2AppenderTest.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.appender;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.SQLException;
-import java.sql.Statement;
-
-import org.apache.logging.log4j.core.test.categories.Appenders;
-import org.apache.logging.log4j.util.Strings;
-import org.junit.experimental.categories.Category;
-
-@Category(Appenders.Jpa.class)
-public class JpaH2AppenderTest extends AbstractJpaAppenderTest {
-    private static final String USER_ID = "sa";
-    private static final String PASSWORD = Strings.EMPTY;
-
-    public JpaH2AppenderTest() {
-        super("h2");
-    }
-
-    @Override
-    protected Connection setUpConnection() throws SQLException {
-        final Connection connection = DriverManager.getConnection("jdbc:h2:mem:Log4j", USER_ID, PASSWORD);
-
-        try (final Statement statement = connection.createStatement()) {
-            statement.executeUpdate("CREATE TABLE jpaBaseLogEntry ( "
-                    + "id INTEGER GENERATED ALWAYS AS IDENTITY, eventDate DATETIME, instant NVARCHAR(64), level NVARCHAR(10), "
-                    + "logger NVARCHAR(255), message NVARCHAR(1024), exception NVARCHAR(1048576)" + " )");
-        }
-
-        try (final Statement statement = connection.createStatement()) {
-            statement.executeUpdate("CREATE TABLE jpaBasicLogEntry ( "
-                    + "id INTEGER GENERATED ALWAYS AS IDENTITY, timemillis BIGINT, instant NVARCHAR(64), nanoTime BIGINT, "
-                    + "level NVARCHAR(10), loggerName NVARCHAR(255), message NVARCHAR(1024), "
-                    + "thrown NVARCHAR(1048576), contextMapJson NVARCHAR(1048576), loggerFQCN NVARCHAR(1024), "
-                    + "contextStack NVARCHAR(1048576), marker NVARCHAR(255), source NVARCHAR(2048),"
-                    + "threadId BIGINT, threadName NVARCHAR(255), threadPriority INTEGER" + " )");
-        }
-
-        return connection;
-    }
-}
diff --git a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/appender/JpaHsqldbAppenderTest.java b/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/appender/JpaHsqldbAppenderTest.java
deleted file mode 100644
index 797fdab8ee..0000000000
--- a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/appender/JpaHsqldbAppenderTest.java
+++ /dev/null
@@ -1,135 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.appender;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.SQLException;
-import java.sql.Statement;
-
-import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.core.config.Configuration;
-import org.apache.logging.log4j.core.config.NullConfiguration;
-import org.apache.logging.log4j.core.test.categories.Appenders;
-import org.apache.logging.log4j.util.Strings;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-
-import static org.junit.Assert.*;
-
-@Category(Appenders.Jpa.class)
-public class JpaHsqldbAppenderTest extends AbstractJpaAppenderTest {
-    private static final String USER_ID = "sa";
-    private static final String PASSWORD = Strings.EMPTY;
-
-    private final Configuration configuration = new NullConfiguration();
-
-    public JpaHsqldbAppenderTest() {
-        super("hsqldb");
-    }
-
-    @Override
-    protected Connection setUpConnection() throws SQLException {
-        final Connection connection = DriverManager.getConnection("jdbc:hsqldb:mem:Log4j", USER_ID, PASSWORD);
-
-        try (final Statement statement = connection.createStatement()) {
-            statement.executeUpdate("CREATE TABLE jpaBaseLogEntry ( "
-                    + "id INTEGER IDENTITY, eventDate DATETIME, instant NVARCHAR(64), level VARCHAR(10), "
-                    + "logger VARCHAR(255), message VARCHAR(1024), exception VARCHAR(1048576)" + " )");
-        }
-
-        try (final Statement statement = connection.createStatement()) {
-            statement.executeUpdate("CREATE TABLE jpaBasicLogEntry ( "
-                    + "id INTEGER IDENTITY, timemillis BIGINT, instant NVARCHAR(64), nanoTime BIGINT, "
-                    + "level VARCHAR(10), loggerName VARCHAR(255), message VARCHAR(1024), thrown VARCHAR(1048576), "
-                    + "contextMapJson VARCHAR(1048576), loggerFQCN VARCHAR(1024), "
-                    + "contextStack VARCHAR(1048576), marker VARCHAR(255), source VARCHAR(2048),"
-                    + "threadId BIGINT, threadName NVARCHAR(255), threadPriority INTEGER" + " )");
-        }
-
-        return connection;
-    }
-
-    @Test
-    public void testNoEntityClassName() {
-        final JpaAppender appender = JpaAppender.createAppender("name", null, null, null, null, "jpaAppenderTestUnit", configuration);
-
-        assertNull("The appender should be null.", appender);
-    }
-
-    @Test
-    public void testNoPersistenceUnitName() {
-        final JpaAppender appender = JpaAppender.createAppender("name", null, null, null, TestBaseEntity.class.getName(),
-                null, configuration);
-
-        assertNull("The appender should be null.", appender);
-    }
-
-    @Test
-    public void testBadEntityClassName() {
-        final JpaAppender appender = JpaAppender.createAppender("name", null, null, null, "com.foo.Bar",
-                "jpaAppenderTestUnit", configuration);
-
-        assertNull("The appender should be null.", appender);
-    }
-
-    @Test
-    public void testNonLogEventEntity() {
-        final JpaAppender appender = JpaAppender.createAppender("name", null, null, null, Object.class.getName(),
-                "jpaAppenderTestUnit", configuration);
-
-        assertNull("The appender should be null.", appender);
-    }
-
-    @Test
-    public void testBadConstructorEntity01() {
-        final JpaAppender appender = JpaAppender.createAppender("name", null, null, null,
-                BadConstructorEntity1.class.getName(), "jpaAppenderTestUnit", configuration);
-
-        assertNull("The appender should be null.", appender);
-    }
-
-    @Test
-    public void testBadConstructorEntity02() {
-        final JpaAppender appender = JpaAppender.createAppender("name", null, null, null,
-                BadConstructorEntity2.class.getName(), "jpaAppenderTestUnit", configuration);
-
-        assertNull("The appender should be null.", appender);
-    }
-
-    @SuppressWarnings("unused")
-    public static class BadConstructorEntity1 extends TestBaseEntity {
-        private static final long serialVersionUID = 1L;
-
-        public BadConstructorEntity1(final LogEvent wrappedEvent) {
-            super(wrappedEvent);
-        }
-    }
-
-    @SuppressWarnings("unused")
-    public static class BadConstructorEntity2 extends TestBaseEntity {
-        private static final long serialVersionUID = 1L;
-
-        public BadConstructorEntity2() {
-            super(null);
-        }
-
-        public BadConstructorEntity2(final LogEvent wrappedEvent, final String badParameter) {
-            super(wrappedEvent);
-        }
-    }
-}
diff --git a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/appender/LogEventEntityTest.java b/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/appender/LogEventEntityTest.java
deleted file mode 100644
index e8c51d6d69..0000000000
--- a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/appender/LogEventEntityTest.java
+++ /dev/null
@@ -1,119 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.appender;
-
-import org.apache.logging.log4j.Level;
-import org.apache.logging.log4j.Marker;
-import org.apache.logging.log4j.ThreadContext.ContextStack;
-import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.core.impl.ThrowableProxy;
-import org.apache.logging.log4j.core.time.Instant;
-import org.apache.logging.log4j.core.time.MutableInstant;
-import org.apache.logging.log4j.message.Message;
-import org.junit.Assert;
-import org.junit.Test;
-
-public class LogEventEntityTest {
-
-    @Test
-    public void testToImmutable_AbstractLogEventWrapperEntity() {
-        final LogEvent logEvent = new AbstractLogEventWrapperEntity() {
-
-            @Override
-            public ContextStack getContextStack() {
-                return null;
-            }
-
-            @Override
-            public Level getLevel() {
-                return null;
-            }
-
-            @Override
-            public String getLoggerFqcn() {
-                return null;
-            }
-
-            @Override
-            public String getLoggerName() {
-                return null;
-            }
-
-            @Override
-            public Marker getMarker() {
-                return null;
-            }
-
-            @Override
-            public Message getMessage() {
-                return null;
-            }
-
-            @Override
-            public Instant getInstant() {
-                return new MutableInstant();
-            }
-
-            @Override
-            public long getNanoTime() {
-                return 0;
-            }
-
-            @Override
-            public StackTraceElement getSource() {
-                return null;
-            }
-
-            @Override
-            public long getThreadId() {
-                return 0;
-            }
-
-            @Override
-            public String getThreadName() {
-                return null;
-            }
-
-            @Override
-            public int getThreadPriority() {
-                return 0;
-            }
-
-            @Override
-            public Throwable getThrown() {
-                return null;
-            }
-
-            @Override
-            public ThrowableProxy getThrownProxy() {
-                return null;
-            }
-
-            @Override
-            public long getTimeMillis() {
-                return 0;
-            }
-        };
-        Assert.assertNotSame(logEvent, logEvent.toImmutable());
-    }
-
-    @Test
-    public void testToImmutable_TestBaseEntity() {
-        final LogEvent logEvent = new TestBaseEntity();
-        Assert.assertNotSame(logEvent, logEvent.toImmutable());
-    }
-}
diff --git a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/appender/TestBaseEntity.java b/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/appender/TestBaseEntity.java
deleted file mode 100644
index b504110395..0000000000
--- a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/appender/TestBaseEntity.java
+++ /dev/null
@@ -1,181 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.appender;
-
-import java.util.Date;
-
-import javax.persistence.Basic;
-import javax.persistence.Column;
-import javax.persistence.Convert;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.Table;
-import javax.persistence.Temporal;
-import javax.persistence.TemporalType;
-import javax.persistence.Transient;
-
-import org.apache.logging.log4j.Level;
-import org.apache.logging.log4j.Marker;
-import org.apache.logging.log4j.ThreadContext;
-import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.core.impl.ThrowableProxy;
-import org.apache.logging.log4j.core.time.Instant;
-import org.apache.logging.log4j.jpa.converter.InstantAttributeConverter;
-import org.apache.logging.log4j.jpa.converter.LevelAttributeConverter;
-import org.apache.logging.log4j.jpa.converter.MessageAttributeConverter;
-import org.apache.logging.log4j.jpa.converter.ThrowableAttributeConverter;
-import org.apache.logging.log4j.message.Message;
-import org.apache.logging.log4j.util.ReadOnlyStringMap;
-
-@Entity
-@Table(name = "jpaBaseLogEntry")
-public class TestBaseEntity extends AbstractLogEventWrapperEntity {
-
-    private long id = 0L;
-
-    public TestBaseEntity() {
-        super();
-    }
-
-    public TestBaseEntity(final LogEvent wrappedEvent) {
-        super(wrappedEvent);
-    }
-
-    @Id
-    @GeneratedValue(strategy = GenerationType.IDENTITY)
-    @Column(name = "id")
-    public long getId() {
-        return this.id;
-    }
-
-    public void setId(final long id) {
-        this.id = id;
-    }
-
-    @Temporal(TemporalType.TIMESTAMP)
-    @Column(name = "eventDate")
-    public Date getEventDate() {
-        return new Date(this.getTimeMillis());
-    }
-
-    public void setEventDate(final Date date) {
-        // this entity is write-only
-    }
-
-    @Override
-    @Convert(converter = LevelAttributeConverter.class)
-    @Column(name = "level")
-    public Level getLevel() {
-        return this.getWrappedEvent().getLevel();
-    }
-
-    @Override
-    @Basic
-    @Column(name = "logger")
-    public String getLoggerName() {
-        return this.getWrappedEvent().getLoggerName();
-    }
-
-    @Override
-    @Transient
-    public StackTraceElement getSource() {
-        return this.getWrappedEvent().getSource();
-    }
-
-    @Override
-    @Convert(converter = MessageAttributeConverter.class)
-    @Column(name = "message")
-    public Message getMessage() {
-        return this.getWrappedEvent().getMessage();
-    }
-
-    @Override
-    @Transient
-    public Marker getMarker() {
-        return this.getWrappedEvent().getMarker();
-    }
-
-    @Override
-    @Transient
-    public long getThreadId() {
-        return this.getWrappedEvent().getThreadId();
-    }
-
-    @Override
-    @Transient
-    public String getThreadName() {
-        return this.getWrappedEvent().getThreadName();
-    }
-
-    @Override
-    @Transient
-    public int getThreadPriority() {
-        return this.getWrappedEvent().getThreadPriority();
-    }
-
-    @Override
-    @Transient
-    public long getTimeMillis() {
-        return this.getWrappedEvent().getTimeMillis();
-    }
-
-    @Override
-    @Convert(converter = InstantAttributeConverter.class)
-    @Column(name = "instant")
-    public Instant getInstant() {
-        return this.getWrappedEvent().getInstant();
-    }
-
-    @Override
-    @Transient
-    public long getNanoTime() {
-        return this.getWrappedEvent().getNanoTime();
-    }
-
-    @Override
-    @Convert(converter = ThrowableAttributeConverter.class)
-    @Column(name = "exception")
-    public Throwable getThrown() {
-        return this.getWrappedEvent().getThrown();
-    }
-
-    @Override
-    @Transient
-    public ThrowableProxy getThrownProxy() {
-        return this.getWrappedEvent().getThrownProxy();
-    }
-
-    @Override
-    @Transient
-    public ReadOnlyStringMap getContextData() {
-        return this.getWrappedEvent().getContextData();
-    }
-
-    @Override
-    @Transient
-    public ThreadContext.ContextStack getContextStack() {
-        return this.getWrappedEvent().getContextStack();
-    }
-
-    @Override
-    @Transient
-    public String getLoggerFqcn() {
-        return this.getWrappedEvent().getLoggerFqcn();
-    }
-}
diff --git a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/appender/TestBasicEntity.java b/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/appender/TestBasicEntity.java
deleted file mode 100644
index cada540775..0000000000
--- a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/appender/TestBasicEntity.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.appender;
-
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.Table;
-
-import org.apache.logging.log4j.core.LogEvent;
-
-@Entity
-@Table(name = "jpaBasicLogEntry")
-@SuppressWarnings("unused")
-public class TestBasicEntity extends BasicLogEventEntity {
-
-    private long id = 0L;
-
-    public TestBasicEntity() {
-        super();
-    }
-
-    public TestBasicEntity(final LogEvent wrapped) {
-        super(wrapped);
-    }
-
-    @Id
-    @GeneratedValue(strategy = GenerationType.IDENTITY)
-    @Column(name = "id")
-    public long getId() {
-        return this.id;
-    }
-
-    public void setId(final long id) {
-        this.id = id;
-    }
-
-}
diff --git a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ContextDataAttributeConverterTest.java b/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ContextDataAttributeConverterTest.java
deleted file mode 100644
index e465cf900e..0000000000
--- a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ContextDataAttributeConverterTest.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import org.apache.logging.log4j.core.test.categories.Appenders;
-import org.apache.logging.log4j.util.SortedArrayStringMap;
-import org.apache.logging.log4j.util.StringMap;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-
-import static org.junit.Assert.*;
-
-@Category(Appenders.Jpa.class)
-public class ContextDataAttributeConverterTest {
-    private ContextDataAttributeConverter converter;
-
-    @Before
-    public void setUp() {
-        this.converter = new ContextDataAttributeConverter();
-    }
-
-    @Test
-    public void testConvertToDatabaseColumn01() {
-        final StringMap map = new SortedArrayStringMap();
-        map.putValue("test1", "another1");
-        map.putValue("key2", "value2");
-
-        assertEquals("The converted value is not correct.", map.toString(),
-                this.converter.convertToDatabaseColumn(map));
-    }
-
-    @Test
-    public void testConvertToDatabaseColumn02() {
-        final StringMap map = new SortedArrayStringMap();
-        map.putValue("someKey", "coolValue");
-        map.putValue("anotherKey", "testValue");
-        map.putValue("myKey", "yourValue");
-
-        assertEquals("The converted value is not correct.", map.toString(),
-                this.converter.convertToDatabaseColumn(map));
-    }
-
-    @Test
-    public void testConvertNullToDatabaseColumn() {
-        assertNull("The converted value should be null.", this.converter.convertToDatabaseColumn(null));
-    }
-
-    @Test(expected = UnsupportedOperationException.class)
-    public void testConvertToEntityAttribute() {
-        this.converter.convertToEntityAttribute(null);
-    }
-}
diff --git a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ContextDataJsonAttributeConverterTest.java b/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ContextDataJsonAttributeConverterTest.java
deleted file mode 100644
index 2dd2156ddc..0000000000
--- a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ContextDataJsonAttributeConverterTest.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import org.apache.logging.log4j.core.test.categories.Appenders;
-import org.apache.logging.log4j.util.ReadOnlyStringMap;
-import org.apache.logging.log4j.util.SortedArrayStringMap;
-import org.apache.logging.log4j.util.StringMap;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-
-import static org.junit.Assert.*;
-
-@Category(Appenders.Jpa.class)
-public class ContextDataJsonAttributeConverterTest {
-    private ContextDataJsonAttributeConverter converter;
-
-    @Before
-    public void setUp() {
-        this.converter = new ContextDataJsonAttributeConverter();
-    }
-
-    @Test
-    public void testConvert01() {
-        final StringMap map = new SortedArrayStringMap();
-        map.putValue("test1", "another1");
-        map.putValue("key2", "value2");
-
-        final String converted = this.converter.convertToDatabaseColumn(map);
-
-        assertNotNull("The converted value should not be null.", converted);
-
-        final ReadOnlyStringMap reversed = this.converter.convertToEntityAttribute(converted);
-
-        assertNotNull("The reversed value should not be null.", reversed);
-        assertEquals("The reversed value is not correct.", map, reversed);
-    }
-
-    @Test
-    public void testConvert02() {
-        final StringMap map = new SortedArrayStringMap();
-        map.putValue("someKey", "coolValue");
-        map.putValue("anotherKey", "testValue");
-        map.putValue("myKey", "yourValue");
-
-        final String converted = this.converter.convertToDatabaseColumn(map);
-
-        assertNotNull("The converted value should not be null.", converted);
-
-        final ReadOnlyStringMap reversed = this.converter.convertToEntityAttribute(converted);
-
-        assertNotNull("The reversed value should not be null.", reversed);
-        assertEquals("The reversed value is not correct.", map, reversed);
-    }
-
-    @Test
-    public void testConvertNullToDatabaseColumn() {
-        assertNull("The converted value should be null.", this.converter.convertToDatabaseColumn(null));
-    }
-
-    @Test
-    public void testConvertNullOrBlankToEntityAttribute() {
-        assertNull("The converted attribute should be null (1).", this.converter.convertToEntityAttribute(null));
-        assertNull("The converted attribute should be null (2).", this.converter.convertToEntityAttribute(""));
-    }
-}
diff --git a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ContextMapAttributeConverterTest.java b/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ContextMapAttributeConverterTest.java
deleted file mode 100644
index 07292349b7..0000000000
--- a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ContextMapAttributeConverterTest.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.logging.log4j.core.test.categories.Appenders;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-
-import static org.junit.Assert.*;
-
-@Category(Appenders.Jpa.class)
-public class ContextMapAttributeConverterTest {
-    private ContextMapAttributeConverter converter;
-
-    @Before
-    public void setUp() {
-        this.converter = new ContextMapAttributeConverter();
-    }
-
-    @Test
-    public void testConvertToDatabaseColumn01() {
-        final Map<String, String> map = new HashMap<>();
-        map.put("test1", "another1");
-        map.put("key2", "value2");
-
-        assertEquals("The converted value is not correct.", map.toString(),
-                this.converter.convertToDatabaseColumn(map));
-    }
-
-    @Test
-    public void testConvertToDatabaseColumn02() {
-        final Map<String, String> map = new HashMap<>();
-        map.put("someKey", "coolValue");
-        map.put("anotherKey", "testValue");
-        map.put("myKey", "yourValue");
-
-        assertEquals("The converted value is not correct.", map.toString(),
-                this.converter.convertToDatabaseColumn(map));
-    }
-
-    @Test
-    public void testConvertNullToDatabaseColumn() {
-        assertNull("The converted value should be null.", this.converter.convertToDatabaseColumn(null));
-    }
-
-    @Test(expected = UnsupportedOperationException.class)
-    public void testConvertToEntityAttribute() {
-        this.converter.convertToEntityAttribute(null);
-    }
-}
diff --git a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ContextMapJsonAttributeConverterTest.java b/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ContextMapJsonAttributeConverterTest.java
deleted file mode 100644
index cfbd47ed5c..0000000000
--- a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ContextMapJsonAttributeConverterTest.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.logging.log4j.core.test.categories.Appenders;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-
-import static org.junit.Assert.*;
-
-@Category(Appenders.Jpa.class)
-public class ContextMapJsonAttributeConverterTest {
-    private ContextMapJsonAttributeConverter converter;
-
-    @Before
-    public void setUp() {
-        this.converter = new ContextMapJsonAttributeConverter();
-    }
-
-    @Test
-    public void testConvert01() {
-        final Map<String, String> map = new HashMap<>();
-        map.put("test1", "another1");
-        map.put("key2", "value2");
-
-        final String converted = this.converter.convertToDatabaseColumn(map);
-
-        assertNotNull("The converted value should not be null.", converted);
-
-        final Map<String, String> reversed = this.converter.convertToEntityAttribute(converted);
-
-        assertNotNull("The reversed value should not be null.", reversed);
-        assertEquals("The reversed value is not correct.", map, reversed);
-    }
-
-    @Test
-    public void testConvert02() {
-        final Map<String, String> map = new HashMap<>();
-        map.put("someKey", "coolValue");
-        map.put("anotherKey", "testValue");
-        map.put("myKey", "yourValue");
-
-        final String converted = this.converter.convertToDatabaseColumn(map);
-
-        assertNotNull("The converted value should not be null.", converted);
-
-        final Map<String, String> reversed = this.converter.convertToEntityAttribute(converted);
-
-        assertNotNull("The reversed value should not be null.", reversed);
-        assertEquals("The reversed value is not correct.", map, reversed);
-    }
-
-    @Test
-    public void testConvertNullToDatabaseColumn() {
-        assertNull("The converted value should be null.", this.converter.convertToDatabaseColumn(null));
-    }
-
-    @Test
-    public void testConvertNullOrBlankToEntityAttribute() {
-        assertNull("The converted attribute should be null (1).", this.converter.convertToEntityAttribute(null));
-        assertNull("The converted attribute should be null (2).", this.converter.convertToEntityAttribute(""));
-    }
-}
diff --git a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ContextStackAttributeConverterTest.java b/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ContextStackAttributeConverterTest.java
deleted file mode 100644
index f54f6d0c55..0000000000
--- a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ContextStackAttributeConverterTest.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import java.util.Arrays;
-
-import org.apache.logging.log4j.ThreadContext;
-import org.apache.logging.log4j.core.test.categories.Appenders;
-import org.apache.logging.log4j.spi.MutableThreadContextStack;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-
-import static org.junit.Assert.*;
-
-@Category(Appenders.Jpa.class)
-public class ContextStackAttributeConverterTest {
-    private ContextStackAttributeConverter converter;
-
-    @Before
-    public void setUp() {
-        this.converter = new ContextStackAttributeConverter();
-    }
-
-    @Test
-    public void testConvertToDatabaseColumn01() {
-        final ThreadContext.ContextStack stack = new MutableThreadContextStack(
-                Arrays.asList("value1", "another2"));
-
-        assertEquals("The converted value is not correct.", "value1\nanother2",
-                this.converter.convertToDatabaseColumn(stack));
-    }
-
-    @Test
-    public void testConvertToDatabaseColumn02() {
-        final ThreadContext.ContextStack stack = new MutableThreadContextStack(
-                Arrays.asList("key1", "value2", "my3"));
-
-        assertEquals("The converted value is not correct.",
-                "key1\nvalue2\nmy3",
-                this.converter.convertToDatabaseColumn(stack));
-    }
-
-    @Test
-    public void testConvertNullToDatabaseColumn() {
-        assertNull("The converted value should be null.", this.converter.convertToDatabaseColumn(null));
-    }
-
-    @Test(expected = UnsupportedOperationException.class)
-    public void testConvertToEntityAttribute() {
-        this.converter.convertToEntityAttribute(null);
-    }
-}
diff --git a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ContextStackJsonAttributeConverterTest.java b/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ContextStackJsonAttributeConverterTest.java
deleted file mode 100644
index eb148bb23f..0000000000
--- a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ContextStackJsonAttributeConverterTest.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import java.util.Arrays;
-
-import org.apache.logging.log4j.ThreadContext;
-import org.apache.logging.log4j.core.test.categories.Appenders;
-import org.apache.logging.log4j.spi.MutableThreadContextStack;
-import org.apache.logging.log4j.test.junit.ThreadContextStackRule;
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-
-@Category(Appenders.Jpa.class)
-public class ContextStackJsonAttributeConverterTest {
-    private ContextStackJsonAttributeConverter converter;
-
-    @Rule
-    public final ThreadContextStackRule threadContextRule = new ThreadContextStackRule();
-
-    @Before
-    public void setUp() {
-        this.converter = new ContextStackJsonAttributeConverter();
-    }
-
-    @Test
-    public void testConvert01() {
-        final ThreadContext.ContextStack stack = new MutableThreadContextStack(
-                Arrays.asList("value1", "another2"));
-
-        final String converted = this.converter.convertToDatabaseColumn(stack);
-
-        assertNotNull("The converted value should not be null.", converted);
-
-        final ThreadContext.ContextStack reversed = this.converter
-                .convertToEntityAttribute(converted);
-
-        assertNotNull("The reversed value should not be null.", reversed);
-        assertEquals("The reversed value is not correct.", stack.asList(),
-                reversed.asList());
-    }
-
-    @Test
-    public void testConvert02() {
-        final ThreadContext.ContextStack stack = new MutableThreadContextStack(
-                Arrays.asList("key1", "value2", "my3"));
-
-        final String converted = this.converter.convertToDatabaseColumn(stack);
-
-        assertNotNull("The converted value should not be null.", converted);
-
-        final ThreadContext.ContextStack reversed = this.converter
-                .convertToEntityAttribute(converted);
-
-        assertNotNull("The reversed value should not be null.", reversed);
-        assertEquals("The reversed value is not correct.", stack.asList(),
-                reversed.asList());
-    }
-
-    @Test
-    public void testConvertNullToDatabaseColumn() {
-        assertNull("The converted value should be null.", this.converter.convertToDatabaseColumn(null));
-    }
-
-    @Test
-    public void testConvertNullOrBlankToEntityAttribute() {
-        assertNull("The converted attribute should be null (1).", this.converter.convertToEntityAttribute(null));
-        assertNull("The converted attribute should be null (2).", this.converter.convertToEntityAttribute(""));
-    }
-}
diff --git a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/InstantAttributeConverterTest.java b/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/InstantAttributeConverterTest.java
deleted file mode 100644
index 164ad7f87c..0000000000
--- a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/InstantAttributeConverterTest.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import org.apache.logging.log4j.core.test.categories.Appenders;
-import org.apache.logging.log4j.core.time.Instant;
-import org.apache.logging.log4j.core.time.MutableInstant;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
-
-@Category(Appenders.Jpa.class)
-public class InstantAttributeConverterTest {
-
-    private InstantAttributeConverter converter;
-
-    @Before
-    public void setUp() {
-        this.converter = new InstantAttributeConverter();
-    }
-
-    @Test
-    public void testConvert01() {
-        final MutableInstant instant = new MutableInstant();
-        instant.initFromEpochSecond(1234567, 89012);
-
-        final String converted = this.converter.convertToDatabaseColumn(instant);
-
-        assertNotNull("The converted value should not be null.", converted);
-        assertEquals("The converted value is not correct.", "1234567,89012", converted);
-
-        final Instant reversed = this.converter.convertToEntityAttribute(converted);
-
-        assertNotNull("The reversed value should not be null.", reversed);
-        assertEquals("epoch sec", 1234567, reversed.getEpochSecond());
-        assertEquals("nanoOfSecond", 89012, reversed.getNanoOfSecond());
-    }
-
-    @Test
-    public void testConvertNullToDatabaseColumn() {
-        assertNull("The converted value should be null.", this.converter.convertToDatabaseColumn(null));
-    }
-
-    @Test
-    public void testConvertNullOrBlankToEntityAttribute() {
-        assertNull("The converted attribute should be null (1).", this.converter.convertToEntityAttribute(null));
-        assertNull("The converted attribute should be null (2).", this.converter.convertToEntityAttribute(""));
-    }
-}
diff --git a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/MarkerAttributeConverterTest.java b/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/MarkerAttributeConverterTest.java
deleted file mode 100644
index a12a6ac8d3..0000000000
--- a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/MarkerAttributeConverterTest.java
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import org.apache.logging.log4j.Marker;
-import org.apache.logging.log4j.MarkerManager;
-import org.apache.logging.log4j.core.test.categories.Appenders;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-
-import static org.junit.Assert.*;
-
-@Category(Appenders.Jpa.class)
-public class MarkerAttributeConverterTest {
-    private MarkerAttributeConverter converter;
-
-    @Before
-    public void setUp() {
-        this.converter = new MarkerAttributeConverter();
-    }
-
-    @Test
-    public void testConvert01() {
-        final Marker marker = MarkerManager.getMarker("testConvert01");
-
-        final String converted = this.converter.convertToDatabaseColumn(marker);
-
-        assertNotNull("The converted value should not be null.", converted);
-        assertEquals("The converted value is not correct.", "testConvert01", converted);
-
-        final Marker reversed = this.converter.convertToEntityAttribute(converted);
-
-        assertNotNull("The reversed value should not be null.", reversed);
-        assertEquals("The reversed value is not correct.", "testConvert01", marker.getName());
-    }
-
-    @Test
-    public void testConvert02() {
-        Marker marker = MarkerManager.getMarker("anotherConvert02").setParents(MarkerManager.getMarker("finalConvert03"));
-        marker = MarkerManager.getMarker("testConvert02").setParents(marker);
-
-        final String converted = this.converter.convertToDatabaseColumn(marker);
-
-        assertNotNull("The converted value should not be null.", converted);
-        assertEquals("The converted value is not correct.", "testConvert02[ anotherConvert02[ finalConvert03 ] ]",
-                converted);
-
-        final Marker reversed = this.converter.convertToEntityAttribute(converted);
-
-        assertNotNull("The reversed value should not be null.", reversed);
-        assertEquals("The reversed value is not correct.", "testConvert02", marker.getName());
-        final Marker[] parents = marker.getParents();
-        assertNotNull("The first parent should not be null.", parents);
-        assertNotNull("The first parent should not be null.", parents[0]);
-        assertEquals("The first parent is not correct.", "anotherConvert02", parents[0].getName());
-        assertNotNull("The second parent should not be null.", parents[0].getParents());
-        assertNotNull("The second parent should not be null.", parents[0].getParents()[0]);
-        assertEquals("The second parent is not correct.", "finalConvert03", parents[0].getParents()[0].getName());
-    }
-
-    @Test
-    public void testConvertNullToDatabaseColumn() {
-        assertNull("The converted value should be null.", this.converter.convertToDatabaseColumn(null));
-    }
-
-    @Test
-    public void testConvertNullOrBlankToEntityAttribute() {
-        assertNull("The converted attribute should be null (1).", this.converter.convertToEntityAttribute(null));
-        assertNull("The converted attribute should be null (2).", this.converter.convertToEntityAttribute(""));
-    }
-}
diff --git a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/MessageAttributeConverterTest.java b/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/MessageAttributeConverterTest.java
deleted file mode 100644
index ab578b09d9..0000000000
--- a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/MessageAttributeConverterTest.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import org.apache.logging.log4j.core.test.categories.Appenders;
-import org.apache.logging.log4j.message.Message;
-import org.apache.logging.log4j.status.StatusLogger;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-
-import static org.junit.Assert.*;
-
-@Category(Appenders.Jpa.class)
-public class MessageAttributeConverterTest {
-    private static final StatusLogger LOGGER = StatusLogger.getLogger();
-
-    private MessageAttributeConverter converter;
-
-    @Before
-    public void setUp() {
-        this.converter = new MessageAttributeConverter();
-    }
-
-    @Test
-    public void testConvert01() {
-        final Message message = LOGGER.getMessageFactory().newMessage("Message #{} said [{}].", 3, "Hello");
-
-        final String converted = this.converter.convertToDatabaseColumn(message);
-
-        assertNotNull("The converted value should not be null.", converted);
-        assertEquals("The converted value is not correct.", "Message #3 said [Hello].", converted);
-
-        final Message reversed = this.converter.convertToEntityAttribute(converted);
-
-        assertNotNull("The reversed value should not be null.", reversed);
-        assertEquals("The reversed value is not correct.", "Message #3 said [Hello].", reversed.getFormattedMessage());
-    }
-
-    @Test
-    public void testConvertNullToDatabaseColumn() {
-        assertNull("The converted value should be null.", this.converter.convertToDatabaseColumn(null));
-    }
-
-    @Test
-    public void testConvertNullOrBlankToEntityAttribute() {
-        assertNull("The converted attribute should be null (1).", this.converter.convertToEntityAttribute(null));
-        assertNull("The converted attribute should be null (2).", this.converter.convertToEntityAttribute(""));
-    }
-}
diff --git a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/StackTraceElementAttributeConverterTest.java b/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/StackTraceElementAttributeConverterTest.java
deleted file mode 100644
index f2783128cb..0000000000
--- a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/StackTraceElementAttributeConverterTest.java
+++ /dev/null
@@ -1,132 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import org.apache.logging.log4j.core.test.categories.Appenders;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-
-import static org.junit.Assert.*;
-
-@Category(Appenders.Jpa.class)
-public class StackTraceElementAttributeConverterTest {
-    private StackTraceElementAttributeConverter converter;
-
-    @Before
-    public void setUp() {
-        this.converter = new StackTraceElementAttributeConverter();
-    }
-
-    @Test
-    public void testConvert01() {
-        final StackTraceElement element = new StackTraceElement("TestNoPackage", "testConvert01", "TestNoPackage.java", 1234);
-
-        final String converted = this.converter.convertToDatabaseColumn(element);
-
-        assertNotNull("The converted value should not be null.", converted);
-        assertEquals("The converted value is not correct.", "TestNoPackage.testConvert01(TestNoPackage.java:1234)",
-                converted);
-
-        final StackTraceElement reversed = this.converter.convertToEntityAttribute(converted);
-
-        assertNotNull("The reversed value should not be null.", reversed);
-        assertEquals("The class name is not correct.", "TestNoPackage", reversed.getClassName());
-        assertEquals("The method name is not correct.", "testConvert01", reversed.getMethodName());
-        assertEquals("The file name is not correct.", "TestNoPackage.java", reversed.getFileName());
-        assertEquals("The line number is not correct.", 1234, reversed.getLineNumber());
-        assertFalse("The native flag should be false.", reversed.isNativeMethod());
-    }
-
-    @Test
-    public void testConvert02() {
-        final StackTraceElement element = new StackTraceElement("org.apache.logging.TestWithPackage",
-                "testConvert02", "TestWithPackage.java", -1);
-
-        final String converted = this.converter.convertToDatabaseColumn(element);
-
-        assertNotNull("The converted value should not be null.", converted);
-        assertEquals("The converted value is not correct.",
-                "org.apache.logging.TestWithPackage.testConvert02(TestWithPackage.java)",
-                converted);
-
-        final StackTraceElement reversed = this.converter.convertToEntityAttribute(converted);
-
-        assertNotNull("The reversed value should not be null.", reversed);
-        assertEquals("The class name is not correct.", "org.apache.logging.TestWithPackage", reversed.getClassName());
-        assertEquals("The method name is not correct.", "testConvert02", reversed.getMethodName());
-        assertEquals("The file name is not correct.", "TestWithPackage.java", reversed.getFileName());
-        assertEquals("The line number is not correct.", -1, reversed.getLineNumber());
-        assertFalse("The native flag should be false.", reversed.isNativeMethod());
-    }
-
-    @Test
-    public void testConvert03() {
-        final StackTraceElement element = new StackTraceElement("org.apache.logging.TestNoSource",
-                "testConvert03", null, -1);
-
-        final String converted = this.converter.convertToDatabaseColumn(element);
-
-        assertNotNull("The converted value should not be null.", converted);
-        assertEquals("The converted value is not correct.",
-                "org.apache.logging.TestNoSource.testConvert03(Unknown Source)",
-                converted);
-
-        final StackTraceElement reversed = this.converter.convertToEntityAttribute(converted);
-
-        assertNotNull("The reversed value should not be null.", reversed);
-        assertEquals("The class name is not correct.", "org.apache.logging.TestNoSource", reversed.getClassName());
-        assertEquals("The method name is not correct.", "testConvert03", reversed.getMethodName());
-        assertEquals("The file name is not correct.", null, reversed.getFileName());
-        assertEquals("The line number is not correct.", -1, reversed.getLineNumber());
-        assertFalse("The native flag should be false.", reversed.isNativeMethod());
-    }
-
-    @Test
-    public void testConvert04() {
-        final StackTraceElement element = new StackTraceElement("org.apache.logging.TestIsNativeMethod",
-                "testConvert04", null, -2);
-
-        final String converted = this.converter.convertToDatabaseColumn(element);
-
-        assertNotNull("The converted value should not be null.", converted);
-        assertEquals("The converted value is not correct.",
-                "org.apache.logging.TestIsNativeMethod.testConvert04(Native Method)",
-                converted);
-
-        final StackTraceElement reversed = this.converter.convertToEntityAttribute(converted);
-
-        assertNotNull("The reversed value should not be null.", reversed);
-        assertEquals("The class name is not correct.", "org.apache.logging.TestIsNativeMethod",
-                reversed.getClassName());
-        assertEquals("The method name is not correct.", "testConvert04", reversed.getMethodName());
-        assertEquals("The file name is not correct.", null, reversed.getFileName());
-        assertEquals("The line number is not correct.", -2, reversed.getLineNumber());
-        assertTrue("The native flag should be true.", reversed.isNativeMethod());
-    }
-
-    @Test
-    public void testConvertNullToDatabaseColumn() {
-        assertNull("The converted value should be null.", this.converter.convertToDatabaseColumn(null));
-    }
-
-    @Test
-    public void testConvertNullOrBlankToEntityAttribute() {
-        assertNull("The converted attribute should be null (1).", this.converter.convertToEntityAttribute(null));
-        assertNull("The converted attribute should be null (2).", this.converter.convertToEntityAttribute(""));
-    }
-}
diff --git a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ThrowableAttributeConverterTest.java b/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ThrowableAttributeConverterTest.java
deleted file mode 100644
index c6e8150604..0000000000
--- a/log4j-jpa/src/test/java/org/apache/logging/log4j/jpa/converter/ThrowableAttributeConverterTest.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jpa.converter;
-
-import java.sql.SQLException;
-
-import org.apache.logging.log4j.core.test.categories.Appenders;
-import org.junit.Before;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-
-import static org.junit.Assert.*;
-
-@Category(Appenders.Jpa.class)
-public class ThrowableAttributeConverterTest {
-    private ThrowableAttributeConverter converter;
-
-    @Before
-    public void setUp() {
-        this.converter = new ThrowableAttributeConverter();
-    }
-
-    @Test
-    public void testConvert01() {
-        final RuntimeException exception = new RuntimeException("My message 01.");
-
-        final String stackTrace = getStackTrace(exception);
-
-        final String converted = this.converter.convertToDatabaseColumn(exception);
-
-        assertNotNull("The converted value is not correct.", converted);
-        assertEquals("The converted value is not correct.", stackTrace, converted);
-
-        final Throwable reversed = this.converter.convertToEntityAttribute(converted);
-
-        assertNotNull("The reversed value should not be null.", reversed);
-        assertEquals("The reversed value is not correct.", stackTrace, getStackTrace(reversed));
-    }
-
-    @Test
-    public void testConvert02() {
-        final SQLException cause2 = new SQLException("This is a test cause.");
-        final Error cause1 = new Error(cause2);
-        final RuntimeException exception = new RuntimeException("My message 01.", cause1);
-
-        final String stackTrace = getStackTrace(exception);
-
-        final String converted = this.converter.convertToDatabaseColumn(exception);
-
-        assertNotNull("The converted value is not correct.", converted);
-        assertEquals("The converted value is not correct.", stackTrace, converted);
-
-        final Throwable reversed = this.converter.convertToEntityAttribute(converted);
-
-        assertNotNull("The reversed value should not be null.", reversed);
-        assertEquals("The reversed value is not correct.", stackTrace, getStackTrace(reversed));
-    }
-
-    @Test
-    public void testConvertNullToDatabaseColumn() {
-        assertNull("The converted value should be null.", this.converter.convertToDatabaseColumn(null));
-    }
-
-    @Test
-    public void testConvertNullOrBlankToEntityAttribute() {
-        assertNull("The converted attribute should be null (1).", this.converter.convertToEntityAttribute(null));
-        assertNull("The converted attribute should be null (2).", this.converter.convertToEntityAttribute(""));
-    }
-
-    private static String getStackTrace(final Throwable throwable) {
-        String returnValue = throwable.toString() + '\n';
-
-        for (final StackTraceElement element : throwable.getStackTrace()) {
-            returnValue += "\tat " + element.toString() + '\n';
-        }
-
-        if (throwable.getCause() != null) {
-            returnValue += "Caused by " + getStackTrace(throwable.getCause());
-        }
-
-        return returnValue;
-    }
-}
diff --git a/log4j-jpa/src/test/resources/META-INF/persistence.xml b/log4j-jpa/src/test/resources/META-INF/persistence.xml
deleted file mode 100644
index 3cec12a9f7..0000000000
--- a/log4j-jpa/src/test/resources/META-INF/persistence.xml
+++ /dev/null
@@ -1,79 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence"
-             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-             xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
-                                 http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"
-             version="2.1">
-
-  <persistence-unit name="hyperSqlJpaAppenderTestUnit">
-    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
-    <class>org.apache.logging.log4j.jpa.converter.ContextMapAttributeConverter</class>
-    <class>org.apache.logging.log4j.jpa.converter.ContextMapJsonAttributeConverter</class>
-    <class>org.apache.logging.log4j.jpa.converter.ContextStackAttributeConverter</class>
-    <class>org.apache.logging.log4j.jpa.converter.ContextStackJsonAttributeConverter</class>
-    <class>org.apache.logging.log4j.jpa.converter.InstantAttributeConverter</class>
-    <class>org.apache.logging.log4j.jpa.converter.LevelAttributeConverter</class>
-    <class>org.apache.logging.log4j.jpa.converter.MarkerAttributeConverter</class>
-    <class>org.apache.logging.log4j.jpa.converter.MessageAttributeConverter</class>
-    <class>org.apache.logging.log4j.jpa.converter.StackTraceElementAttributeConverter</class>
-    <class>org.apache.logging.log4j.jpa.converter.ThrowableAttributeConverter</class>
-    <exclude-unlisted-classes>false</exclude-unlisted-classes>
-    <shared-cache-mode>NONE</shared-cache-mode>
-    <properties>
-      <property name="javax.persistence.jdbc.driver" value="org.hsqldb.jdbcDriver"/>
-      <property name="javax.persistence.jdbc.url" value="jdbc:hsqldb:mem:Log4j;ifexists=true"/>
-      <property name="javax.persistence.jdbc.user" value="sa"/>
-      <property name="javax.persistence.jdbc.password" value=""/>
-      <!--<property name="eclipselink.logging.level" value="FINE"/>
-      <property name="eclipselink.logging.level.sql" value="FINE"/>
-      <property name="eclipselink.logging.parameters" value="true"/> uncomment to troubleshoot SQL-->
-    </properties>
-  </persistence-unit>
-
-  <persistence-unit name="h2JpaAppenderTestUnit">
-    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
-    <class>org.apache.logging.log4j.jpa.converter.ContextMapAttributeConverter</class>
-    <class>org.apache.logging.log4j.jpa.converter.ContextMapJsonAttributeConverter</class>
-    <class>org.apache.logging.log4j.jpa.converter.ContextStackAttributeConverter</class>
-    <class>org.apache.logging.log4j.jpa.converter.ContextStackJsonAttributeConverter</class>
-    <class>org.apache.logging.log4j.jpa.converter.InstantAttributeConverter</class>
-    <class>org.apache.logging.log4j.jpa.converter.LevelAttributeConverter</class>
-    <class>org.apache.logging.log4j.jpa.converter.MarkerAttributeConverter</class>
-    <class>org.apache.logging.log4j.jpa.converter.MessageAttributeConverter</class>
-    <class>org.apache.logging.log4j.jpa.converter.StackTraceElementAttributeConverter</class>
-    <class>org.apache.logging.log4j.jpa.converter.ThrowableAttributeConverter</class>
-    <exclude-unlisted-classes>false</exclude-unlisted-classes>
-    <shared-cache-mode>NONE</shared-cache-mode>
-    <properties>
-      <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
-      <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:Log4j;MODE=PostgreSQL"/>
-      <property name="javax.persistence.jdbc.user" value="sa"/>
-      <property name="javax.persistence.jdbc.password" value=""/>
-      <!--
-        Until the issue in https://github.com/eclipse-ee4j/eclipselink/issues/1393
-        we run in PostgreSQL compatibility mode.
-       -->
-      <property name="eclipselink.target-database" value="PostgreSQL"/>
-      <!--<property name="eclipselink.logging.level" value="FINE"/>
-      <property name="eclipselink.logging.level.sql" value="FINE"/>
-      <property name="eclipselink.logging.parameters" value="true"/> uncomment to troubleshoot SQL-->
-    </properties>
-  </persistence-unit>
-
-</persistence>
diff --git a/log4j-jpa/src/test/resources/org/apache/logging/log4j/jpa/appender/log4j2-h2-jpa-base.xml b/log4j-jpa/src/test/resources/org/apache/logging/log4j/jpa/appender/log4j2-h2-jpa-base.xml
deleted file mode 100644
index d0c58b8760..0000000000
--- a/log4j-jpa/src/test/resources/org/apache/logging/log4j/jpa/appender/log4j2-h2-jpa-base.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<Configuration status="OFF">
-
-  <Appenders>
-    <Console name="STDOUT">
-      <PatternLayout pattern="%C{1.} %m %level MDC%X%n"/>
-    </Console>
-    <Jpa name="databaseAppender" persistenceUnitName="h2JpaAppenderTestUnit"
-         entityClassName="org.apache.logging.log4j.jpa.appender.TestBaseEntity" ignoreExceptions="false" />
-  </Appenders>
-
-  <Loggers>
-    <Logger name="org.apache.logging.log4j.jpa.appender" level="debug" additivity="false">
-      <AppenderRef ref="databaseAppender" />
-    </Logger>
-
-    <Root level="fatal">
-      <AppenderRef ref="STDOUT"/>
-    </Root>
-  </Loggers>
-
-</Configuration>
diff --git a/log4j-jpa/src/test/resources/org/apache/logging/log4j/jpa/appender/log4j2-h2-jpa-basic.xml b/log4j-jpa/src/test/resources/org/apache/logging/log4j/jpa/appender/log4j2-h2-jpa-basic.xml
deleted file mode 100644
index 4159da08a1..0000000000
--- a/log4j-jpa/src/test/resources/org/apache/logging/log4j/jpa/appender/log4j2-h2-jpa-basic.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<Configuration status="OFF">
-
-  <Appenders>
-    <Console name="STDOUT">
-      <PatternLayout pattern="%C{1.} %m %level MDC%X%n"/>
-    </Console>
-    <Jpa name="databaseAppender" persistenceUnitName="h2JpaAppenderTestUnit"
-         entityClassName="org.apache.logging.log4j.jpa.appender.TestBasicEntity" ignoreExceptions="false" />
-  </Appenders>
-
-  <Loggers>
-    <Logger name="org.apache.logging.log4j.jpa.appender" level="debug" additivity="false">
-      <AppenderRef ref="databaseAppender" />
-    </Logger>
-
-    <Root level="fatal">
-      <AppenderRef ref="STDOUT"/>
-    </Root>
-  </Loggers>
-
-</Configuration>
diff --git a/log4j-jpa/src/test/resources/org/apache/logging/log4j/jpa/appender/log4j2-hsqldb-jpa-base.xml b/log4j-jpa/src/test/resources/org/apache/logging/log4j/jpa/appender/log4j2-hsqldb-jpa-base.xml
deleted file mode 100644
index 5d20025b76..0000000000
--- a/log4j-jpa/src/test/resources/org/apache/logging/log4j/jpa/appender/log4j2-hsqldb-jpa-base.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<Configuration status="OFF">
-
-  <Appenders>
-    <Console name="STDOUT">
-      <PatternLayout pattern="%C{1.} %m %level MDC%X%n"/>
-    </Console>
-    <Jpa name="databaseAppender" persistenceUnitName="hyperSqlJpaAppenderTestUnit"
-         entityClassName="org.apache.logging.log4j.jpa.appender.TestBaseEntity" ignoreExceptions="false" />
-  </Appenders>
-
-  <Loggers>
-    <Logger name="org.apache.logging.log4j.jpa.appender" level="debug" additivity="false">
-      <AppenderRef ref="databaseAppender" />
-    </Logger>
-
-    <Root level="fatal">
-      <AppenderRef ref="STDOUT"/>
-    </Root>
-  </Loggers>
-
-</Configuration>
diff --git a/log4j-jpa/src/test/resources/org/apache/logging/log4j/jpa/appender/log4j2-hsqldb-jpa-basic.xml b/log4j-jpa/src/test/resources/org/apache/logging/log4j/jpa/appender/log4j2-hsqldb-jpa-basic.xml
deleted file mode 100644
index 796e9720c2..0000000000
--- a/log4j-jpa/src/test/resources/org/apache/logging/log4j/jpa/appender/log4j2-hsqldb-jpa-basic.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<Configuration status="OFF">
-
-  <Appenders>
-    <Console name="STDOUT">
-      <PatternLayout pattern="%C{1.} %m %level MDC%X%n"/>
-    </Console>
-    <Jpa name="databaseAppender" persistenceUnitName="hyperSqlJpaAppenderTestUnit"
-         entityClassName="org.apache.logging.log4j.jpa.appender.TestBasicEntity" ignoreExceptions="false" />
-  </Appenders>
-
-  <Loggers>
-    <Logger name="org.apache.logging.log4j.jpa.appender" level="debug" additivity="false">
-      <AppenderRef ref="databaseAppender" />
-    </Logger>
-
-    <Root level="fatal">
-      <AppenderRef ref="STDOUT"/>
-    </Root>
-  </Loggers>
-
-</Configuration>
diff --git a/log4j-layout-jackson-xml/pom.xml b/log4j-layout-jackson-xml/pom.xml
index d813136f1d..241bc93034 100644
--- a/log4j-layout-jackson-xml/pom.xml
+++ b/log4j-layout-jackson-xml/pom.xml
@@ -59,18 +59,6 @@
       <groupId>com.fasterxml.jackson.dataformat</groupId>
       <artifactId>jackson-dataformat-xml</artifactId>
     </dependency>
-    <!-- Replacement for `jakarta.xml.bind` Jackson dependency -->
-    <dependency>
-      <groupId>javax.activation</groupId>
-      <artifactId>javax.activation-api</artifactId>
-      <scope>runtime</scope>
-    </dependency>
-    <!-- Replacement for `jakarta.xml.bind` Jackson dependency -->
-    <dependency>
-      <groupId>javax.xml.bind</groupId>
-      <artifactId>jaxb-api</artifactId>
-      <scope>runtime</scope>
-    </dependency>
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-api-test</artifactId>
diff --git a/log4j-parent/pom.xml b/log4j-parent/pom.xml
index 8b4b5157c8..97f371a01c 100644
--- a/log4j-parent/pom.xml
+++ b/log4j-parent/pom.xml
@@ -89,7 +89,6 @@
     <asciidoctor-maven-plugin.version>2.2.4</asciidoctor-maven-plugin.version>
     <docker-maven-plugin.version>0.43.4</docker-maven-plugin.version>
     <exam-maven-plugin.version>4.13.5</exam-maven-plugin.version>
-    <maven-taglib-plugin.version>2.4</maven-taglib-plugin.version>
     <!-- `surefire.version` property used in `apache.org:apache`: -->
     <surefire.version>3.1.2</surefire.version>
 
@@ -127,18 +126,8 @@
     <HdrHistogram.version>2.1.12</HdrHistogram.version>
     <hsqldb.version>2.7.2</hsqldb.version>
     <jackson-bom.version>2.15.2</jackson-bom.version>
-    <!-- Override the version in Jakarta EE 9 BOM: -->
-    <jakarta-activation.version>2.1.2</jakarta-activation.version>
-    <!-- BOM with Jakarta EE 9 APIs: -->
-    <jakartaee-bom.version>9.1.0</jakartaee-bom.version>
-    <!-- No BOM for Java EE 8 APIs, so we list them separately: -->
-    <javax-activation.version>1.2.0</javax-activation.version>
-    <javax-inject.version>1</javax-inject.version>
-    <javax-jaxb.version>2.3.1</javax-jaxb.version>
-    <javax-persistence.version>2.2</javax-persistence.version>
-    <javax-servlet.version>4.0.1</javax-servlet.version>
-    <javax-servlet-jsp.version>2.3.3</javax-servlet-jsp.version>
     <jansi.version>2.4.0</jansi.version>
+    <javax-jms.version>2.0.1</javax-jms.version>
     <java-allocation-instrumenter.version>3.3.3</java-allocation-instrumenter.version>
     <jctools.version>3.3.0</jctools.version>
     <je.version>18.3.12</je.version>
@@ -165,7 +154,6 @@
     <netty.version>4.1.97.Final</netty.version>
     <opentest4j.version>1.3.0</opentest4j.version>
     <org.eclipse.osgi.version>3.18.400</org.eclipse.osgi.version>
-    <org.eclipse.persistence.version>2.7.11</org.eclipse.persistence.version>
     <oro.version>2.0.8</oro.version>
     <!-- The OSGi API version MUST always be the MINIMUM version Log4j supports -->
     <osgi.framework.version>1.10.0</osgi.framework.version>
@@ -250,14 +238,6 @@
         <scope>import</scope>
       </dependency>
 
-      <dependency>
-        <groupId>jakarta.platform</groupId>
-        <artifactId>jakarta.jakartaee-bom</artifactId>
-        <version>${jakartaee-bom.version}</version>
-        <type>pom</type>
-        <scope>import</scope>
-      </dependency>
-
       <dependency>
         <groupId>org.eclipse.jetty</groupId>
         <artifactId>jetty-bom</artifactId>
@@ -655,12 +635,6 @@
         <version>${hsqldb.version}</version>
       </dependency>
 
-      <dependency>
-        <groupId>jakarta.activation</groupId>
-        <artifactId>jakarta.activation-api</artifactId>
-        <version>${jakarta-activation.version}</version>
-      </dependency>
-
       <dependency>
         <groupId>org.fusesource.jansi</groupId>
         <artifactId>jansi</artifactId>
@@ -674,46 +648,11 @@
         <version>${java-allocation-instrumenter.version}</version>
       </dependency>
 
+      <!-- used by `log4j-1.2-api`: -->
       <dependency>
-        <groupId>com.sun.activation</groupId>
-        <artifactId>javax.activation</artifactId>
-        <version>${javax-activation.version}</version>
-      </dependency>
-
-      <dependency>
-        <groupId>javax.activation</groupId>
-        <artifactId>javax.activation-api</artifactId>
-        <version>${javax-activation.version}</version>
-      </dependency>
-
-      <dependency>
-        <groupId>javax.inject</groupId>
-        <artifactId>javax.inject</artifactId>
-        <version>${javax-inject.version}</version>
-      </dependency>
-
-      <dependency>
-        <groupId>javax.persistence</groupId>
-        <artifactId>javax.persistence-api</artifactId>
-        <version>${javax-persistence.version}</version>
-      </dependency>
-
-      <dependency>
-        <groupId>javax.servlet.jsp</groupId>
-        <artifactId>javax.servlet.jsp-api</artifactId>
-        <version>${javax-servlet-jsp.version}</version>
-      </dependency>
-
-      <dependency>
-        <groupId>javax.servlet</groupId>
-        <artifactId>javax.servlet-api</artifactId>
-        <version>${javax-servlet.version}</version>
-      </dependency>
-
-      <dependency>
-        <groupId>javax.xml.bind</groupId>
-        <artifactId>jaxb-api</artifactId>
-        <version>${javax-jaxb.version}</version>
+        <groupId>javax.jms</groupId>
+        <artifactId>javax.jms-api</artifactId>
+        <version>${javax-jms.version}</version>
       </dependency>
 
       <dependency>
@@ -902,19 +841,6 @@
         <version>${org.eclipse.osgi.version}</version>
       </dependency>
 
-      <dependency>
-        <groupId>org.eclipse.persistence</groupId>
-        <artifactId>org.eclipse.persistence.jpa</artifactId>
-        <version>${org.eclipse.persistence.version}</version>
-        <exclusions>
-          <!-- A copy of `javax.persistence:javax.persistence-api`: -->
-          <exclusion>
-            <groupId>org.eclipse.persistence</groupId>
-            <artifactId>jakarta.persistence</artifactId>
-          </exclusion>
-        </exclusions>
-      </dependency>
-
       <dependency>
         <groupId>org.osgi</groupId>
         <artifactId>org.osgi.framework</artifactId>
@@ -1047,14 +973,6 @@
         <groupId>org.xmlunit</groupId>
         <artifactId>xmlunit-core</artifactId>
         <version>${xmlunit.version}</version>
-        <!-- This POM bumps these deps to Jakartified versions.
-             Using the corresponding `javax.*` deps is safer. -->
-        <exclusions>
-          <exclusion>
-            <groupId>jakarta.xml.bind</groupId>
-            <artifactId>jakarta.xml.bind-api</artifactId>
-          </exclusion>
-        </exclusions>
       </dependency>
 
       <dependency>
diff --git a/log4j-perf/pom.xml b/log4j-perf/pom.xml
index 964b033eea..b74e5c6dc1 100644
--- a/log4j-perf/pom.xml
+++ b/log4j-perf/pom.xml
@@ -57,10 +57,6 @@
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-jdbc</artifactId>
     </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-jpa</artifactId>
-    </dependency>
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-layout-jackson-json</artifactId>
@@ -104,11 +100,6 @@
       <artifactId>jackson-databind</artifactId>
       <optional>true</optional>
     </dependency>
-    <!-- Used for JPA appenders (needs an implementation of course) -->
-    <dependency>
-      <groupId>javax.persistence</groupId>
-      <artifactId>javax.persistence-api</artifactId>
-    </dependency>
     <dependency>
       <groupId>org.jctools</groupId>
       <artifactId>jctools-core</artifactId>
@@ -135,10 +126,6 @@
       <artifactId>logback-core</artifactId>
       <scope>compile</scope>
     </dependency>
-    <dependency>
-      <groupId>org.eclipse.persistence</groupId>
-      <artifactId>org.eclipse.persistence.jpa</artifactId>
-    </dependency>
     <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-api</artifactId>
diff --git a/log4j-perf/src/main/java/org/apache/logging/log4j/perf/jmh/JpaAppenderBenchmark.java b/log4j-perf/src/main/java/org/apache/logging/log4j/perf/jmh/JpaAppenderBenchmark.java
deleted file mode 100644
index a8f0c498ab..0000000000
--- a/log4j-perf/src/main/java/org/apache/logging/log4j/perf/jmh/JpaAppenderBenchmark.java
+++ /dev/null
@@ -1,198 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.perf.jmh;
-
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.SQLException;
-import java.sql.Statement;
-import java.util.concurrent.TimeUnit;
-
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
-import org.apache.logging.log4j.core.LoggerContext;
-import org.apache.logging.log4j.core.config.DefaultConfiguration;
-import org.apache.logging.log4j.core.impl.Log4jPropertyKey;
-import org.apache.logging.log4j.core.util.Closer;
-import org.apache.logging.log4j.jpa.appender.JpaAppender;
-import org.apache.logging.log4j.status.StatusLogger;
-import org.openjdk.jmh.annotations.Benchmark;
-import org.openjdk.jmh.annotations.BenchmarkMode;
-import org.openjdk.jmh.annotations.Mode;
-import org.openjdk.jmh.annotations.OutputTimeUnit;
-import org.openjdk.jmh.annotations.Scope;
-import org.openjdk.jmh.annotations.Setup;
-import org.openjdk.jmh.annotations.State;
-import org.openjdk.jmh.annotations.TearDown;
-import org.openjdk.jmh.infra.Blackhole;
-
-/**
- * Tests the overhead of a number of JPA Appenders.
- */
-// ============================== HOW TO RUN THIS TEST: ====================================
-//
-// java -jar log4j-perf/target/benchmarks.jar ".*JdbcAppenderBenchmark.*" -f 1 -wi 5 -i 5
-//
-// Usage help:
-// java -jar log4j-perf/target/benchmarks.jar -help
-//
-@State(Scope.Thread)
-public class JpaAppenderBenchmark {
-    private Logger loggerH2;
-    private Logger loggerHSQLDB;
-    private Connection connectionHSQLDB;
-    private Connection connectionH2;
-    private final RuntimeException exception = new RuntimeException("Hello, world!");
-
-    @Setup
-    public void setup() throws Exception {
-        connectionHSQLDB = getConnectionHSQLDB();
-        connectionH2 = getConnectionH2();
-
-        System.setProperty(Log4jPropertyKey.CONFIG_LOCATION.getSystemKey(), "log4j2-jpa-appender.xml");
-        final LoggerContext context = LoggerContext.getContext(false);
-        if (context.getConfiguration() instanceof DefaultConfiguration) {
-            context.reconfigure();
-        }
-        StatusLogger.getLogger().reset();
-        loggerH2 = LogManager.getLogger("H2Logger");
-        loggerHSQLDB = LogManager.getLogger("HSQLDBLogger");
-    }
-
-    @BenchmarkMode(Mode.Throughput)
-    @OutputTimeUnit(TimeUnit.SECONDS)
-    @Benchmark
-    public void testThroughputH2Message(final Blackhole bh) {
-        loggerH2.info("Test message");
-    }
-
-    @BenchmarkMode(Mode.Throughput)
-    @OutputTimeUnit(TimeUnit.SECONDS)
-    @Benchmark
-    public void testThroughputH2Exception(final Blackhole bh) {
-        loggerH2.warn("Test message", exception);
-    }
-
-    @BenchmarkMode(Mode.SampleTime)
-    @OutputTimeUnit(TimeUnit.MICROSECONDS)
-    @Benchmark
-    public void testResponseTimeH2Message(final Blackhole bh) {
-        loggerH2.info("Test message");
-    }
-
-    @BenchmarkMode(Mode.SampleTime)
-    @OutputTimeUnit(TimeUnit.MICROSECONDS)
-    @Benchmark
-    public void testResponseTimeH2Exception(final Blackhole bh) {
-        loggerH2.warn("Test message", exception);
-    }
-
-    @BenchmarkMode(Mode.Throughput)
-    @OutputTimeUnit(TimeUnit.SECONDS)
-    @Benchmark
-    public void testThroughputHSQLDBMessage(final Blackhole bh) {
-        loggerHSQLDB.info("Test message");
-    }
-
-    @BenchmarkMode(Mode.Throughput)
-    @OutputTimeUnit(TimeUnit.SECONDS)
-    @Benchmark
-    public void testThroughputHSQLDBException(final Blackhole bh) {
-        loggerHSQLDB.warn("Test message", exception);
-    }
-
-    @BenchmarkMode(Mode.SampleTime)
-    @OutputTimeUnit(TimeUnit.MICROSECONDS)
-    @Benchmark
-    public void testResponseTimeHSQLDBMessage(final Blackhole bh) {
-        loggerHSQLDB.info("Test message");
-    }
-
-    @BenchmarkMode(Mode.SampleTime)
-    @OutputTimeUnit(TimeUnit.MICROSECONDS)
-    @Benchmark
-    public void testResponseTimeHSQLDBException(final Blackhole bh) {
-        loggerHSQLDB.warn("Test message", exception);
-    }
-
-    @TearDown
-    public void tearDown() throws SQLException {
-        final LoggerContext context = LoggerContext.getContext(false);
-        try {
-            ((JpaAppender) context.getConfiguration().getAppender("H2Appender")).getManager().close();
-            ((JpaAppender) context.getConfiguration().getAppender("HSQLDBAppender")).getManager().close();
-        } finally {
-            System.clearProperty(Log4jPropertyKey.CONFIG_LOCATION.getSystemKey());
-            // context.reconfigure();
-            // StatusLogger.getLogger().reset();
-
-            Statement statement = null;
-            try {
-                statement = connectionHSQLDB.createStatement();
-                statement.execute("SHUTDOWN");
-            } catch (final SQLException ignore) {
-                // ignore
-            } finally {
-                Closer.closeSilently(statement);
-                Closer.closeSilently(connectionHSQLDB);
-            }
-            try {
-                statement = connectionH2.createStatement();
-                statement.execute("SHUTDOWN");
-            } catch (final SQLException ignore) {
-                // ignore
-            } finally {
-                Closer.closeSilently(statement);
-                Closer.closeSilently(connectionH2);
-            }
-        }
-    }
-
-    /**
-     * Referred from log4j2-jdbc-appender.xml.
-     */
-    public static Connection getConnectionH2() throws Exception {
-        Class.forName("org.h2.Driver");
-        final Connection connection = DriverManager.getConnection("jdbc:h2:mem:Log4j;MODE=PostgreSQL", "sa", "");
-        final Statement statement = connection.createStatement();
-        statement.executeUpdate("CREATE TABLE jpaBasicLogEntry ( "
-                + "id INTEGER GENERATED ALWAYS AS IDENTITY, timemillis BIGINT, instant NVARCHAR(64), nanoTime BIGINT, "
-                + "level NVARCHAR(10), loggerName NVARCHAR(255), message NVARCHAR(1024), "
-                + "thrown NVARCHAR(1048576), contextMapJson NVARCHAR(1048576), loggerFQCN NVARCHAR(1024), "
-                + "contextStack NVARCHAR(1048576), marker NVARCHAR(255), source NVARCHAR(2048),"
-                + "threadId BIGINT, threadName NVARCHAR(255), threadPriority INTEGER )");
-        statement.close();
-        return connection;
-    }
-
-    /**
-     * Referred from log4j2-jdbc-appender.xml.
-     */
-    public static Connection getConnectionHSQLDB() throws Exception {
-        Class.forName("org.hsqldb.jdbcDriver");
-        final Connection connection = DriverManager.getConnection("jdbc:hsqldb:mem:Log4j", "sa", "");
-        final Statement statement = connection.createStatement();
-        statement.executeUpdate("CREATE TABLE jpaBasicLogEntry ( "
-                + "id INTEGER IDENTITY, timemillis BIGINT, instant NVARCHAR(64), nanoTime BIGINT, "
-                + "level VARCHAR(10), loggerName VARCHAR(255), message VARCHAR(1024), thrown VARCHAR(1048576), "
-                + "contextMapJson VARCHAR(1048576), loggerFQCN VARCHAR(1024), "
-                + "contextStack VARCHAR(1048576), marker VARCHAR(255), source VARCHAR(2048),"
-                + "threadId BIGINT, threadName NVARCHAR(255), threadPriority INTEGER )");
-        statement.close();
-        return connection;
-    }
-}
diff --git a/log4j-perf/src/main/java/org/apache/logging/log4j/perf/jmh/jpa/TestBasicEntity.java b/log4j-perf/src/main/java/org/apache/logging/log4j/perf/jmh/jpa/TestBasicEntity.java
deleted file mode 100644
index 39966752f8..0000000000
--- a/log4j-perf/src/main/java/org/apache/logging/log4j/perf/jmh/jpa/TestBasicEntity.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.perf.jmh.jpa;
-
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.Table;
-
-import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.jpa.appender.BasicLogEventEntity;
-
-@Entity
-@Table(name = "jpaBasicLogEntry")
-@SuppressWarnings("unused")
-public class TestBasicEntity extends BasicLogEventEntity {
-
-    private long id = 0L;
-
-    public TestBasicEntity() {
-        super();
-    }
-
-    public TestBasicEntity(final LogEvent wrapped) {
-        super(wrapped);
-    }
-
-    @Id
-    @GeneratedValue(strategy = GenerationType.IDENTITY)
-    @Column(name = "id")
-    public long getId() {
-        return this.id;
-    }
-
-    public void setId(final long id) {
-        this.id = id;
-    }
-
-}
diff --git a/log4j-perf/src/main/resources/META-INF/persistence.xml b/log4j-perf/src/main/resources/META-INF/persistence.xml
deleted file mode 100644
index c7fb5ae8fc..0000000000
--- a/log4j-perf/src/main/resources/META-INF/persistence.xml
+++ /dev/null
@@ -1,79 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence"
-             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-             xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
-                                 http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"
-             version="2.1">
-
-  <persistence-unit name="hyperSqlJpaAppenderTestUnit">
-    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.ContextMapAttributeConverter</class>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.ContextMapJsonAttributeConverter</class>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.ContextStackAttributeConverter</class>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.ContextStackJsonAttributeConverter</class>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.InstantAttributeConverter</class>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.LevelAttributeConverter</class>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.MarkerAttributeConverter</class>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.MessageAttributeConverter</class>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.StackTraceElementAttributeConverter</class>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.ThrowableAttributeConverter</class>
-    <exclude-unlisted-classes>false</exclude-unlisted-classes>
-    <shared-cache-mode>NONE</shared-cache-mode>
-    <properties>
-      <property name="javax.persistence.jdbc.driver" value="org.hsqldb.jdbcDriver"/>
-      <property name="javax.persistence.jdbc.url" value="jdbc:hsqldb:mem:Log4j;ifexists=true"/>
-      <property name="javax.persistence.jdbc.user" value="sa"/>
-      <property name="javax.persistence.jdbc.password" value=""/>
-      <!--<property name="eclipselink.logging.level" value="FINE"/>
-      <property name="eclipselink.logging.level.sql" value="FINE"/>
-      <property name="eclipselink.logging.parameters" value="true"/> uncomment to troubleshoot SQL-->
-    </properties>
-  </persistence-unit>
-
-  <persistence-unit name="h2JpaAppenderTestUnit">
-    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.ContextMapAttributeConverter</class>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.ContextMapJsonAttributeConverter</class>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.ContextStackAttributeConverter</class>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.ContextStackJsonAttributeConverter</class>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.InstantAttributeConverter</class>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.LevelAttributeConverter</class>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.MarkerAttributeConverter</class>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.MessageAttributeConverter</class>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.StackTraceElementAttributeConverter</class>
-    <class>org.apache.logging.log4j.core.appender.db.jpa.converter.ThrowableAttributeConverter</class>
-    <exclude-unlisted-classes>false</exclude-unlisted-classes>
-    <shared-cache-mode>NONE</shared-cache-mode>
-    <properties>
-      <property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/>
-      <property name="javax.persistence.jdbc.url" value="jdbc:h2:mem:Log4j;MODE=PostgreSQL"/>
-      <property name="javax.persistence.jdbc.user" value="sa"/>
-      <property name="javax.persistence.jdbc.password" value=""/>
-      <!--
-        Until the issue in https://github.com/eclipse-ee4j/eclipselink/issues/1393
-        we run in PostgreSQL compatibility mode.
-       -->
-      <property name="eclipselink.target-database" value="PostgreSQL"/>
-      <!--<property name="eclipselink.logging.level" value="FINE"/>
-      <property name="eclipselink.logging.level.sql" value="FINE"/>
-      <property name="eclipselink.logging.parameters" value="true"/> uncomment to troubleshoot SQL-->
-    </properties>
-  </persistence-unit>
-
-</persistence>
diff --git a/log4j-perf/src/main/resources/log4j2-jpa-appender.xml b/log4j-perf/src/main/resources/log4j2-jpa-appender.xml
deleted file mode 100644
index 90fae76825..0000000000
--- a/log4j-perf/src/main/resources/log4j2-jpa-appender.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<Configuration status="OFF">
-
-  <Appenders>
-    <Console name="STDOUT">
-      <PatternLayout pattern="%C{1.} %m %level MDC%X%n"/>
-    </Console>
-    <Jpa name="H2Appender" persistenceUnitName="h2JpaAppenderTestUnit"
-         entityClassName="org.apache.logging.log4j.perf.jmh.jpa.TestBasicEntity" ignoreExceptions="false" />
-    <Jpa name="HSQLDBAppender" persistenceUnitName="hyperSqlJpaAppenderTestUnit"
-         entityClassName="org.apache.logging.log4j.perf.jmh.jpa.TestBasicEntity" ignoreExceptions="false" />
-  </Appenders>
-
-  <Loggers>
-    <Logger name="H2Logger" level="debug" additivity="false">
-      <AppenderRef ref="H2Appender" />
-    </Logger>
-    <Logger name="HSQLDBLogger" level="debug" additivity="false">
-      <AppenderRef ref="HSQLDBAppender" />
-    </Logger>
-
-    <Root level="fatal">
-      <AppenderRef ref="STDOUT"/>
-    </Root>
-  </Loggers>
-
-</Configuration>
diff --git a/log4j-taglib/pom.xml b/log4j-taglib/pom.xml
deleted file mode 100644
index b416e52a94..0000000000
--- a/log4j-taglib/pom.xml
+++ /dev/null
@@ -1,108 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <parent>
-    <groupId>org.apache.logging.log4j</groupId>
-    <artifactId>log4j</artifactId>
-    <version>${revision}</version>
-    <relativePath>../log4j-parent</relativePath>
-  </parent>
-
-  <artifactId>log4j-taglib</artifactId>
-  <packaging>jar</packaging>
-  <name>Apache Log4j Tag Library</name>
-  <description>The Apache Log4j Tag Library for Web Applications</description>
-  <properties>
-    <log4jParentDir>${basedir}/..</log4jParentDir>
-    <docLabel>Log4j Tag Library Documentation</docLabel>
-    <projectDir>/taglib</projectDir>
-
-    <!--
-      ~ OSGi and JPMS options
-      -->
-    <bnd-extra-module-options>
-      <!-- Correct module names -->
-      javax.servlet.api;substitute="javax.servlet-api",
-      javax.servlet.jsp.api;substitute="javax.servlet.jsp-api"
-    </bnd-extra-module-options>
-    <Fragment-Host>org.apache.logging.log4j.core</Fragment-Host>
-  </properties>
-  <dependencies>
-    <dependency>
-      <groupId>javax.servlet</groupId>
-      <artifactId>javax.servlet-api</artifactId>
-      <scope>provided</scope>
-    </dependency>
-    <dependency>
-      <groupId>javax.servlet.jsp</groupId>
-      <artifactId>javax.servlet.jsp-api</artifactId>
-      <scope>provided</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-api</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-web</artifactId>
-      <optional>true</optional>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-core-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>commons-logging</groupId>
-      <artifactId>commons-logging</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.hamcrest</groupId>
-      <artifactId>hamcrest</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.junit.jupiter</groupId>
-      <artifactId>junit-jupiter-engine</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.junit.vintage</groupId>
-      <artifactId>junit-vintage-engine</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.springframework</groupId>
-      <artifactId>spring-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <configuration>
-          <forkCount>1</forkCount>
-          <reuseForks>true</reuseForks>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
-</project>
diff --git a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/CatchingTag.java b/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/CatchingTag.java
deleted file mode 100644
index 67fb2d85f2..0000000000
--- a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/CatchingTag.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.taglib;
-
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.tagext.Tag;
-
-import org.apache.logging.log4j.Level;
-
-/**
- * This class implements the {@code <log:catching>} tag.
- *
- * @since 2.0
- */
-public class CatchingTag extends ExceptionAwareTagSupport {
-    private static final long serialVersionUID = 1L;
-
-    private static final String FQCN = CatchingTag.class.getName();
-
-    private Level level;
-
-    @Override
-    protected void init() {
-        super.init();
-        this.level = null;
-    }
-
-    public void setLevel(final Object level) {
-        this.level = TagUtils.resolveLevel(level);
-    }
-
-    @Override
-    public int doEndTag() throws JspException {
-        final Log4jTaglibLogger logger = this.getLogger();
-
-        if (this.level == null) {
-            logger.catching(FQCN, Level.ERROR, this.getException());
-        } else {
-            logger.catching(FQCN, this.level, this.getException());
-        }
-
-        return Tag.EVAL_PAGE;
-    }
-}
diff --git a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/DebugTag.java b/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/DebugTag.java
deleted file mode 100644
index e76b090a59..0000000000
--- a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/DebugTag.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.taglib;
-
-import org.apache.logging.log4j.Level;
-
-/**
- * This class implements the {@code <log:debug>} tag.
- *
- * @since 2.0
- */
-public class DebugTag extends LoggingMessageTagSupport {
-    private static final long serialVersionUID = 1L;
-
-    @Override
-    protected Level getLevel() {
-        return Level.DEBUG;
-    }
-}
diff --git a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/DumpTag.java b/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/DumpTag.java
deleted file mode 100644
index c8f4469b8d..0000000000
--- a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/DumpTag.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.taglib;
-
-import java.io.IOException;
-import java.util.Enumeration;
-
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.PageContext;
-import javax.servlet.jsp.tagext.Tag;
-import javax.servlet.jsp.tagext.TagSupport;
-
-/**
- * This class implements the {@code <log:dump>} tag.
- *
- * @since 2.0
- */
-public class DumpTag extends TagSupport {
-    private static final long serialVersionUID = 1L;
-
-    private int scope;
-
-    public DumpTag() {
-        super();
-        init();
-    }
-
-    @Override
-    public void release() {
-        super.release();
-        this.init();
-    }
-
-    private void init() {
-        this.scope = PageContext.PAGE_SCOPE;
-    }
-
-    public void setScope(final String scope) {
-        this.scope = TagUtils.getScope(scope);
-    }
-
-    @Override
-    public int doEndTag() throws JspException {
-        try {
-            final Enumeration<String> names = this.pageContext.getAttributeNamesInScope(this.scope);
-            this.pageContext.getOut().write("<dl>");
-            while (names != null && names.hasMoreElements()) {
-                final String name = names.nextElement();
-                final Object value = this.pageContext.getAttribute(name, this.scope);
-
-                this.pageContext.getOut().write("<dt><code>" + name + "</code></dt>");
-                this.pageContext.getOut().write("<dd><code>" + value + "</code></dd>");
-            }
-            this.pageContext.getOut().write("</dl>");
-        } catch (final IOException e) {
-            throw new JspException("Could not write scope contents. Cause:  " + e.toString(), e);
-        }
-
-        return Tag.EVAL_PAGE;
-    }
-}
diff --git a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/EntryTag.java b/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/EntryTag.java
deleted file mode 100644
index e24c3f09ec..0000000000
--- a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/EntryTag.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.taglib;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.tagext.DynamicAttributes;
-import javax.servlet.jsp.tagext.Tag;
-
-import org.apache.logging.log4j.Level;
-
-/**
- * This class implements the {@code <log:entry>} tag.
- *
- * @since 2.0
- */
-public class EntryTag extends LoggerAwareTagSupport implements DynamicAttributes {
-    private static final long serialVersionUID = 1L;
-
-    private static final String FQCN = EntryTag.class.getName();
-
-    private List<Object> attributes;
-
-    @Override
-    protected void init() {
-        super.init();
-        if (this.attributes == null) {
-            this.attributes = new ArrayList<>();
-        } else {
-            this.attributes.clear();
-        }
-    }
-
-    @Override
-    public void setDynamicAttribute(final String uri, final String name, final Object value) {
-        this.attributes.add(value);
-    }
-
-    @Override
-    public int doEndTag() throws JspException {
-        final Log4jTaglibLogger logger = this.getLogger();
-
-        if (TagUtils.isEnabled(logger, Level.TRACE, null)) {
-            if (this.attributes.size() == 0) {
-                logger.entry(FQCN);
-            } else {
-                logger.entry(FQCN, this.attributes.toArray());
-            }
-        }
-
-        return Tag.EVAL_PAGE;
-    }
-}
diff --git a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/ErrorTag.java b/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/ErrorTag.java
deleted file mode 100644
index 17df3bb6c7..0000000000
--- a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/ErrorTag.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.taglib;
-
-import org.apache.logging.log4j.Level;
-
-/**
- * This class implements the {@code <log:error>} tag.
- *
- * @since 2.0
- */
-public class ErrorTag extends LoggingMessageTagSupport {
-    private static final long serialVersionUID = 1L;
-
-    @Override
-    protected Level getLevel() {
-        return Level.ERROR;
-    }
-}
diff --git a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/ExceptionAwareTagSupport.java b/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/ExceptionAwareTagSupport.java
deleted file mode 100644
index 7935ac3d81..0000000000
--- a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/ExceptionAwareTagSupport.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.taglib;
-
-/**
- * Implements common methods for all logging tags that accept exceptions.
- *
- * @since 2.0
- */
-abstract class ExceptionAwareTagSupport extends LoggerAwareTagSupport {
-    private static final long serialVersionUID = 1L;
-
-    private Throwable exception;
-
-    @Override
-    protected void init() {
-        super.init();
-        this.exception = null;
-    }
-
-    protected final Throwable getException() {
-        return this.exception;
-    }
-
-    public final void setException(final Throwable exception) {
-        this.exception = exception;
-    }
-}
diff --git a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/ExitTag.java b/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/ExitTag.java
deleted file mode 100644
index e9df367096..0000000000
--- a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/ExitTag.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.taglib;
-
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.tagext.Tag;
-
-import org.apache.logging.log4j.Level;
-
-/**
- * This class implements the {@code <log:exit>} tag.
- *
- * @since 2.0
- */
-public class ExitTag extends LoggerAwareTagSupport {
-    private static final long serialVersionUID = 1L;
-
-    private static final String FQCN = ExitTag.class.getName();
-
-    private transient Object result;
-
-    @Override
-    protected void init() {
-        super.init();
-        this.result = null;
-    }
-
-    public void setResult(final Object result) {
-        this.result = result;
-    }
-
-    @Override
-    public int doEndTag() throws JspException {
-        final Log4jTaglibLogger logger = this.getLogger();
-
-        if (TagUtils.isEnabled(logger, Level.TRACE, null)) {
-            if (this.result == null) {
-                logger.exit(FQCN, null);
-            } else {
-                logger.exit(FQCN, this.result);
-            }
-        }
-
-        return Tag.EVAL_PAGE;
-    }
-}
diff --git a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/FatalTag.java b/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/FatalTag.java
deleted file mode 100644
index 9bb15f9515..0000000000
--- a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/FatalTag.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.taglib;
-
-import org.apache.logging.log4j.Level;
-
-/**
- * This class implements the {@code <log:fatal>} tag.
- *
- * @since 2.0
- */
-public class FatalTag extends LoggingMessageTagSupport {
-    private static final long serialVersionUID = 1L;
-
-    @Override
-    protected Level getLevel() {
-        return Level.FATAL;
-    }
-}
diff --git a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/IfEnabledTag.java b/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/IfEnabledTag.java
deleted file mode 100644
index 48375268b8..0000000000
--- a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/IfEnabledTag.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.taglib;
-
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.tagext.Tag;
-
-import org.apache.logging.log4j.Level;
-import org.apache.logging.log4j.Marker;
-
-/**
- * This class implements the {@code <log:ifEnabled>} tag.
- *
- * @since 2.0
- */
-public class IfEnabledTag extends LoggerAwareTagSupport {
-    private static final long serialVersionUID = 1L;
-
-    private transient Object level;
-
-    private Marker marker;
-
-    @Override
-    protected void init() {
-        super.init();
-        this.level = null;
-        this.marker = null;
-    }
-
-    public final void setLevel(final Object level) {
-        this.level = level;
-    }
-
-    public final void setMarker(final Marker marker) {
-        this.marker = marker;
-    }
-
-    @Override
-    public int doStartTag() throws JspException {
-        final Level level = TagUtils.resolveLevel(this.level);
-        if (level == null) {
-            throw new JspException("Level must be of type String or org.apache.logging.log4j.Level.");
-        }
-
-        return TagUtils.isEnabled(this.getLogger(), level, this.marker) ? Tag.EVAL_BODY_INCLUDE : Tag.SKIP_BODY;
-    }
-}
diff --git a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/InfoTag.java b/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/InfoTag.java
deleted file mode 100644
index d7a86321c9..0000000000
--- a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/InfoTag.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.taglib;
-
-import org.apache.logging.log4j.Level;
-
-/**
- * This class implements the {@code <log:info>} tag.
- *
- * @since 2.0
- */
-public class InfoTag extends LoggingMessageTagSupport {
-    private static final long serialVersionUID = 1L;
-
-    @Override
-    protected Level getLevel() {
-        return Level.INFO;
-    }
-}
diff --git a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/Log4jTaglibLogger.java b/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/Log4jTaglibLogger.java
deleted file mode 100644
index e497852c48..0000000000
--- a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/Log4jTaglibLogger.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.taglib;
-
-import org.apache.logging.log4j.Level;
-import org.apache.logging.log4j.message.MessageFactory;
-import org.apache.logging.log4j.spi.ExtendedLogger;
-import org.apache.logging.log4j.spi.ExtendedLoggerWrapper;
-
-/**
- * The bridge between the tag library and the Log4j API ensures that the source information for log events is
- * the JSP Servlet and not one of the taglib classes.
- *
- * @since 2.0
- */
-class Log4jTaglibLogger extends ExtendedLoggerWrapper {
-    private static final long serialVersionUID = 1L;
-
-    public Log4jTaglibLogger(final ExtendedLogger logger, final String name, final MessageFactory messageFactory) {
-        super(logger, name, messageFactory);
-    }
-
-    @Override
-    protected void entry(final String fqcn, final Object... params) {
-        super.entry(fqcn, params);
-    }
-
-    @Override
-    protected <R> R exit(final String fqcn, final R result) {
-        return super.exit(fqcn, result);
-    }
-
-    @Override
-    protected void catching(final String fqcn, final Level level, final Throwable t) {
-        super.catching(fqcn, level, t);
-    }
-
-    @Override
-    protected <T extends Throwable> T throwing(final String fqcn, final Level level, final T t) {
-        return super.throwing(fqcn, level, t);
-    }
-}
diff --git a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/Log4jTaglibLoggerContext.java b/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/Log4jTaglibLoggerContext.java
deleted file mode 100644
index 90792a1658..0000000000
--- a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/Log4jTaglibLoggerContext.java
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.taglib;
-
-import java.util.WeakHashMap;
-
-import javax.servlet.ServletContext;
-
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.message.MessageFactory;
-import org.apache.logging.log4j.spi.AbstractLogger;
-import org.apache.logging.log4j.spi.ExtendedLogger;
-import org.apache.logging.log4j.spi.LoggerContext;
-import org.apache.logging.log4j.spi.LoggerRegistry;
-
-/**
- * This bridge between the tag library and the Log4j API ensures that instances of {@link Log4jTaglibLogger} are
- * appropriately held in memory and not constantly recreated.
- *
- * @since 2.0
- */
-final class Log4jTaglibLoggerContext implements LoggerContext {
-    // These were change to WeakHashMaps to avoid ClassLoader (memory) leak, something that's particularly
-    // important in Servlet containers.
-    private static final WeakHashMap<ServletContext, Log4jTaglibLoggerContext> CONTEXTS = new WeakHashMap<>();
-
-    private final LoggerRegistry<Log4jTaglibLogger> loggerRegistry = new LoggerRegistry<>(
-            new LoggerRegistry.WeakMapFactory<Log4jTaglibLogger>());
-
-    private final ServletContext servletContext;
-
-    private Log4jTaglibLoggerContext(final ServletContext servletContext) {
-        this.servletContext = servletContext;
-    }
-
-    @Override
-    public Object getExternalContext() {
-        return this.servletContext;
-    }
-
-    @Override
-    public Log4jTaglibLogger getLogger(final String name) {
-        return this.getLogger(name, null);
-    }
-
-    @Override
-    public Log4jTaglibLogger getLogger(final String name, final MessageFactory messageFactory) {
-        // Note: This is the only method where we add entries to the 'loggerRegistry' ivar.
-        Log4jTaglibLogger logger = this.loggerRegistry.getLogger(name, messageFactory);
-        if (logger != null) {
-            AbstractLogger.checkMessageFactory(logger, messageFactory);
-            return logger;
-        }
-
-        synchronized (this.loggerRegistry) {
-            logger = this.loggerRegistry.getLogger(name, messageFactory);
-            if (logger == null) {
-                final LoggerContext context = LogManager.getContext(false);
-                final ExtendedLogger original = messageFactory == null ?
-                        context.getLogger(name) : context.getLogger(name, messageFactory);
-                // wrap a logger from an underlying implementation
-                logger = new Log4jTaglibLogger(original, name, original.getMessageFactory());
-                this.loggerRegistry.putIfAbsent(name, messageFactory, logger);
-            }
-        }
-
-        return logger;
-    }
-
-    @Override
-    public boolean hasLogger(final String name) {
-        return loggerRegistry.hasLogger(name);
-    }
-
-    @Override
-    public boolean hasLogger(final String name, final MessageFactory messageFactory) {
-        return loggerRegistry.hasLogger(name, messageFactory);
-    }
-
-    @Override
-    public boolean hasLogger(final String name, final Class<? extends MessageFactory> messageFactoryClass) {
-        return loggerRegistry.hasLogger(name, messageFactoryClass);
-    }
-
-    static synchronized Log4jTaglibLoggerContext getInstance(final ServletContext servletContext) {
-        Log4jTaglibLoggerContext loggerContext = CONTEXTS.get(servletContext);
-        if (loggerContext != null) {
-            return loggerContext;
-        }
-
-        synchronized (CONTEXTS) {
-            loggerContext = CONTEXTS.get(servletContext);
-            if (loggerContext == null) {
-                loggerContext = new Log4jTaglibLoggerContext(servletContext);
-                CONTEXTS.put(servletContext, loggerContext);
-            }
-        }
-
-        return loggerContext;
-    }
-}
diff --git a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/LogTag.java b/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/LogTag.java
deleted file mode 100644
index 1de46e8431..0000000000
--- a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/LogTag.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.taglib;
-
-import org.apache.logging.log4j.Level;
-
-/**
- * This class implements the {@code <log:log>} tag.
- *
- * @since 2.0
- */
-public class LogTag extends LoggingMessageTagSupport {
-    private static final long serialVersionUID = 1L;
-
-    private Level level;
-
-    @Override
-    protected void init() {
-        super.init();
-        this.level = null;
-    }
-
-    @Override
-    protected Level getLevel() {
-        return this.level;
-    }
-
-    public void setLevel(final Object level) {
-        this.level = TagUtils.resolveLevel(level);
-    }
-}
diff --git a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/LoggerAwareTagSupport.java b/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/LoggerAwareTagSupport.java
deleted file mode 100644
index 6446a3a347..0000000000
--- a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/LoggerAwareTagSupport.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.taglib;
-
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.PageContext;
-import javax.servlet.jsp.tagext.BodyTagSupport;
-
-/**
- * An abstract class for all tags that are logger-aware.
- *
- * @since 2.0
- */
-abstract class LoggerAwareTagSupport extends BodyTagSupport {
-    private static final long serialVersionUID = 1L;
-
-    private transient Log4jTaglibLoggerContext loggerContext;
-
-    private transient Object logger;
-
-    protected LoggerAwareTagSupport() {
-        this.init();
-    }
-
-    protected void init() {
-        this.logger = null;
-    }
-
-    @Override
-    public final void release() {
-        super.release();
-        this.init();
-    }
-
-    @Override
-    public final void setPageContext(final PageContext pageContext) {
-        super.setPageContext(pageContext);
-        this.loggerContext = Log4jTaglibLoggerContext.getInstance(pageContext.getServletContext());
-    }
-
-    protected final Log4jTaglibLogger getLogger() throws JspException {
-        if (this.logger != null) {
-            return TagUtils.resolveLogger(this.loggerContext, this.logger, null);
-        }
-        Log4jTaglibLogger logger = TagUtils.getDefaultLogger(this.pageContext);
-        if (logger == null) {
-            final String name = this.pageContext.getPage().getClass().getName();
-            logger = TagUtils.resolveLogger(this.loggerContext, name, null);
-            TagUtils.setDefaultLogger(this.pageContext, logger);
-        }
-        return logger;
-    }
-
-    public final void setLogger(final Object logger) {
-        this.logger = logger;
-    }
-}
diff --git a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/LoggingMessageTagSupport.java b/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/LoggingMessageTagSupport.java
deleted file mode 100644
index 8703d4227a..0000000000
--- a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/LoggingMessageTagSupport.java
+++ /dev/null
@@ -1,119 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.taglib;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.tagext.BodyTag;
-import javax.servlet.jsp.tagext.DynamicAttributes;
-import javax.servlet.jsp.tagext.Tag;
-
-import org.apache.logging.log4j.Level;
-import org.apache.logging.log4j.Marker;
-import org.apache.logging.log4j.message.Message;
-
-/**
- * Implements common methods for logging tags that accept messages and markers.
- *
- * @since 2.0
- */
-abstract class LoggingMessageTagSupport extends ExceptionAwareTagSupport implements DynamicAttributes {
-    private static final long serialVersionUID = 1L;
-
-    private static final String FQCN = LoggingMessageTagSupport.class.getName();
-
-    private transient Object message;
-
-    private Marker marker;
-
-    private List<Object> attributes;
-
-    @Override
-    protected void init() {
-        super.init();
-        this.message = null;
-        this.marker = null;
-        if (this.attributes == null) {
-            this.attributes = new ArrayList<>();
-        } else {
-            this.attributes.clear();
-        }
-    }
-
-    protected final Object getMessage() throws JspException {
-        if (this.message == null) {
-            if (this.getBodyContent() == null) {
-                throw new JspException("Either message attribute or body content must be specified.");
-            }
-            return this.getBodyContent().getString();
-        }
-        return this.message;
-    }
-
-    public final void setMessage(final Object message) {
-        this.message = message;
-    }
-
-    protected final Marker getMarker() {
-        return this.marker;
-    }
-
-    public final void setMarker(final Marker marker) {
-        this.marker = marker;
-    }
-
-    protected abstract Level getLevel();
-
-    @Override
-    public final void setDynamicAttribute(final String uri, final String name, final Object value) {
-        this.attributes.add(value);
-    }
-
-    @Override
-    public final int doStartTag() {
-        return BodyTag.EVAL_BODY_BUFFERED;
-    }
-
-    @Override
-    public final int doEndTag() throws JspException {
-        final Log4jTaglibLogger logger = this.getLogger();
-        final Level level = this.getLevel();
-        final Marker marker = this.getMarker();
-
-        if (TagUtils.isEnabled(logger, level, marker)) {
-            final Object message = this.getMessage();
-            final Throwable exception = this.getException();
-            if (message instanceof Message) {
-                logger.logIfEnabled(FQCN, level, marker, (Message) message, exception);
-            } else if (message instanceof String) {
-                Message data;
-                if (this.attributes.size() > 0) {
-                    data = logger.getMessageFactory().newMessage((String) message, this.attributes.toArray());
-                } else {
-                    data = logger.getMessageFactory().newMessage((String) message);
-                }
-                logger.logIfEnabled(FQCN, level, marker, data, exception);
-            } else {
-                logger.logIfEnabled(FQCN, level, marker, logger.getMessageFactory().newMessage(message), exception);
-            }
-        }
-
-        return Tag.EVAL_PAGE;
-    }
-}
diff --git a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/SetLoggerTag.java b/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/SetLoggerTag.java
deleted file mode 100644
index f4565343e0..0000000000
--- a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/SetLoggerTag.java
+++ /dev/null
@@ -1,95 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.taglib;
-
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.PageContext;
-import javax.servlet.jsp.tagext.BodyTagSupport;
-import javax.servlet.jsp.tagext.Tag;
-
-import org.apache.logging.log4j.message.MessageFactory;
-
-/**
- * This class implements the {@code <log:setLogger>} tag.
- *
- * @since 2.0
- */
-public class SetLoggerTag extends BodyTagSupport {
-    private static final long serialVersionUID = 1L;
-
-    private transient Log4jTaglibLoggerContext loggerContext;
-
-    private transient Object logger;
-
-    private transient MessageFactory factory;
-
-    private String var;
-
-    private int scope;
-
-    public SetLoggerTag() {
-        super();
-        init();
-    }
-
-    private void init() {
-        this.logger = null;
-        this.var = null;
-        this.scope = PageContext.PAGE_SCOPE;
-    }
-
-    @Override
-    public void release() {
-        super.release();
-        this.init();
-    }
-
-    @Override
-    public void setPageContext(final PageContext pageContext) {
-        super.setPageContext(pageContext);
-        this.loggerContext = Log4jTaglibLoggerContext.getInstance(pageContext.getServletContext());
-    }
-
-    public void setLogger(final Object logger) {
-        this.logger = logger;
-    }
-
-    public void setFactory(final MessageFactory factory) {
-        this.factory = factory;
-    }
-
-    public void setVar(final String var) {
-        this.var = var;
-    }
-
-    public void setScope(final String scope) {
-        this.scope = TagUtils.getScope(scope);
-    }
-
-    @Override
-    public int doEndTag() throws JspException {
-        final Log4jTaglibLogger logger = TagUtils.resolveLogger(this.loggerContext, this.logger, this.factory);
-
-        if (this.var != null) {
-            this.pageContext.setAttribute(this.var, logger, this.scope);
-        } else {
-            TagUtils.setDefaultLogger(this.pageContext, logger);
-        }
-
-        return Tag.EVAL_PAGE;
-    }
-}
diff --git a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/TagUtils.java b/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/TagUtils.java
deleted file mode 100644
index 65d74fb72b..0000000000
--- a/log4j-taglib/src/main/java/org/apache/logging/log4j/taglib/TagUtils.java
+++ /dev/null
@@ -1,120 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.taglib;
-
-import java.util.HashSet;
-import java.util.Set;
-
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.PageContext;
-
-import org.apache.logging.log4j.Level;
-import org.apache.logging.log4j.Logger;
-import org.apache.logging.log4j.LoggingException;
-import org.apache.logging.log4j.Marker;
-import org.apache.logging.log4j.message.MessageFactory;
-import org.apache.logging.log4j.spi.AbstractLogger;
-import org.apache.logging.log4j.status.StatusLogger;
-
-/**
- * Provides support for logging tags.
- *
- * @since 2.0
- */
-final class TagUtils {
-    private static final StatusLogger LOGGER = StatusLogger.getLogger();
-
-    private static final Set<Object> WARNED_FOR = new HashSet<>();
-
-    private static final String LOGGER_SCOPE_ATTRIBUTE = "org.apache.logging.log4j.taglib.LOGGER_SCOPE_ATTRIBUTE";
-
-    private TagUtils() {
-        throw new RuntimeException("TagUtils cannot be instantiated.");
-    }
-
-    static int getScope(final String scope) {
-        if ("request".equalsIgnoreCase(scope)) {
-            return PageContext.REQUEST_SCOPE;
-        }
-        if ("session".equalsIgnoreCase(scope)) {
-            return PageContext.SESSION_SCOPE;
-        }
-        if ("application".equalsIgnoreCase(scope)) {
-            return PageContext.APPLICATION_SCOPE;
-        }
-        return PageContext.PAGE_SCOPE;
-    }
-
-    static Level resolveLevel(final Object level) {
-        if (level instanceof Level) {
-            return (Level) level;
-        }
-        if (level instanceof String) {
-            return Level.toLevel((String) level);
-        }
-        return null;
-    }
-
-    static Log4jTaglibLogger resolveLogger(final Log4jTaglibLoggerContext context, final Object logger,
-                                           final MessageFactory factory) throws JspException {
-        if (logger instanceof Logger) {
-            if (logger instanceof Log4jTaglibLogger) {
-                return (Log4jTaglibLogger) logger;
-            }
-            if (logger instanceof AbstractLogger) {
-                if (LOGGER.isInfoEnabled() && !WARNED_FOR.contains(logger)) {
-                    LOGGER.info("Constructing new Log4jTaglibLogger from AbstractLogger {} name and message factory.",
-                            logger.getClass().getName());
-                    WARNED_FOR.add(logger);
... 6846 lines suppressed ...


(logging-log4j2) 02/06: Delete SMTP appender (#1966)

Posted by vy...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vy pushed a commit to branch jee-deletion
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit e048823825e859d4b46787976b9c6b7abc7e764b
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Mon Nov 20 12:10:02 2023 +0100

    Delete SMTP appender (#1966)
---
 .../log4j/jul/test/Log4jBridgeHandlerTest.java     |   1 -
 .../src/test/resources/logging-test.properties     |   2 -
 log4j-parent/pom.xml                               |  13 -
 log4j-smtp/pom.xml                                 | 119 ------
 .../logging/log4j/smtp/MimeMessageBuilder.java     |  93 -----
 .../logging/log4j/smtp/appender/SmtpAppender.java  | 276 --------------
 .../logging/log4j/smtp/appender/SmtpManager.java   | 398 ---------------------
 .../logging/log4j/smtp/appender/package-info.java  |  22 --
 .../apache/logging/log4j/smtp/package-info.java    |  22 --
 .../logging/dumbster/smtp/SimpleSmtpServer.java    | 279 ---------------
 .../logging/dumbster/smtp/SmtpActionType.java      | 202 -----------
 .../apache/logging/dumbster/smtp/SmtpMessage.java  | 154 --------
 .../apache/logging/dumbster/smtp/SmtpRequest.java  | 231 ------------
 .../apache/logging/dumbster/smtp/SmtpResponse.java |  75 ----
 .../apache/logging/dumbster/smtp/SmtpState.java    | 121 -------
 .../org/apache/logging/dumbster/smtp/readme.txt    |   4 -
 .../log4j/smtp/appender/SmtpAppenderAsyncTest.java |  98 -----
 .../log4j/smtp/appender/SmtpAppenderTest.java      | 180 ----------
 .../log4j/smtp/appender/SmtpManagerTest.java       |  86 -----
 .../src/test/resources/SmtpAppenderAsyncTest.xml   |  42 ---
 pom.xml                                            |   7 -
 src/site/asciidoc/runtime-dependencies.adoc        |   3 -
 22 files changed, 2428 deletions(-)

diff --git a/log4j-jul/src/test/java/org/apache/logging/log4j/jul/test/Log4jBridgeHandlerTest.java b/log4j-jul/src/test/java/org/apache/logging/log4j/jul/test/Log4jBridgeHandlerTest.java
index 652362ffc9..6ecad4ee37 100644
--- a/log4j-jul/src/test/java/org/apache/logging/log4j/jul/test/Log4jBridgeHandlerTest.java
+++ b/log4j-jul/src/test/java/org/apache/logging/log4j/jul/test/Log4jBridgeHandlerTest.java
@@ -290,7 +290,6 @@ public class Log4jBridgeHandlerTest {
         assertLogLevel("log4j.Log4jBridgeHandlerTest.propagate2.nested.deeplyNested", java.util.logging.Level.INFO);
         // these are set in logging.properties but not in log4j2.xml:
         assertLogLevel("log4j.Log4jBridgeHandlerTest.propagate2.nested", null);
-        assertLogLevel("javax.mail", null);
         // these should not exist:
         assertLogLevel("log4j.Log4jBridgeHandlerTest", null);
         assertLogLevel("log4j.Log4jBridgeHandlerTest.propagate1.nested", null);
diff --git a/log4j-jul/src/test/resources/logging-test.properties b/log4j-jul/src/test/resources/logging-test.properties
index 9a0a4756c7..169e8b2aa4 100644
--- a/log4j-jul/src/test/resources/logging-test.properties
+++ b/log4j-jul/src/test/resources/logging-test.properties
@@ -38,8 +38,6 @@ java.util.logging.SimpleFormatter.format = JUL:  %1$tT.%1$tL %4$s [%3$s: %2$s]
 # out-comment to use default of "INFO" - will be set by level propagation to DEBUG=FINE again
 #.level = FINE
 org.apache.logging.log4j.jul.Log4jBridgeHandlerTest.level = FINER
-# do not log mail-init. (is done on INFO-level) because this would init. JUL before setErr() happens
-javax.mail.level = WARNING
 
 # configure (initial) JUL levels differently to log4j-config (and use high levels here)
 log4j.Log4jBridgeHandlerTest.propagate1.nested1.level = SEVERE
diff --git a/log4j-parent/pom.xml b/log4j-parent/pom.xml
index 61a4feedfd..01f0016352 100644
--- a/log4j-parent/pom.xml
+++ b/log4j-parent/pom.xml
@@ -136,7 +136,6 @@
     <javax-activation.version>1.2.0</javax-activation.version>
     <javax-inject.version>1</javax-inject.version>
     <javax-jaxb.version>2.3.1</javax-jaxb.version>
-    <javax-mail.version>1.6.2</javax-mail.version>
     <javax-persistence.version>2.2</javax-persistence.version>
     <javax-servlet.version>4.0.1</javax-servlet.version>
     <javax-servlet-jsp.version>2.3.3</javax-servlet-jsp.version>
@@ -706,18 +705,6 @@
         <version>${javax-inject.version}</version>
       </dependency>
 
-      <dependency>
-        <groupId>com.sun.mail</groupId>
-        <artifactId>javax.mail</artifactId>
-        <version>${javax-mail.version}</version>
-      </dependency>
-
-      <dependency>
-        <groupId>javax.mail</groupId>
-        <artifactId>javax.mail-api</artifactId>
-        <version>${javax-mail.version}</version>
-      </dependency>
-
       <dependency>
         <groupId>javax.persistence</groupId>
         <artifactId>javax.persistence-api</artifactId>
diff --git a/log4j-smtp/pom.xml b/log4j-smtp/pom.xml
deleted file mode 100644
index 703773f06f..0000000000
--- a/log4j-smtp/pom.xml
+++ /dev/null
@@ -1,119 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <parent>
-    <groupId>org.apache.logging.log4j</groupId>
-    <artifactId>log4j</artifactId>
-    <version>${revision}</version>
-    <relativePath>../log4j-parent</relativePath>
-  </parent>
-
-  <artifactId>log4j-smtp</artifactId>
-  <name>Apache Log4j SMTP</name>
-  <description>Apache Log4j Simple Mail Transfer Protocol (SMTP) Appender.</description>
-  <properties>
-    <log4jParentDir>${basedir}/..</log4jParentDir>
-    <docLabel>Log4j SMTP Appender Documentation</docLabel>
-    <projectDir>/log4j-smtp</projectDir>
-
-    <!--
-      ~ OSGi and JPMS options
-      -->
-    <bnd-extra-module-options>
-      <!-- Filebased module names must be `static` -->
-      javax.mail.api;substitute="javax.mail-api";static=true;transitive=false
-    </bnd-extra-module-options>
-  </properties>
-
-  <dependencies>
-    <!-- Required for SMTPAppender -->
-    <dependency>
-      <groupId>javax.activation</groupId>
-      <artifactId>javax.activation-api</artifactId>
-      <scope>provided</scope>
-    </dependency>
-    <dependency>
-      <groupId>javax.mail</groupId>
-      <artifactId>javax.mail-api</artifactId>
-      <scope>provided</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-core</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>com.sun.activation</groupId>
-      <artifactId>javax.activation</artifactId>
-      <scope>runtime</scope>
-    </dependency>
-    <dependency>
-      <groupId>com.sun.mail</groupId>
-      <artifactId>javax.mail</artifactId>
-      <scope>runtime</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-api-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-core-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>com.lmax</groupId>
-      <artifactId>disruptor</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.hamcrest</groupId>
-      <artifactId>hamcrest</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.junit.jupiter</groupId>
-      <artifactId>junit-jupiter-engine</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.junit.vintage</groupId>
-      <artifactId>junit-vintage-engine</artifactId>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <annotationProcessorPaths combine.children="append">
-            <path>
-              <groupId>org.apache.logging.log4j</groupId>
-              <artifactId>log4j-plugin-processor</artifactId>
-              <version>${project.version}</version>
-            </path>
-          </annotationProcessorPaths>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
-</project>
diff --git a/log4j-smtp/src/main/java/org/apache/logging/log4j/smtp/MimeMessageBuilder.java b/log4j-smtp/src/main/java/org/apache/logging/log4j/smtp/MimeMessageBuilder.java
deleted file mode 100644
index b6c935e4cc..0000000000
--- a/log4j-smtp/src/main/java/org/apache/logging/log4j/smtp/MimeMessageBuilder.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.smtp;
-
-import java.nio.charset.StandardCharsets;
-
-import javax.mail.Message;
-import javax.mail.MessagingException;
-import javax.mail.Session;
-import javax.mail.internet.AddressException;
-import javax.mail.internet.InternetAddress;
-import javax.mail.internet.MimeMessage;
-
-import org.apache.logging.log4j.plugins.util.Builder;
-
-/**
- * Builder for {@link MimeMessage} instances.
- */
-public class MimeMessageBuilder implements Builder<MimeMessage> {
-    private final MimeMessage message;
-
-    public MimeMessageBuilder(final Session session) {
-        message = new MimeMessage(session);
-    }
-
-    public MimeMessageBuilder setFrom(final String from) throws MessagingException {
-        final InternetAddress address = parseAddress(from);
-
-        if (null != address) {
-            message.setFrom(address);
-        } else {
-            try {
-                message.setFrom();
-            } catch (final Exception ex) {
-                message.setFrom((InternetAddress) null);
-            }
-        }
-        return this;
-    }
-
-    public MimeMessageBuilder setReplyTo(final String replyTo) throws MessagingException {
-        final InternetAddress[] addresses = parseAddresses(replyTo);
-
-        if (null != addresses) {
-            message.setReplyTo(addresses);
-        }
-        return this;
-    }
-
-    public MimeMessageBuilder setRecipients(final Message.RecipientType recipientType, final String recipients)
-        throws MessagingException {
-        final InternetAddress[] addresses = parseAddresses(recipients);
-
-        if (null != addresses) {
-            message.setRecipients(recipientType, addresses);
-        }
-        return this;
-    }
-
-    public MimeMessageBuilder setSubject(final String subject) throws MessagingException {
-        if (subject != null) {
-            message.setSubject(subject, StandardCharsets.UTF_8.name());
-        }
-        return this;
-    }
-
-    @Override
-    public MimeMessage build() {
-        return message;
-    }
-
-    private static InternetAddress parseAddress(final String address) throws AddressException {
-        return address == null ? null : new InternetAddress(address);
-    }
-
-    private static InternetAddress[] parseAddresses(final String addresses) throws AddressException {
-        return addresses == null ? null : InternetAddress.parse(addresses, true);
-    }
-}
diff --git a/log4j-smtp/src/main/java/org/apache/logging/log4j/smtp/appender/SmtpAppender.java b/log4j-smtp/src/main/java/org/apache/logging/log4j/smtp/appender/SmtpAppender.java
deleted file mode 100644
index a96a2f8d45..0000000000
--- a/log4j-smtp/src/main/java/org/apache/logging/log4j/smtp/appender/SmtpAppender.java
+++ /dev/null
@@ -1,276 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.smtp.appender;
-
-import org.apache.logging.log4j.core.Appender;
-import org.apache.logging.log4j.core.Filter;
-import org.apache.logging.log4j.core.Layout;
-import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.core.appender.AbstractAppender;
-import org.apache.logging.log4j.core.config.Property;
-import org.apache.logging.log4j.core.filter.ThresholdFilter;
-import org.apache.logging.log4j.core.layout.HtmlLayout;
-import org.apache.logging.log4j.core.net.ssl.SslConfiguration;
-import org.apache.logging.log4j.plugins.Configurable;
-import org.apache.logging.log4j.plugins.Plugin;
-import org.apache.logging.log4j.plugins.PluginAttribute;
-import org.apache.logging.log4j.plugins.PluginElement;
-import org.apache.logging.log4j.plugins.PluginFactory;
-import org.apache.logging.log4j.plugins.validation.constraints.ValidPort;
-
-/**
- * Send an e-mail when a specific logging event occurs, typically on errors or
- * fatal errors.
- *
- * <p>
- * The number of logging events delivered in this e-mail depend on the value of
- * <b>BufferSize</b> option. The <code>SmtpAppender</code> keeps only the last
- * <code>BufferSize</code> logging events in its cyclic buffer. This keeps
- * memory requirements at a reasonable level while still delivering useful
- * application context.
- *
- * By default, an email message will formatted as HTML. This can be modified by
- * setting a layout for the appender.
- *
- * By default, an email message will be sent when an ERROR or higher severity
- * message is appended. This can be modified by setting a filter for the
- * appender.
- */
-@Configurable(elementType = Appender.ELEMENT_TYPE, printObject = true)
-@Plugin("SMTP")
-public final class SmtpAppender extends AbstractAppender {
-
-    private static final int DEFAULT_BUFFER_SIZE = 512;
-
-    /** The SMTP Manager */
-    private final SmtpManager manager;
-
-    private SmtpAppender(final String name, final Filter filter, final Layout layout, final boolean ignoreExceptions,
-                         Property[] properties, final SmtpManager manager) {
-        super(name, filter, layout, ignoreExceptions, properties);
-        this.manager = manager;
-    }
-
-    /**
-     * @since 2.13.2
-     */
-    public static class Builder extends AbstractAppender.Builder<Builder>
-            implements org.apache.logging.log4j.plugins.util.Builder<SmtpAppender> {
-        @PluginAttribute
-        private String to;
-
-        @PluginAttribute
-        private String cc;
-
-        @PluginAttribute
-        private String bcc;
-
-        @PluginAttribute
-        private String from;
-
-        @PluginAttribute
-        private String replyTo;
-
-        @PluginAttribute
-        private String subject;
-
-        @PluginAttribute
-        private String smtpProtocol = "smtp";
-
-        @PluginAttribute
-        private String smtpHost;
-
-        @PluginAttribute
-        @ValidPort
-        private int smtpPort;
-
-        @PluginAttribute
-        private String smtpUsername;
-
-        @PluginAttribute(sensitive = true)
-        private String smtpPassword;
-
-        @PluginAttribute
-        private boolean smtpDebug;
-
-        @PluginAttribute
-        private int bufferSize = DEFAULT_BUFFER_SIZE;
-
-        @PluginElement("SSL")
-        private SslConfiguration sslConfiguration;
-
-        /**
-         * Comma-separated list of recipient email addresses.
-         */
-        public Builder setTo(final String to) {
-            this.to = to;
-            return this;
-        }
-
-        /**
-         * Comma-separated list of CC email addresses.
-         */
-        public Builder setCc(final String cc) {
-            this.cc = cc;
-            return this;
-        }
-
-        /**
-         * Comma-separated list of BCC email addresses.
-         */
-        public Builder setBcc(final String bcc) {
-            this.bcc = bcc;
-            return this;
-        }
-
-        /**
-         * Email address of the sender.
-         */
-        public Builder setFrom(final String from) {
-            this.from = from;
-            return this;
-        }
-
-        /**
-         * Comma-separated list of Reply-To email addresses.
-         */
-        public Builder setReplyTo(final String replyTo) {
-            this.replyTo = replyTo;
-            return this;
-        }
-
-        /**
-         * Subject template for the email messages.
-         * @see org.apache.logging.log4j.core.layout.PatternLayout
-         */
-        public Builder setSubject(final String subject) {
-            this.subject = subject;
-            return this;
-        }
-
-        /**
-         * Transport protocol to use for SMTP such as "smtp" or "smtps". Defaults to "smtp".
-         */
-        public Builder setSmtpProtocol(final String smtpProtocol) {
-            this.smtpProtocol = smtpProtocol;
-            return this;
-        }
-
-        /**
-         * Host name of SMTP server to send messages through.
-         */
-        public Builder setSmtpHost(final String smtpHost) {
-            this.smtpHost = smtpHost;
-            return this;
-        }
-
-        /**
-         * Port number of SMTP server to send messages through.
-         */
-        public Builder setSmtpPort(final int smtpPort) {
-            this.smtpPort = smtpPort;
-            return this;
-        }
-
-        /**
-         * Username to authenticate with SMTP server.
-         */
-        public Builder setSmtpUsername(final String smtpUsername) {
-            this.smtpUsername = smtpUsername;
-            return this;
-        }
-
-        /**
-         * Password to authenticate with SMTP server.
-         */
-        public Builder setSmtpPassword(final String smtpPassword) {
-            this.smtpPassword = smtpPassword;
-            return this;
-        }
-
-        /**
-         * Enables or disables mail session debugging on STDOUT. Disabled by default.
-         */
-        public Builder setSmtpDebug(final boolean smtpDebug) {
-            this.smtpDebug = smtpDebug;
-            return this;
-        }
-
-        /**
-         * Number of log events to buffer before sending an email. Defaults to {@value #DEFAULT_BUFFER_SIZE}.
-         */
-        public Builder setBufferSize(final int bufferSize) {
-            this.bufferSize = bufferSize;
-            return this;
-        }
-
-        /**
-         * Specifies an SSL configuration for smtps connections.
-         */
-        public Builder setSslConfiguration(final SslConfiguration sslConfiguration) {
-            this.sslConfiguration = sslConfiguration;
-            return this;
-        }
-
-        @Override
-        public SmtpAppender build() {
-            if (getLayout() == null) {
-                setLayout(HtmlLayout.createDefaultLayout());
-            }
-            if (getFilter() == null) {
-                setFilter(ThresholdFilter.createFilter(null, null, null));
-            }
-            final SmtpManager smtpManager = SmtpManager.getSmtpManager(getConfiguration(), to, cc, bcc, from, replyTo,
-                    subject, smtpProtocol, smtpHost, smtpPort, smtpUsername, smtpPassword, smtpDebug,
-                    getFilter().toString(), bufferSize, sslConfiguration);
-            return new SmtpAppender(getName(), getFilter(), getLayout(), isIgnoreExceptions(), getPropertyArray(), smtpManager);
-        }
-    }
-
-    /**
-     * @since 2.13.2
-     */
-    @PluginFactory
-    public static Builder newBuilder() {
-        return new Builder();
-    }
-
-    /**
-     * Capture all events in CyclicBuffer.
-     * @param event The Log event.
-     * @return true if the event should be filtered.
-     */
-    @Override
-    public boolean isFiltered(final LogEvent event) {
-        final boolean filtered = super.isFiltered(event);
-        if (filtered) {
-            manager.add(event);
-        }
-        return filtered;
-    }
-
-    /**
-     * Perform SmtpAppender specific appending actions, mainly adding the event
-     * to a cyclic buffer and checking if the event triggers an e-mail to be
-     * sent.
-     * @param event The Log event.
-     */
-    @Override
-    public void append(final LogEvent event) {
-        manager.sendEvents(getLayout(), event);
-    }
-}
diff --git a/log4j-smtp/src/main/java/org/apache/logging/log4j/smtp/appender/SmtpManager.java b/log4j-smtp/src/main/java/org/apache/logging/log4j/smtp/appender/SmtpManager.java
deleted file mode 100644
index d6182ece7d..0000000000
--- a/log4j-smtp/src/main/java/org/apache/logging/log4j/smtp/appender/SmtpManager.java
+++ /dev/null
@@ -1,398 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.smtp.appender;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.util.Date;
-import java.util.Properties;
-
-import javax.activation.DataSource;
-import javax.mail.Authenticator;
-import javax.mail.Message;
-import javax.mail.MessagingException;
-import javax.mail.PasswordAuthentication;
-import javax.mail.Session;
-import javax.mail.Transport;
-import javax.mail.internet.InternetHeaders;
-import javax.mail.internet.MimeBodyPart;
-import javax.mail.internet.MimeMessage;
-import javax.mail.internet.MimeMultipart;
-import javax.mail.internet.MimeUtility;
-import javax.mail.util.ByteArrayDataSource;
-import javax.net.ssl.SSLSocketFactory;
-
-import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
-import org.apache.logging.log4j.LoggingException;
-import org.apache.logging.log4j.core.Layout;
-import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.core.appender.AbstractManager;
-import org.apache.logging.log4j.core.appender.ManagerFactory;
-import org.apache.logging.log4j.core.config.Configuration;
-import org.apache.logging.log4j.core.layout.AbstractStringLayout.Serializer;
-import org.apache.logging.log4j.core.layout.PatternLayout;
-import org.apache.logging.log4j.core.net.ssl.SslConfiguration;
-import org.apache.logging.log4j.core.util.CyclicBuffer;
-import org.apache.logging.log4j.core.util.NetUtils;
-import org.apache.logging.log4j.smtp.MimeMessageBuilder;
-import org.apache.logging.log4j.util.Strings;
-
-/**
- * Manager for sending SMTP events.
- */
-public class SmtpManager extends AbstractManager {
-    private static final SMTPManagerFactory FACTORY = new SMTPManagerFactory();
-
-    private final Session session;
-
-    private final CyclicBuffer<LogEvent> buffer;
-
-    private volatile MimeMessage message;
-
-    private final FactoryData data;
-
-    private static MimeMessage createMimeMessage(final FactoryData data, final Session session, final LogEvent appendEvent)
-            throws MessagingException {
-        return new MimeMessageBuilder(session).setFrom(data.from).setReplyTo(data.replyto)
-                .setRecipients(Message.RecipientType.TO, data.to).setRecipients(Message.RecipientType.CC, data.cc)
-                .setRecipients(Message.RecipientType.BCC, data.bcc).setSubject(data.subject.toSerializable(appendEvent))
-                .build();
-    }
-
-    protected SmtpManager(final String name, final Session session, final MimeMessage message,
-                          final FactoryData data) {
-        super(null, name);
-        this.session = session;
-        this.message = message;
-        this.data = data;
-        this.buffer = new CyclicBuffer<>(LogEvent.class, data.numElements);
-    }
-
-    public void add(final LogEvent event) {
-        buffer.add(event.toImmutable());
-    }
-
-    public static SmtpManager getSmtpManager(
-                                             final Configuration config,
-                                             final String to, final String cc, final String bcc,
-                                             final String from, final String replyTo,
-                                             final String subject, String protocol, final String host,
-                                             final int port, final String username, final String password,
-                                             final boolean isDebug, final String filterName, final int numElements,
-                                             final SslConfiguration sslConfiguration) {
-        if (Strings.isEmpty(protocol)) {
-            protocol = "smtp";
-        }
-
-        final String name = createManagerName(to, cc, bcc, from, replyTo, subject, protocol, host, port, username, isDebug, filterName);
-        final Serializer subjectSerializer = PatternLayout.newSerializerBuilder().setConfiguration(config).setPattern(subject).build();
-
-        return getManager(name, FACTORY, new FactoryData(to, cc, bcc, from, replyTo, subjectSerializer,
-            protocol, host, port, username, password, isDebug, numElements, sslConfiguration));
-
-    }
-
-    /**
-     * Creates a unique-per-configuration name for an smtp manager using the specified the parameters.<br>
-     * Using such a name allows us to maintain singletons per unique configurations.
-     *
-     * @return smtp manager name
-     */
-    static String createManagerName(
-            final String to,
-            final String cc,
-            final String bcc,
-            final String from,
-            final String replyTo,
-            final String subject,
-            final String protocol,
-            final String host,
-            final int port,
-            final String username,
-            final boolean isDebug,
-            final String filterName) {
-
-        final StringBuilder sb = new StringBuilder();
-
-        if (to != null) {
-            sb.append(to);
-        }
-        sb.append(':');
-        if (cc != null) {
-            sb.append(cc);
-        }
-        sb.append(':');
-        if (bcc != null) {
-            sb.append(bcc);
-        }
-        sb.append(':');
-        if (from != null) {
-            sb.append(from);
-        }
-        sb.append(':');
-        if (replyTo != null) {
-            sb.append(replyTo);
-        }
-        sb.append(':');
-        if (subject != null) {
-            sb.append(subject);
-        }
-        sb.append(':');
-        sb.append(protocol).append(':').append(host).append(':').append(port).append(':');
-        if (username != null) {
-            sb.append(username);
-        }
-        sb.append(isDebug ? ":debug:" : "::");
-        sb.append(filterName);
-
-        return "SMTP:" + sb.toString();
-    }
-
-    /**
-     * Send the contents of the cyclic buffer as an e-mail message.
-     * @param layout The layout for formatting the events.
-     * @param appendEvent The event that triggered the send.
-     */
-    public void sendEvents(final Layout layout, final LogEvent appendEvent) {
-        if (message == null) {
-            connect(appendEvent);
-        }
-        try {
-            final LogEvent[] priorEvents = removeAllBufferedEvents();
-            // LOG4J-310: log appendEvent even if priorEvents is empty
-
-            final byte[] rawBytes = formatContentToBytes(priorEvents, appendEvent, layout);
-
-            final String contentType = layout.getContentType();
-            final String encoding = getEncoding(rawBytes, contentType);
-            final byte[] encodedBytes = encodeContentToBytes(rawBytes, encoding);
-
-            final InternetHeaders headers = getHeaders(contentType, encoding);
-            final MimeMultipart mp = getMimeMultipart(encodedBytes, headers);
-
-            final String subject = data.subject.toSerializable(appendEvent);
-
-            sendMultipartMessage(message, mp, subject);
-        } catch (final MessagingException | IOException | RuntimeException e) {
-            logError("Caught exception while sending e-mail notification.", e);
-            throw new LoggingException("Error occurred while sending email", e);
-        }
-    }
-
-    LogEvent[] removeAllBufferedEvents() {
-        return buffer.removeAll();
-    }
-
-    protected byte[] formatContentToBytes(final LogEvent[] priorEvents, final LogEvent appendEvent,
-                                          final Layout layout) throws IOException {
-        final ByteArrayOutputStream raw = new ByteArrayOutputStream();
-        writeContent(priorEvents, appendEvent, layout, raw);
-        return raw.toByteArray();
-    }
-
-    private void writeContent(final LogEvent[] priorEvents, final LogEvent appendEvent, final Layout layout,
-                              final ByteArrayOutputStream out)
-        throws IOException {
-        writeHeader(layout, out);
-        writeBuffer(priorEvents, appendEvent, layout, out);
-        writeFooter(layout, out);
-    }
-
-    protected void writeHeader(final Layout layout, final OutputStream out) throws IOException {
-        final byte[] header = layout.getHeader();
-        if (header != null) {
-            out.write(header);
-        }
-    }
-
-    protected void writeBuffer(final LogEvent[] priorEvents, final LogEvent appendEvent, final Layout layout,
-                               final OutputStream out) throws IOException {
-        for (final LogEvent priorEvent : priorEvents) {
-            final byte[] bytes = layout.toByteArray(priorEvent);
-            out.write(bytes);
-        }
-
-        final byte[] bytes = layout.toByteArray(appendEvent);
-        out.write(bytes);
-    }
-
-    protected void writeFooter(final Layout layout, final OutputStream out) throws IOException {
-        final byte[] footer = layout.getFooter();
-        if (footer != null) {
-            out.write(footer);
-        }
-    }
-
-    protected String getEncoding(final byte[] rawBytes, final String contentType) {
-        final DataSource dataSource = new ByteArrayDataSource(rawBytes, contentType);
-        return MimeUtility.getEncoding(dataSource);
-    }
-
-    protected byte[] encodeContentToBytes(final byte[] rawBytes, final String encoding)
-        throws MessagingException, IOException {
-        final ByteArrayOutputStream encoded = new ByteArrayOutputStream();
-        encodeContent(rawBytes, encoding, encoded);
-        return encoded.toByteArray();
-    }
-
-    protected void encodeContent(final byte[] bytes, final String encoding, final ByteArrayOutputStream out)
-            throws MessagingException, IOException {
-        try (final OutputStream encoder = MimeUtility.encode(out, encoding)) {
-            encoder.write(bytes);
-        }
-    }
-
-    protected InternetHeaders getHeaders(final String contentType, final String encoding) {
-        final InternetHeaders headers = new InternetHeaders();
-        headers.setHeader("Content-Type", contentType + "; charset=UTF-8");
-        headers.setHeader("Content-Transfer-Encoding", encoding);
-        return headers;
-    }
-
-    protected MimeMultipart getMimeMultipart(final byte[] encodedBytes, final InternetHeaders headers)
-        throws MessagingException {
-        final MimeMultipart mp = new MimeMultipart();
-        final MimeBodyPart part = new MimeBodyPart(headers, encodedBytes);
-        mp.addBodyPart(part);
-        return mp;
-    }
-
-    @SuppressFBWarnings(
-            value = "SMTP_HEADER_INJECTION",
-            justification = "False positive, since MimeMessage#setSubject does actually escape new lines."
-    )
-    protected void sendMultipartMessage(final MimeMessage msg, final MimeMultipart mp, final String subject) throws MessagingException {
-        synchronized (msg) {
-            msg.setContent(mp);
-            msg.setSentDate(new Date());
-            msg.setSubject(subject);
-            Transport.send(msg);
-        }
-    }
-
-    /**
-     * Factory data.
-     */
-    private static class FactoryData {
-        private final String to;
-        private final String cc;
-        private final String bcc;
-        private final String from;
-        private final String replyto;
-        private final Serializer subject;
-        private final String protocol;
-        private final String host;
-        private final int port;
-        private final String username;
-        private final String password;
-        private final boolean isDebug;
-        private final int numElements;
-        private final SslConfiguration sslConfiguration;
-
-        public FactoryData(final String to, final String cc, final String bcc, final String from, final String replyTo,
-                           final Serializer subjectSerializer, final String protocol, final String host, final int port,
-                           final String username, final String password, final boolean isDebug, final int numElements,
-                           final SslConfiguration sslConfiguration) {
-            this.to = to;
-            this.cc = cc;
-            this.bcc = bcc;
-            this.from = from;
-            this.replyto = replyTo;
-            this.subject = subjectSerializer;
-            this.protocol = protocol;
-            this.host = host;
-            this.port = port;
-            this.username = username;
-            this.password = password;
-            this.isDebug = isDebug;
-            this.numElements = numElements;
-            this.sslConfiguration = sslConfiguration;
-        }
-    }
-
-    private synchronized void connect(final LogEvent appendEvent) {
-        if (message != null) {
-            return;
-        }
-        try {
-            message = createMimeMessage(data, session, appendEvent);
-        } catch (final MessagingException e) {
-            logError("Could not set SmtpAppender message options", e);
-            message = null;
-        }
-    }
-
-    /**
-     * Factory to create the SMTP Manager.
-     */
-    private static class SMTPManagerFactory implements ManagerFactory<SmtpManager, FactoryData> {
-
-        @Override
-        public SmtpManager createManager(final String name, final FactoryData data) {
-            final String prefix = "mail." + data.protocol;
-
-            final Properties properties = System.getProperties();
-            properties.setProperty("mail.transport.protocol", data.protocol);
-            if (properties.getProperty("mail.host") == null) {
-                // Prevent an UnknownHostException in Java 7
-                properties.setProperty("mail.host", NetUtils.getLocalHostname());
-            }
-
-            if (null != data.host) {
-                properties.setProperty(prefix + ".host", data.host);
-            }
-            if (data.port > 0) {
-                properties.setProperty(prefix + ".port", String.valueOf(data.port));
-            }
-
-            final Authenticator authenticator = buildAuthenticator(data.username, data.password);
-            if (null != authenticator) {
-                properties.setProperty(prefix + ".auth", "true");
-            }
-
-            if (data.protocol.equals("smtps")) {
-                final SslConfiguration sslConfiguration = data.sslConfiguration;
-                if (sslConfiguration != null) {
-                    final SSLSocketFactory sslSocketFactory = sslConfiguration.getSslSocketFactory();
-                    properties.put(prefix + ".ssl.socketFactory", sslSocketFactory);
-                    properties.setProperty(prefix + ".ssl.checkserveridentity", Boolean.toString(sslConfiguration.isVerifyHostName()));
-                }
-            }
-
-            final Session session = Session.getInstance(properties, authenticator);
-            session.setProtocolForAddress("rfc822", data.protocol);
-            session.setDebug(data.isDebug);
-            return new SmtpManager(name, session, null, data);
-        }
-
-        private Authenticator buildAuthenticator(final String username, final String password) {
-            if (null != password && null != username) {
-                return new Authenticator() {
-                    private final PasswordAuthentication passwordAuthentication =
-                        new PasswordAuthentication(username, password);
-
-                    @Override
-                    protected PasswordAuthentication getPasswordAuthentication() {
-                        return passwordAuthentication;
-                    }
-                };
-            }
-            return null;
-        }
-    }
-}
diff --git a/log4j-smtp/src/main/java/org/apache/logging/log4j/smtp/appender/package-info.java b/log4j-smtp/src/main/java/org/apache/logging/log4j/smtp/appender/package-info.java
deleted file mode 100644
index 715be0fec2..0000000000
--- a/log4j-smtp/src/main/java/org/apache/logging/log4j/smtp/appender/package-info.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * 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.
- */
-@Export
-@Version("1.0.0")
-package org.apache.logging.log4j.smtp.appender;
-
-import org.osgi.annotation.bundle.Export;
-import org.osgi.annotation.versioning.Version;
diff --git a/log4j-smtp/src/main/java/org/apache/logging/log4j/smtp/package-info.java b/log4j-smtp/src/main/java/org/apache/logging/log4j/smtp/package-info.java
deleted file mode 100644
index 91c84dbb67..0000000000
--- a/log4j-smtp/src/main/java/org/apache/logging/log4j/smtp/package-info.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * 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.
- */
-@Export
-@Version("1.0.0")
-package org.apache.logging.log4j.smtp;
-
-import org.osgi.annotation.bundle.Export;
-import org.osgi.annotation.versioning.Version;
diff --git a/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/SimpleSmtpServer.java b/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/SimpleSmtpServer.java
deleted file mode 100644
index d96b1c5dec..0000000000
--- a/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/SimpleSmtpServer.java
+++ /dev/null
@@ -1,279 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.dumbster.smtp;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.io.PrintWriter;
-import java.net.ServerSocket;
-import java.net.Socket;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.apache.logging.log4j.util.Strings;
-
-/**
- * Dummy SMTP server for testing purposes.
- *
- * @todo constructor allowing user to pass preinitialized ServerSocket
- */
-public class SimpleSmtpServer implements Runnable {
-    /**
-     * Stores all of the email received since this instance started up.
-     */
-    private final List<SmtpMessage> receivedMail;
-
-    /**
-     * Default SMTP port is 25.
-     */
-    public static final int DEFAULT_SMTP_PORT = 25;
-
-    /**
-     * Indicates whether this server is stopped or not.
-     */
-    private volatile boolean stopped = true;
-
-    /**
-     * Handle to the server socket this server listens to.
-     */
-    private ServerSocket serverSocket;
-
-    /**
-     * Port the server listens on - set to the default SMTP port initially.
-     */
-    private int port = DEFAULT_SMTP_PORT;
-
-    /**
-     * Timeout listening on server socket.
-     */
-    private static final int TIMEOUT = 500;
-
-    /**
-     * Constructor.
-     *
-     * @param port port number
-     */
-    public SimpleSmtpServer(final int port) {
-        receivedMail = new ArrayList<>();
-        this.port = port;
-    }
-
-    /**
-     * Main loop of the SMTP server.
-     */
-    @Override
-    public void run() {
-        stopped = false;
-        try {
-            try {
-                serverSocket = new ServerSocket(port);
-                serverSocket.setSoTimeout(TIMEOUT); // Block for maximum of 1.5 seconds
-            } finally {
-                synchronized (this) {
-                    // Notify when server socket has been created
-                    notifyAll();
-                }
-            }
-
-            // Server: loop until stopped
-            while (!isStopped()) {
-                // Start server socket and listen for client connections
-                Socket socket = null;
-                try {
-                    socket = serverSocket.accept();
-                } catch (final Exception e) {
-                    if (socket != null) {
-                        socket.close();
-                    }
-                    continue; // Non-blocking socket timeout occurred: try accept() again
-                }
-
-                // Get the input and output streams
-                final BufferedReader input = new BufferedReader(new InputStreamReader(socket.getInputStream()));
-                final PrintWriter out = new PrintWriter(socket.getOutputStream());
-
-                synchronized (this) {
-                    /*
-                     * We synchronize over the handle method and the list update because the client call completes
-                     * inside the handle method and we have to prevent the client from reading the list until we've
-                     * updated it. For higher concurrency, we could just change handle to return void and update the
-                     * list inside the method to limit the duration that we hold the lock.
-                     */
-                    final List<SmtpMessage> msgs = handleTransaction(out, input);
-                    receivedMail.addAll(msgs);
-                }
-                socket.close();
-            }
-        } catch (final Exception e) {
-            /** @todo Should throw an appropriate exception here. */
-            e.printStackTrace();
-        } finally {
-            if (serverSocket != null) {
-                try {
-                    serverSocket.close();
-                } catch (final IOException e) {
-                    e.printStackTrace();
-                }
-            }
-        }
-    }
-
-    /**
-     * Check if the server has been placed in a stopped state. Allows another thread to
-     * stop the server safely.
-     *
-     * @return true if the server has been sent a stop signal, false otherwise
-     */
-    public synchronized boolean isStopped() {
-        return stopped;
-    }
-
-    /**
-     * Stops the server. Server is shutdown after processing of the current request is complete.
-     */
-    public synchronized void stop() {
-        // Mark us closed
-        stopped = true;
-        try {
-            // Kick the server accept loop
-            serverSocket.close();
-        } catch (final IOException e) {
-            // Ignore
-        }
-    }
-
-    /**
-     * Handle an SMTP transaction, i.e. all activity between initial connect and QUIT command.
-     *
-     * @param out   output stream
-     * @param input input stream
-     * @return List of SmtpMessage
-     * @throws IOException
-     */
-    private List<SmtpMessage> handleTransaction(final PrintWriter out, final BufferedReader input) throws IOException {
-        // Initialize the state machine
-        SmtpState smtpState = SmtpState.CONNECT;
-        final SmtpRequest smtpRequest = new SmtpRequest(SmtpActionType.CONNECT, Strings.EMPTY, smtpState);
-
-        // Execute the connection request
-        final SmtpResponse smtpResponse = smtpRequest.execute();
-
-        // Send initial response
-        sendResponse(out, smtpResponse);
-        smtpState = smtpResponse.getNextState();
-
-        final List<SmtpMessage> msgList = new ArrayList<>();
-        SmtpMessage msg = new SmtpMessage();
-
-        while (smtpState != SmtpState.CONNECT) {
-            final String line = input.readLine();
-
-            if (line == null) {
-                break;
-            }
-
-            // Create request from client input and current state
-            final SmtpRequest request = SmtpRequest.createRequest(line, smtpState);
-            // Execute request and create response object
-            final SmtpResponse response = request.execute();
-            // Move to next internal state
-            smtpState = response.getNextState();
-            // Send response to client
-            sendResponse(out, response);
-
-            // Store input in message
-            final String params = request.getParams();
-            msg.store(response, params);
-
-            // If message reception is complete save it
-            if (smtpState == SmtpState.QUIT) {
-                msgList.add(msg);
-                msg = new SmtpMessage();
-            }
-        }
-
-        return msgList;
-    }
-
-    /**
-     * Send response to client.
-     *
-     * @param out          socket output stream
-     * @param smtpResponse response object
-     */
-    private static void sendResponse(final PrintWriter out, final SmtpResponse smtpResponse) {
-        if (smtpResponse.getCode() > 0) {
-            final int code = smtpResponse.getCode();
-            final String message = smtpResponse.getMessage();
-            out.print(code + " " + message + "\r\n");
-            out.flush();
-        }
-    }
-
-    /**
-     * Get email received by this instance since start up.
-     *
-     * @return List of String
-     */
-    public synchronized Iterator<SmtpMessage> getReceivedEmail() {
-        return receivedMail.iterator();
-    }
-
-    /**
-     * Get the number of messages received.
-     *
-     * @return size of received email list
-     */
-    public synchronized int getReceivedEmailSize() {
-        return receivedMail.size();
-    }
-
-    /**
-     * Creates an instance of SimpleSmtpServer and starts it. Will listen on the default port.
-     *
-     * @return a reference to the SMTP server
-     */
-    public static SimpleSmtpServer start() {
-        return start(DEFAULT_SMTP_PORT);
-    }
-
-    /**
-     * Creates an instance of SimpleSmtpServer and starts it.
-     *
-     * @param port port number the server should listen to
-     * @return a reference to the SMTP server
-     */
-    public static SimpleSmtpServer start(final int port) {
-        final SimpleSmtpServer server = new SimpleSmtpServer(port);
-        final Thread t = new Thread(server);
-
-
-        // Block until the server socket is created
-        synchronized (server) {
-            t.start();
-            try {
-                server.wait();
-            } catch (final InterruptedException e) {
-                // Ignore don't care.
-            }
-        }
-        return server;
-    }
-
-}
diff --git a/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpActionType.java b/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpActionType.java
deleted file mode 100644
index b7245b435c..0000000000
--- a/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpActionType.java
+++ /dev/null
@@ -1,202 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.dumbster.smtp;
-
-/**
- * Represents an SMTP action or command.
- */
-public final class SmtpActionType {
-    /**
-     * Internal value for the action type.
-     */
-    private final byte value;
-
-    /**
-     * Internal representation of the CONNECT action.
-     */
-    private static final byte CONNECT_BYTE = (byte) 1;
-    /**
-     * Internal representation of the EHLO action.
-     */
-    private static final byte EHLO_BYTE = (byte) 2;
-    /**
-     * Internal representation of the MAIL FROM action.
-     */
-    private static final byte MAIL_BYTE = (byte) 3;
-    /**
-     * Internal representation of the RCPT action.
-     */
-    private static final byte RCPT_BYTE = (byte) 4;
-    /**
-     * Internal representation of the DATA action.
-     */
-    private static final byte DATA_BYTE = (byte) 5;
-    /**
-     * Internal representation of the DATA END (.) action.
-     */
-    private static final byte DATA_END_BYTE = (byte) 6;
-    /**
-     * Internal representation of the QUIT action.
-     */
-    private static final byte QUIT_BYTE = (byte) 7;
-    /**
-     * Internal representation of an unrecognized action: body text gets this action type.
-     */
-    private static final byte UNREC_BYTE = (byte) 8;
-    /**
-     * Internal representation of the blank line action: separates headers and body text.
-     */
-    private static final byte BLANK_LINE_BYTE = (byte) 9;
-
-    /**
-     * Internal representation of the stateless RSET action.
-     */
-    private static final byte RSET_BYTE = (byte) -1;
-    /**
-     * Internal representation of the stateless VRFY action.
-     */
-    private static final byte VRFY_BYTE = (byte) -2;
-    /**
-     * Internal representation of the stateless EXPN action.
-     */
-    private static final byte EXPN_BYTE = (byte) -3;
-    /**
-     * Internal representation of the stateless HELP action.
-     */
-    private static final byte HELP_BYTE = (byte) -4;
-    /**
-     * Internal representation of the stateless NOOP action.
-     */
-    private static final byte NOOP_BYTE = (byte) -5;
-
-    /**
-     * CONNECT action.
-     */
-    public static final SmtpActionType CONNECT = new SmtpActionType(CONNECT_BYTE);
-    /**
-     * EHLO action.
-     */
-    public static final SmtpActionType EHLO = new SmtpActionType(EHLO_BYTE);
-    /**
-     * MAIL action.
-     */
-    public static final SmtpActionType MAIL = new SmtpActionType(MAIL_BYTE);
-    /**
-     * RCPT action.
-     */
-    public static final SmtpActionType RCPT = new SmtpActionType(RCPT_BYTE);
-    /**
-     * DATA action.
-     */
-    public static final SmtpActionType DATA = new SmtpActionType(DATA_BYTE);
-    /**
-     * "." action.
-     */
-    public static final SmtpActionType DATA_END = new SmtpActionType(DATA_END_BYTE);
-    /**
-     * Body text action.
-     */
-    public static final SmtpActionType UNRECOG = new SmtpActionType(UNREC_BYTE);
-    /**
-     * QUIT action.
-     */
-    public static final SmtpActionType QUIT = new SmtpActionType(QUIT_BYTE);
-    /**
-     * Header/body separator action.
-     */
-    public static final SmtpActionType BLANK_LINE = new SmtpActionType(BLANK_LINE_BYTE);
-
-    /**
-     * Stateless RSET action.
-     */
-    public static final SmtpActionType RSET = new SmtpActionType(RSET_BYTE);
-    /**
-     * Stateless VRFY action.
-     */
-    public static final SmtpActionType VRFY = new SmtpActionType(VRFY_BYTE);
-    /**
-     * Stateless EXPN action.
-     */
-    public static final SmtpActionType EXPN = new SmtpActionType(EXPN_BYTE);
-    /**
-     * Stateless HELP action.
-     */
-    public static final SmtpActionType HELP = new SmtpActionType(HELP_BYTE);
-    /**
-     * Stateless NOOP action.
-     */
-    public static final SmtpActionType NOOP = new SmtpActionType(NOOP_BYTE);
-
-    /**
-     * Create a new SMTP action type. Private to ensure no invalid values.
-     *
-     * @param value one of the _BYTE values
-     */
-    private SmtpActionType(final byte value) {
-        this.value = value;
-    }
-
-    /**
-     * Indicates whether the action is stateless or not.
-     *
-     * @return true iff the action is stateless
-     */
-    public boolean isStateless() {
-        return value < 0;
-    }
-
-    /**
-     * String representation of this SMTP action type.
-     *
-     * @return a String
-     */
-    @Override
-    public String toString() {
-        switch (value) {
-            case CONNECT_BYTE:
-                return "Connect";
-            case EHLO_BYTE:
-                return "EHLO";
-            case MAIL_BYTE:
-                return "MAIL";
-            case RCPT_BYTE:
-                return "RCPT";
-            case DATA_BYTE:
-                return "DATA";
-            case DATA_END_BYTE:
-                return ".";
-            case QUIT_BYTE:
-                return "QUIT";
-            case RSET_BYTE:
-                return "RSET";
-            case VRFY_BYTE:
-                return "VRFY";
-            case EXPN_BYTE:
-                return "EXPN";
-            case HELP_BYTE:
-                return "HELP";
-            case NOOP_BYTE:
-                return "NOOP";
-            case UNREC_BYTE:
-                return "Unrecognized command / data";
-            case BLANK_LINE_BYTE:
-                return "Blank line";
-            default:
-                return "Unknown";
-        }
-    }
-}
diff --git a/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpMessage.java b/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpMessage.java
deleted file mode 100644
index e21b6ba205..0000000000
--- a/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpMessage.java
+++ /dev/null
@@ -1,154 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.dumbster.smtp;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-/**
- * Container for a complete SMTP message - headers and message body.
- */
-public class SmtpMessage {
-    /**
-     * Headers: Map of List of String hashed on header name.
-     */
-    private final Map<String, List<String>> headers;
-    /**
-     * Message body.
-     */
-    private final StringBuffer body;
-
-    /**
-     * Constructor. Initializes headers Map and body buffer.
-     */
-    public SmtpMessage() {
-        headers = new HashMap<>(10);
-        body = new StringBuffer();
-    }
-
-    /**
-     * Update the headers or body depending on the SmtpResponse object and line of input.
-     *
-     * @param response SmtpResponse object
-     * @param params   remainder of input line after SMTP command has been removed
-     */
-    public void store(final SmtpResponse response, final String params) {
-        if (params != null) {
-            if (SmtpState.DATA_HDR.equals(response.getNextState())) {
-                final int headerNameEnd = params.indexOf(':');
-                if (headerNameEnd >= 0) {
-                    final String name = params.substring(0, headerNameEnd).trim();
-                    final String value = params.substring(headerNameEnd + 1).trim();
-                    addHeader(name, value);
-                }
-            } else if (SmtpState.DATA_BODY == response.getNextState()) {
-                body.append(params);
-            }
-        }
-    }
-
-    /**
-     * Get an Iterator over the header names.
-     *
-     * @return an Iterator over the set of header names (String)
-     */
-    public Iterator<String> getHeaderNames() {
-        final Set<String> nameSet = headers.keySet();
-        return nameSet.iterator();
-    }
-
-    /**
-     * Get the value(s) associated with the given header name.
-     *
-     * @param name header name
-     * @return value(s) associated with the header name
-     */
-    public String[] getHeaderValues(final String name) {
-        final List<String> values = headers.get(name);
-        if (values == null) {
-            return new String[0];
-        }
-        return values.toArray(new String[values.size()]);
-    }
-
-    /**
-     * Get the first values associated with a given header name.
-     *
-     * @param name header name
-     * @return first value associated with the header name
-     */
-    public String getHeaderValue(final String name) {
-        final List<String> values = headers.get(name);
-        if (values == null) {
-            return null;
-        }
-        final Iterator<String> iterator = values.iterator();
-        return iterator.hasNext() ? iterator.next() : null;
-    }
-
-    /**
-     * Get the message body.
-     *
-     * @return message body
-     */
-    public String getBody() {
-        return body.toString();
-    }
-
-    /**
-     * Adds a header to the Map.
-     *
-     * @param name  header name
-     * @param value header value
-     */
-    private void addHeader(final String name, final String value) {
-        List<String> valueList = headers.get(name);
-        if (valueList == null) {
-            valueList = new ArrayList<>(1);
-            headers.put(name, valueList);
-        }
-        valueList.add(value);
-    }
-
-    /**
-     * String representation of the SmtpMessage.
-     *
-     * @return a String
-     */
-    @Override
-    public String toString() {
-        final StringBuilder msg = new StringBuilder();
-        for (final Map.Entry<String, List<String>> entry : headers.entrySet()) {
-            final String name = entry.getKey();
-            final List<String> values = entry.getValue();
-            for (final String value : values) {
-                msg.append(name);
-                msg.append(": ");
-                msg.append(value);
-                msg.append('\n');
-            }
-        }
-        msg.append('\n');
-        msg.append(body);
-        msg.append('\n');
-        return msg.toString();
-    }
-}
diff --git a/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpRequest.java b/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpRequest.java
deleted file mode 100644
index fd65d971e3..0000000000
--- a/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpRequest.java
+++ /dev/null
@@ -1,231 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.dumbster.smtp;
-
-import org.apache.logging.log4j.util.Strings;
-
-/**
- * Contains an SMTP client request. Handles state transitions using the following state transition table.
- * <PRE>
- * -----------+-------------------------------------------------------------------------------------------------
- * |                                 State
- * Action    +-------------+-----------+-----------+--------------+---------------+---------------+------------
- * | CONNECT     | GREET     | MAIL      | RCPT         | DATA_HDR      | DATA_BODY     | QUIT
- * -----------+-------------+-----------+-----------+--------------+---------------+---------------+------------
- * connect    | 220/GREET   | 503/GREET | 503/MAIL  | 503/RCPT     | 503/DATA_HDR  | 503/DATA_BODY | 503/QUIT
- * ehlo       | 503/CONNECT | 250/MAIL  | 503/MAIL  | 503/RCPT     | 503/DATA_HDR  | 503/DATA_BODY | 503/QUIT
- * mail       | 503/CONNECT | 503/GREET | 250/RCPT  | 503/RCPT     | 503/DATA_HDR  | 503/DATA_BODY | 250/RCPT
- * rcpt       | 503/CONNECT | 503/GREET | 503/MAIL  | 250/RCPT     | 503/DATA_HDR  | 503/DATA_BODY | 503/QUIT
- * data       | 503/CONNECT | 503/GREET | 503/MAIL  | 354/DATA_HDR | 503/DATA_HDR  | 503/DATA_BODY | 503/QUIT
- * data_end   | 503/CONNECT | 503/GREET | 503/MAIL  | 503/RCPT     | 250/QUIT      | 250/QUIT      | 503/QUIT
- * unrecog    | 500/CONNECT | 500/GREET | 500/MAIL  | 500/RCPT     | ---/DATA_HDR  | ---/DATA_BODY | 500/QUIT
- * quit       | 503/CONNECT | 503/GREET | 503/MAIL  | 503/RCPT     | 503/DATA_HDR  | 503/DATA_BODY | 250/CONNECT
- * blank_line | 503/CONNECT | 503/GREET | 503/MAIL  | 503/RCPT     | ---/DATA_BODY | ---/DATA_BODY | 503/QUIT
- * rset       | 250/GREET   | 250/GREET | 250/GREET | 250/GREET    | 250/GREET     | 250/GREET     | 250/GREET
- * vrfy       | 252/CONNECT | 252/GREET | 252/MAIL  | 252/RCPT     | 252/DATA_HDR  | 252/DATA_BODY | 252/QUIT
- * expn       | 252/CONNECT | 252/GREET | 252/MAIL  | 252/RCPT     | 252/DATA_HDR  | 252/DATA_BODY | 252/QUIT
- * help       | 211/CONNECT | 211/GREET | 211/MAIL  | 211/RCPT     | 211/DATA_HDR  | 211/DATA_BODY | 211/QUIT
- * noop       | 250/CONNECT | 250/GREET | 250/MAIL  | 250/RCPT     | 250|DATA_HDR  | 250/DATA_BODY | 250/QUIT
- * </PRE>
- */
-public class SmtpRequest {
-    /**
-     * SMTP action received from client.
-     */
-    private final SmtpActionType action;
-    /**
-     * Current state of the SMTP state table.
-     */
-    private final SmtpState state;
-    /**
-     * Additional information passed from the client with the SMTP action.
-     */
-    private final String params;
-
-    /**
-     * Create a new SMTP client request.
-     *
-     * @param actionType type of action/command
-     * @param params     remainder of command line once command is removed
-     * @param state      current SMTP server state
-     */
-    public SmtpRequest(final SmtpActionType actionType, final String params, final SmtpState state) {
-        this.action = actionType;
-        this.state = state;
-        this.params = params;
-    }
-
-    /**
-     * Execute the SMTP request returning a response. This method models the state transition table for the SMTP server.
-     *
-     * @return reponse to the request
-     */
-    public SmtpResponse execute() {
-        SmtpResponse response = null;
-        if (action.isStateless()) {
-            if (SmtpActionType.EXPN == action || SmtpActionType.VRFY == action) {
-                response = new SmtpResponse(252, "Not supported", this.state);
-            } else if (SmtpActionType.HELP == action) {
-                response = new SmtpResponse(211, "No help available", this.state);
-            } else if (SmtpActionType.NOOP == action) {
-                response = new SmtpResponse(250, "OK", this.state);
-            } else if (SmtpActionType.VRFY == action) {
-                response = new SmtpResponse(252, "Not supported", this.state);
-            } else if (SmtpActionType.RSET == action) {
-                response = new SmtpResponse(250, "OK", SmtpState.GREET);
-            } else {
-                response = new SmtpResponse(500, "Command not recognized", this.state);
-            }
-        } else { // Stateful commands
-            if (SmtpActionType.CONNECT == action) {
-                if (SmtpState.CONNECT == state) {
-                    response = new SmtpResponse(220, "localhost Dumbster SMTP service ready", SmtpState.GREET);
-                } else {
-                    response = new SmtpResponse(503, "Bad sequence of commands: " + action, this.state);
-                }
-            } else if (SmtpActionType.EHLO == action) {
-                if (SmtpState.GREET == state) {
-                    response = new SmtpResponse(250, "OK", SmtpState.MAIL);
-                } else {
-                    response = new SmtpResponse(503, "Bad sequence of commands: " + action, this.state);
-                }
-            } else if (SmtpActionType.MAIL == action) {
-                if (SmtpState.MAIL == state || SmtpState.QUIT == state) {
-                    response = new SmtpResponse(250, "OK", SmtpState.RCPT);
-                } else {
-                    response = new SmtpResponse(503, "Bad sequence of commands: " + action, this.state);
-                }
-            } else if (SmtpActionType.RCPT == action) {
-                if (SmtpState.RCPT == state) {
-                    response = new SmtpResponse(250, "OK", this.state);
-                } else {
-                    response = new SmtpResponse(503, "Bad sequence of commands: " + action, this.state);
-                }
-            } else if (SmtpActionType.DATA == action) {
-                if (SmtpState.RCPT == state) {
-                    response = new SmtpResponse(354, "Start mail input; end with <CRLF>.<CRLF>", SmtpState.DATA_HDR);
-                } else {
-                    response = new SmtpResponse(503, "Bad sequence of commands: " + action, this.state);
-                }
-            } else if (SmtpActionType.UNRECOG == action) {
-                if (SmtpState.DATA_HDR == state || SmtpState.DATA_BODY == state) {
-                    response = new SmtpResponse(-1, Strings.EMPTY, this.state);
-                } else {
-                    response = new SmtpResponse(500, "Command not recognized", this.state);
-                }
-            } else if (SmtpActionType.DATA_END == action) {
-                if (SmtpState.DATA_HDR == state || SmtpState.DATA_BODY == state) {
-                    response = new SmtpResponse(250, "OK", SmtpState.QUIT);
-                } else {
-                    response = new SmtpResponse(503, "Bad sequence of commands: " + action, this.state);
-                }
-            } else if (SmtpActionType.BLANK_LINE == action) {
-                if (SmtpState.DATA_HDR == state) {
-                    response = new SmtpResponse(-1, Strings.EMPTY, SmtpState.DATA_BODY);
-                } else if (SmtpState.DATA_BODY == state) {
-                    response = new SmtpResponse(-1, Strings.EMPTY, this.state);
-                } else {
-                    response = new SmtpResponse(503, "Bad sequence of commands: " + action, this.state);
-                }
-            } else if (SmtpActionType.QUIT == action) {
-                if (SmtpState.QUIT == state) {
-                    response = new SmtpResponse(221, "localhost Dumbster service closing transmission channel",
-                        SmtpState.CONNECT);
-                } else {
-                    response = new SmtpResponse(503, "Bad sequence of commands: " + action, this.state);
-                }
-            } else {
-                response = new SmtpResponse(500, "Command not recognized", this.state);
-            }
-        }
-        return response;
-    }
-
-    /**
-     * Create an SMTP request object given a line of the input stream from the client and the current internal state.
-     *
-     * @param s     line of input
-     * @param state current state
-     * @return a populated SmtpRequest object
-     */
-    public static SmtpRequest createRequest(final String s, final SmtpState state) {
-        SmtpActionType action = null;
-        String params = null;
-
-        if (state == SmtpState.DATA_HDR) {
-            if (s.equals(".")) {
-                action = SmtpActionType.DATA_END;
-            } else if (s.length() < 1) {
-                action = SmtpActionType.BLANK_LINE;
-            } else {
-                action = SmtpActionType.UNRECOG;
-                params = s;
-            }
-        } else if (state == SmtpState.DATA_BODY) {
-            if (s.equals(".")) {
-                action = SmtpActionType.DATA_END;
-            } else {
-                action = SmtpActionType.UNRECOG;
-                if (s.length() < 1) {
-                    params = "\n";
-                } else {
-                    params = s;
-                }
-            }
-        } else {
-            final String su = s.toUpperCase();
-            if (su.startsWith("EHLO ") || su.startsWith("HELO")) {
-                action = SmtpActionType.EHLO;
-                params = s.substring(5);
-            } else if (su.startsWith("MAIL FROM:")) {
-                action = SmtpActionType.MAIL;
-                params = s.substring(10);
-            } else if (su.startsWith("RCPT TO:")) {
-                action = SmtpActionType.RCPT;
-                params = s.substring(8);
-            } else if (su.startsWith("DATA")) {
-                action = SmtpActionType.DATA;
-            } else if (su.startsWith("QUIT")) {
-                action = SmtpActionType.QUIT;
-            } else if (su.startsWith("RSET")) {
-                action = SmtpActionType.RSET;
-            } else if (su.startsWith("NOOP")) {
-                action = SmtpActionType.NOOP;
-            } else if (su.startsWith("EXPN")) {
-                action = SmtpActionType.EXPN;
-            } else if (su.startsWith("VRFY")) {
-                action = SmtpActionType.VRFY;
-            } else if (su.startsWith("HELP")) {
-                action = SmtpActionType.HELP;
-            } else {
-                action = SmtpActionType.UNRECOG;
-            }
-        }
-
-        final SmtpRequest req = new SmtpRequest(action, params, state);
-        return req;
-    }
-
-    /**
-     * Get the parameters of this request (remainder of command line once the command is removed.
-     *
-     * @return parameters
-     */
-    public String getParams() {
-        return params;
-    }
-}
diff --git a/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpResponse.java b/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpResponse.java
deleted file mode 100644
index 0a71dbb526..0000000000
--- a/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpResponse.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.dumbster.smtp;
-
-/**
- * SMTP response container.
- */
-public class SmtpResponse {
-    /**
-     * Response code - see RFC-2821.
-     */
-    private final int code;
-    /**
-     * Response message.
-     */
-    private final String message;
-    /**
-     * New state of the SMTP server once the request has been executed.
-     */
-    private final SmtpState nextState;
-
-    /**
-     * Constructor.
-     *
-     * @param code    response code
-     * @param message response message
-     * @param next    next state of the SMTP server
-     */
-    public SmtpResponse(final int code, final String message, final SmtpState next) {
-        this.code = code;
-        this.message = message;
-        this.nextState = next;
-    }
-
-    /**
-     * Get the response code.
-     *
-     * @return response code
-     */
-    public int getCode() {
-        return code;
-    }
-
-    /**
-     * Get the response message.
-     *
-     * @return response message
-     */
-    public String getMessage() {
-        return message;
-    }
-
-    /**
-     * Get the next SMTP server state.
-     *
-     * @return state
-     */
-    public SmtpState getNextState() {
-        return nextState;
-    }
-}
diff --git a/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpState.java b/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpState.java
deleted file mode 100644
index 74c5bd3bbf..0000000000
--- a/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpState.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.dumbster.smtp;
-
-/**
- * SMTP server state.
- */
-public final class SmtpState {
-    /**
-     * Internal representation of the state.
-     */
-    private final byte value;
-
-    /**
-     * Internal representation of the CONNECT state.
-     */
-    private static final byte CONNECT_BYTE = (byte) 1;
-    /**
-     * Internal representation of the GREET state.
-     */
-    private static final byte GREET_BYTE = (byte) 2;
-    /**
-     * Internal representation of the MAIL state.
-     */
-    private static final byte MAIL_BYTE = (byte) 3;
-    /**
-     * Internal representation of the RCPT state.
-     */
-    private static final byte RCPT_BYTE = (byte) 4;
-    /**
-     * Internal representation of the DATA_HEADER state.
-     */
-    private static final byte DATA_HEADER_BYTE = (byte) 5;
-    /**
-     * Internal representation of the DATA_BODY state.
-     */
-    private static final byte DATA_BODY_BYTE = (byte) 6;
-    /**
-     * Internal representation of the QUIT state.
-     */
-    private static final byte QUIT_BYTE = (byte) 7;
-
-    /**
-     * CONNECT state: waiting for a client connection.
-     */
-    public static final SmtpState CONNECT = new SmtpState(CONNECT_BYTE);
-    /**
-     * GREET state: wating for a ELHO message.
-     */
-    public static final SmtpState GREET = new SmtpState(GREET_BYTE);
-    /**
-     * MAIL state: waiting for the MAIL FROM: command.
-     */
-    public static final SmtpState MAIL = new SmtpState(MAIL_BYTE);
-    /**
-     * RCPT state: waiting for a RCPT &lt;email address&gt; command.
-     */
-    public static final SmtpState RCPT = new SmtpState(RCPT_BYTE);
-    /**
-     * Waiting for headers.
-     */
-    public static final SmtpState DATA_HDR = new SmtpState(DATA_HEADER_BYTE);
-    /**
-     * Processing body text.
-     */
-    public static final SmtpState DATA_BODY = new SmtpState(DATA_BODY_BYTE);
-    /**
-     * End of client transmission.
-     */
-    public static final SmtpState QUIT = new SmtpState(QUIT_BYTE);
-
-    /**
-     * Create a new SmtpState object. Private to ensure that only valid states can be created.
-     *
-     * @param value one of the _BYTE values.
-     */
-    private SmtpState(final byte value) {
-        this.value = value;
-    }
-
-    /**
-     * String representation of this SmtpState.
-     *
-     * @return a String
-     */
-    @Override
-    public String toString() {
-        switch (value) {
-            case CONNECT_BYTE:
-                return "CONNECT";
-            case GREET_BYTE:
-                return "GREET";
-            case MAIL_BYTE:
-                return "MAIL";
-            case RCPT_BYTE:
-                return "RCPT";
-            case DATA_HEADER_BYTE:
-                return "DATA_HDR";
-            case DATA_BODY_BYTE:
-                return "DATA_BODY";
-            case QUIT_BYTE:
-                return "QUIT";
-            default:
-                return "Unknown";
-        }
-    }
-}
diff --git a/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/readme.txt b/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/readme.txt
deleted file mode 100644
index aded490e72..0000000000
--- a/log4j-smtp/src/test/java/org/apache/logging/dumbster/smtp/readme.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-Dumbster was an open source project hosted at Sourceforge. Unfortunately, that project has not had any commits
-to it since 2005. The code was copied here to be able to address a race condition in SimpleSmtpServer.
-
-Dumbster is Copyright 2004 Jason Paul Kitchen
\ No newline at end of file
diff --git a/log4j-smtp/src/test/java/org/apache/logging/log4j/smtp/appender/SmtpAppenderAsyncTest.java b/log4j-smtp/src/test/java/org/apache/logging/log4j/smtp/appender/SmtpAppenderAsyncTest.java
deleted file mode 100644
index f28b5797b9..0000000000
--- a/log4j-smtp/src/test/java/org/apache/logging/log4j/smtp/appender/SmtpAppenderAsyncTest.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.smtp.appender;
-
-import java.util.Iterator;
-
-import org.apache.logging.dumbster.smtp.SimpleSmtpServer;
-import org.apache.logging.dumbster.smtp.SmtpMessage;
-import org.apache.logging.log4j.ThreadContext;
-import org.apache.logging.log4j.core.Logger;
-import org.apache.logging.log4j.core.test.AvailablePortFinder;
-import org.apache.logging.log4j.core.test.junit.LoggerContextRule;
-import org.junit.After;
-import org.junit.AfterClass;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Rule;
-import org.junit.Test;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
-
-public class SmtpAppenderAsyncTest {
-
-    private static int PORT;
-
-    private SimpleSmtpServer smtpServer;
-
-    @BeforeClass
-    public static void setupClass() {
-        PORT = AvailablePortFinder.getNextAvailable();
-        System.setProperty("smtp.port", String.valueOf(PORT));
-    }
-
-    @Before
-    public void setup() {
-        smtpServer = SimpleSmtpServer.start(PORT);
-    }
-
-    @Rule
-    public LoggerContextRule ctx = new LoggerContextRule("SmtpAppenderAsyncTest.xml");
-
-    @Test
-    public void testSync() {
-        testSmtpAppender(ctx.getLogger("sync"));
-    }
-
-    @Test
-    public void testAsync() {
-        testSmtpAppender(ctx.getLogger("async"));
-    }
-
-    private void testSmtpAppender(final Logger logger) {
-        ThreadContext.put("MDC1", "mdc1");
-        logger.error("the message");
-        ctx.getLoggerContext().stop();
-        smtpServer.stop();
-
-        assertEquals(1, smtpServer.getReceivedEmailSize());
-        final Iterator<SmtpMessage> messages = smtpServer.getReceivedEmail();
-        final SmtpMessage email = messages.next();
-
-        assertEquals("to@example.com", email.getHeaderValue("To"));
-        assertEquals("from@example.com", email.getHeaderValue("From"));
-        assertEquals("[mdc1]", email.getHeaderValue("Subject"));
-
-        final String body = email.getBody();
-        if (!body.contains("Body:[mdc1]")) {
-            fail(body);
-        }
-    }
-
-    @After
-    public void teardown() {
-        if (smtpServer != null) {
-            smtpServer.stop();
-        }
-    }
-
-    @AfterClass
-    public static void teardownClass() {
-        System.clearProperty("smtp.port");
-    }
-}
diff --git a/log4j-smtp/src/test/java/org/apache/logging/log4j/smtp/appender/SmtpAppenderTest.java b/log4j-smtp/src/test/java/org/apache/logging/log4j/smtp/appender/SmtpAppenderTest.java
deleted file mode 100644
index 7caf33f305..0000000000
--- a/log4j-smtp/src/test/java/org/apache/logging/log4j/smtp/appender/SmtpAppenderTest.java
+++ /dev/null
@@ -1,180 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.smtp.appender;
-
-import java.util.Iterator;
-
-import javax.mail.Address;
-import javax.mail.Message;
-import javax.mail.MessagingException;
-import javax.mail.internet.InternetAddress;
-
-import org.apache.logging.dumbster.smtp.SimpleSmtpServer;
-import org.apache.logging.dumbster.smtp.SmtpMessage;
-import org.apache.logging.log4j.Level;
-import org.apache.logging.log4j.ThreadContext;
-import org.apache.logging.log4j.core.Logger;
-import org.apache.logging.log4j.core.LoggerContext;
-import org.apache.logging.log4j.core.config.DefaultConfiguration;
-import org.apache.logging.log4j.core.test.AvailablePortFinder;
-import org.apache.logging.log4j.core.test.categories.Appenders;
-import org.apache.logging.log4j.smtp.MimeMessageBuilder;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-
-import static org.junit.Assert.*;
-
-@Category(Appenders.Smtp.class)
-public class SmtpAppenderTest {
-
-    private static final String HOST = "localhost";
-
-    @Test
-    public void testMessageFactorySetFrom() throws MessagingException {
-        final MimeMessageBuilder builder = new MimeMessageBuilder(null);
-        final String address = "testing@example.com";
-
-        assertNull(builder.build().getFrom());
-
-        builder.setFrom(null);
-        Address[] array = null;
-        final Address addr = InternetAddress.getLocalAddress(null);
-        if (addr != null) {
-            array = new Address[] { addr };
-        }
-        assertArrayEquals(array, builder.build().getFrom());
-
-        builder.setFrom(address);
-        assertArrayEquals(new Address[] { new InternetAddress(address) },
-                builder.build().getFrom());
-    }
-
-    @Test
-    public void testMessageFactorySetReplyTo() throws MessagingException {
-        final MimeMessageBuilder builder = new MimeMessageBuilder(null);
-        final String addresses = "testing1@example.com,testing2@example.com";
-
-        assertNull(builder.build().getReplyTo());
-
-        builder.setReplyTo(null);
-        assertNull(builder.build().getReplyTo());
-
-        builder.setReplyTo(addresses);
-        assertArrayEquals(InternetAddress.parse(addresses), builder
-                .build().getReplyTo());
-    }
-
-    @Test
-    public void testMessageFactorySetRecipients() throws MessagingException {
-        final MimeMessageBuilder builder = new MimeMessageBuilder(null);
-        final String addresses = "testing1@example.com,testing2@example.com";
-
-        assertNull(builder.build().getRecipients(
-                Message.RecipientType.TO));
-
-        builder.setRecipients(Message.RecipientType.TO, null);
-        assertNull(builder.build().getRecipients(
-                Message.RecipientType.TO));
-
-        builder.setRecipients(Message.RecipientType.TO, addresses);
-        assertArrayEquals(InternetAddress.parse(addresses), builder
-                .build().getRecipients(Message.RecipientType.TO));
-    }
-
-    @Test
-    public void testMessageFactorySetSubject() throws MessagingException {
-        final MimeMessageBuilder builder = new MimeMessageBuilder(null);
-        final String subject = "Test Subject";
-
-        assertNull(builder.build().getSubject());
-
-        builder.setSubject(null);
-        assertNull(builder.build().getSubject());
-
-        builder.setSubject(subject);
-        assertEquals(subject, builder.build().getSubject());
-    }
-
-    @Test
-    public void testDelivery() {
-        final String subjectKey = getClass().getName();
-        final String subjectValue = "SubjectValue1";
-        ThreadContext.put(subjectKey, subjectValue);
-        final int smtpPort = AvailablePortFinder.getNextAvailable();
-        final SmtpAppender appender = SmtpAppender.newBuilder()
-                .setConfiguration(new DefaultConfiguration())
-                .setName("Test")
-                .setTo("to@example.com")
-                .setCc("cc@example.com")
-                .setBcc("bcc@example.com")
-                .setFrom("from@example.com")
-                .setReplyTo("replyTo@example.com")
-                .setSubject("Subject Pattern %X{" + subjectKey + "} %maxLen{%m}{10}")
-                .setSmtpHost(HOST)
-                .setSmtpPort(smtpPort)
-                .setBufferSize(3)
-                .build();
-        appender.start();
-
-        final LoggerContext context = LoggerContext.getContext();
-        final Logger root = context.getLogger("SMTPAppenderTest");
-        root.addAppender(appender);
-        root.setAdditive(false);
-        root.setLevel(Level.DEBUG);
-
-        final SimpleSmtpServer server = SimpleSmtpServer.start(smtpPort);
-
-        root.debug("Debug message #1");
-        root.debug("Debug message #2");
-        root.debug("Debug message #3");
-        root.debug("Debug message #4");
-        root.error("Error with exception", new RuntimeException("Exception message"));
-        root.error("Error message #2");
-
-        server.stop();
-        assertTrue(server.getReceivedEmailSize() == 2);
-        final Iterator<SmtpMessage> messages = server.getReceivedEmail();
-        final SmtpMessage email = messages.next();
-
-        assertEquals("to@example.com", email.getHeaderValue("To"));
-        assertEquals("cc@example.com", email.getHeaderValue("Cc"));
-        // assertEquals("bcc@example.com", email.getHeaderValue("Bcc")); // BCC
-        // can't be tested with Dumpster 1.6
-        assertEquals("from@example.com", email.getHeaderValue("From"));
-        assertEquals("replyTo@example.com", email.getHeaderValue("Reply-To"));
-        assertEquals("Subject Pattern " + subjectValue +" Error with", email.getHeaderValue("Subject"));
-
-        final String body = email.getBody();
-        assertFalse(body.contains("Debug message #1"));
-        assertTrue(body.contains("Debug message #2"));
-        assertTrue(body.contains("Debug message #3"));
-        assertTrue(body.contains("Debug message #4"));
-        assertTrue(body.contains("Error with exception"));
-        assertTrue(body.contains("RuntimeException"));
-        assertTrue(body.contains("Exception message"));
-        assertFalse(body.contains("Error message #2"));
-
-        final SmtpMessage email2 = messages.next();
-
-        assertEquals("Subject Pattern " + subjectValue +" Error mess", email2.getHeaderValue("Subject"));
-
-        final String body2 = email2.getBody();
-        assertFalse(body2.contains("Debug message #4"));
-        assertFalse(body2.contains("Error with exception"));
-        assertTrue(body2.contains("Error message #2"));
-    }
-}
diff --git a/log4j-smtp/src/test/java/org/apache/logging/log4j/smtp/appender/SmtpManagerTest.java b/log4j-smtp/src/test/java/org/apache/logging/log4j/smtp/appender/SmtpManagerTest.java
deleted file mode 100644
index 65ceccc1f3..0000000000
--- a/log4j-smtp/src/test/java/org/apache/logging/log4j/smtp/appender/SmtpManagerTest.java
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.smtp.appender;
-
-import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.core.async.RingBufferLogEvent;
-import org.apache.logging.log4j.core.config.DefaultConfiguration;
-import org.apache.logging.log4j.core.impl.Log4jLogEvent;
-import org.apache.logging.log4j.core.impl.MementoMessage;
-import org.apache.logging.log4j.core.impl.MutableLogEvent;
-import org.apache.logging.log4j.core.time.ClockFactory;
-import org.apache.logging.log4j.core.time.internal.DummyNanoClock;
-import org.apache.logging.log4j.message.ReusableMessage;
-import org.apache.logging.log4j.message.ReusableSimpleMessage;
-import org.junit.jupiter.api.Test;
-
-import static org.hamcrest.CoreMatchers.instanceOf;
-import static org.hamcrest.CoreMatchers.is;
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.jupiter.api.Assertions.assertEquals;
-
-/**
- * Unit tests for {@link SmtpManager}.
- */
-public class SmtpManagerTest {
-
-    @Test
-    void testCreateManagerName() {
-        final String managerName = SmtpManager.createManagerName("to", "cc", null, "from", null, "LOG4J2-3107",
-            "proto", "smtp.log4j.com", 4711, "username", false, "filter");
-        assertEquals("SMTP:to:cc::from::LOG4J2-3107:proto:smtp.log4j.com:4711:username::filter", managerName);
-    }
-
-    private void testAdd(final LogEvent event) {
-        final SmtpManager smtpManager = SmtpManager.getSmtpManager(new DefaultConfiguration(), "to", "cc", "bcc", "from", "replyTo", "subject", "protocol", "host", 0, "username", "password", false, "filterName", 10, null);
-        smtpManager.removeAllBufferedEvents(); // in case this smtpManager is reused
-        smtpManager.add(event);
-
-        final LogEvent[] bufferedEvents = smtpManager.removeAllBufferedEvents();
-        assertThat("unexpected number of buffered events", bufferedEvents.length, is(1));
-        assertThat("expected the immutable version of the event to be buffered", bufferedEvents[0].getMessage(), is(instanceOf(MementoMessage.class)));
-    }
-
-    // LOG4J2-3172: make sure existing protections are not violated
-    @Test
-    void testAdd_WhereLog4jLogEventWithReusableMessage() {
-        final LogEvent event = new Log4jLogEvent.Builder().setMessage(getReusableMessage("test message")).build();
-        testAdd(event);
-    }
-
-    // LOG4J2-3172: make sure existing protections are not violated
-    @Test
-    void testAdd_WhereMutableLogEvent() {
-        final MutableLogEvent event = new MutableLogEvent(new StringBuilder("test message"), null);
-        testAdd(event);
-    }
-
-    // LOG4J2-3172
-    @Test
-    void testAdd_WhereRingBufferLogEvent() {
-        final RingBufferLogEvent event = new RingBufferLogEvent();
-        event.setValues(null, null, null, null, null, getReusableMessage("test message"), null, null, null, 0, null, 0, null, ClockFactory.getClock(), new DummyNanoClock());
-        testAdd(event);
-    }
-
-    private ReusableMessage getReusableMessage(final String text) {
-        final ReusableSimpleMessage message = new ReusableSimpleMessage();
-        message.set(text);
-        return message;
-    }
-
-}
diff --git a/log4j-smtp/src/test/resources/SmtpAppenderAsyncTest.xml b/log4j-smtp/src/test/resources/SmtpAppenderAsyncTest.xml
deleted file mode 100644
index ff29f544df..0000000000
--- a/log4j-smtp/src/test/resources/SmtpAppenderAsyncTest.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<Configuration name="SmtpAppenderAsyncTest" status="WARN">
-    <Appenders>
-        <SMTP name="mail-sync" to="to@example.com" from="from@example.com" smtpHost="localhost"
-              smtpPort="${sys:smtp.port}" ignoreExceptions="false" subject="[%X{MDC1}]">
-            <PatternLayout pattern="Body:[%X{MDC1}]" />
-        </SMTP>
-        <Async name="mail-async">
-            <AppenderRef ref="mail-sync"/>
-        </Async>
-        <Console name="Console" target="SYSTEM_OUT">
-            <PatternLayout pattern="%d [%t] %-5level: %msg%n%throwable" />
-        </Console>
-    </Appenders>
-    <Loggers>
-        <Root level="FATAL">
-          <AppenderRef ref="Console"/>
-        </Root>
-        <Logger name="sync" level="INFO">
-            <AppenderRef ref="mail-sync"/>
-        </Logger>
-        <Logger name="async" level="INFO">
-            <AppenderRef ref="mail-async"/>
-        </Logger>
-    </Loggers>
-</Configuration>
diff --git a/pom.xml b/pom.xml
index 4737881f96..f1afdd23a5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -270,7 +270,6 @@
     <module>log4j-script</module>
     <module>log4j-slf4j2-impl</module>
     <module>log4j-slf4j-impl</module>
-    <module>log4j-smtp</module>
     <module>log4j-spring-boot</module>
     <module>log4j-spring-cloud-config</module>
     <module>log4j-taglib</module>
@@ -570,12 +569,6 @@
         <version>${project.version}</version>
       </dependency>
 
-      <dependency>
-        <groupId>org.apache.logging.log4j</groupId>
-        <artifactId>log4j-smtp</artifactId>
-        <version>${project.version}</version>
-      </dependency>
-
       <dependency>
         <groupId>org.apache.logging.log4j</groupId>
         <artifactId>log4j-spring-boot</artifactId>
diff --git a/src/site/asciidoc/runtime-dependencies.adoc b/src/site/asciidoc/runtime-dependencies.adoc
index 65361a50ee..003c7b08da 100644
--- a/src/site/asciidoc/runtime-dependencies.adoc
+++ b/src/site/asciidoc/runtime-dependencies.adoc
@@ -537,9 +537,6 @@ the exact list of JAR files needed for these features.
 You need to use a version of the Kafka client library matching the Kafka server used.
 ====
 
-|SMTP Appender
-|an implementation of `javax.mail`
-
 |Windows console color support
 |http://jansi.fusesource.org/[Jansi]
 


(logging-log4j2) 04/06: Minor fixes (#1966)

Posted by vy...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vy pushed a commit to branch jee-deletion
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit eff464eeb480b1e81bc66d3d659dd99168d77994
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Mon Nov 20 12:20:18 2023 +0100

    Minor fixes (#1966)
---
 .../org/apache/logging/log4j/core/test/categories/Appenders.java | 1 -
 log4j-core-test/src/main/resources/Log4j-config.xsd              | 9 ---------
 .../src/main/java/org/apache/logging/log4j/core/Layout.java      | 7 +++++++
 log4j-core/src/main/resources/Log4j-config.xsd                   | 9 ---------
 4 files changed, 7 insertions(+), 19 deletions(-)

diff --git a/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/categories/Appenders.java b/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/categories/Appenders.java
index a8aaee98b4..dd97f5bcfb 100644
--- a/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/categories/Appenders.java
+++ b/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/categories/Appenders.java
@@ -27,6 +27,5 @@ public interface Appenders {
     interface Jpa {}
     interface Kafka {}
     interface MongoDb {}
-    interface Smtp {}
     interface ZeroMq {}
 }
diff --git a/log4j-core-test/src/main/resources/Log4j-config.xsd b/log4j-core-test/src/main/resources/Log4j-config.xsd
index 8f6687459e..c8b3853090 100644
--- a/log4j-core-test/src/main/resources/Log4j-config.xsd
+++ b/log4j-core-test/src/main/resources/Log4j-config.xsd
@@ -650,7 +650,6 @@
          <element name="Kafka" type="tns:KafkaAppenderType" minOccurs="0" />
          <element name="Rewrite" type="tns:RewriteAppenderType" minOccurs="0" />
          <element name="Routing" type="tns:RoutingAppenderType" minOccurs="0" />
-         <element name="SMTP" type="tns:SMTPAppenderType" minOccurs="0" />
          <element name="File" type="tns:FileAppenderType" minOccurs="0" />
          <element name="MemoryMappedFile" type="tns:MemoryMappedFileAppenderType" minOccurs="0" />
          <element name="RandomAccessFile" type="tns:RandomAccessFileAppenderType" minOccurs="0" />
@@ -918,14 +917,6 @@
       </complexContent>
    </complexType>
 
-   <complexType name="SMTPAppenderType">
-      <complexContent>
-         <extension base="tns:AbstractAppenderType">
-            <anyAttribute processContents="lax" />
-         </extension>
-      </complexContent>
-   </complexType>
-
    <complexType name="AbstractFileAppenderType" abstract="true">
       <complexContent>
          <extension base="tns:AbstractAppenderType">
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/Layout.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/Layout.java
index 70e2f57fd1..9c7a81dc31 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/Layout.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/Layout.java
@@ -60,6 +60,13 @@ public interface Layout extends Encoder<LogEvent> {
      */
     byte[] toByteArray(LogEvent event);
 
+    /**
+     * Returns the character set used for encoding log events.
+     */
+    default Charset getCharset() {
+        return StandardCharsets.UTF_8;
+    }
+
     /**
      * Serializes the log event into a String.
      *
diff --git a/log4j-core/src/main/resources/Log4j-config.xsd b/log4j-core/src/main/resources/Log4j-config.xsd
index 8f6687459e..c8b3853090 100644
--- a/log4j-core/src/main/resources/Log4j-config.xsd
+++ b/log4j-core/src/main/resources/Log4j-config.xsd
@@ -650,7 +650,6 @@
          <element name="Kafka" type="tns:KafkaAppenderType" minOccurs="0" />
          <element name="Rewrite" type="tns:RewriteAppenderType" minOccurs="0" />
          <element name="Routing" type="tns:RoutingAppenderType" minOccurs="0" />
-         <element name="SMTP" type="tns:SMTPAppenderType" minOccurs="0" />
          <element name="File" type="tns:FileAppenderType" minOccurs="0" />
          <element name="MemoryMappedFile" type="tns:MemoryMappedFileAppenderType" minOccurs="0" />
          <element name="RandomAccessFile" type="tns:RandomAccessFileAppenderType" minOccurs="0" />
@@ -918,14 +917,6 @@
       </complexContent>
    </complexType>
 
-   <complexType name="SMTPAppenderType">
-      <complexContent>
-         <extension base="tns:AbstractAppenderType">
-            <anyAttribute processContents="lax" />
-         </extension>
-      </complexContent>
-   </complexType>
-
    <complexType name="AbstractFileAppenderType" abstract="true">
       <complexContent>
          <extension base="tns:AbstractAppenderType">


(logging-log4j2) 03/06: Delete Jakarta SMTP appender (#1966)

Posted by vy...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vy pushed a commit to branch jee-deletion
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit c1bf0172a245550c6f6bd11a4eca4a17a5bb5dc8
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Mon Nov 20 12:13:47 2023 +0100

    Delete Jakarta SMTP appender (#1966)
---
 log4j-jakarta-smtp/pom.xml                         | 121 -------
 .../logging/log4j/smtp/MimeMessageBuilder.java     |  93 -----
 .../logging/log4j/smtp/appender/SmtpAppender.java  | 276 ---------------
 .../logging/log4j/smtp/appender/SmtpManager.java   | 394 ---------------------
 .../apache/logging/log4j/smtp/package-info.java    |  22 --
 .../logging/dumbster/smtp/SimpleSmtpServer.java    | 279 ---------------
 .../logging/dumbster/smtp/SmtpActionType.java      | 202 -----------
 .../apache/logging/dumbster/smtp/SmtpMessage.java  | 154 --------
 .../apache/logging/dumbster/smtp/SmtpRequest.java  | 233 ------------
 .../apache/logging/dumbster/smtp/SmtpResponse.java |  75 ----
 .../apache/logging/dumbster/smtp/SmtpState.java    | 121 -------
 .../org/apache/logging/dumbster/smtp/readme.txt    |   4 -
 .../log4j/smtp/appender/SmtpAppenderAsyncTest.java |  98 -----
 .../log4j/smtp/appender/SmtpAppenderTest.java      | 180 ----------
 .../log4j/smtp/appender/SmtpManagerTest.java       |  86 -----
 .../src/test/resources/SmtpAppenderAsyncTest.xml   |  42 ---
 log4j-parent/pom.xml                               |  13 -
 pom.xml                                            |   7 -
 src/site/asciidoc/runtime-dependencies.adoc        |   6 -
 19 files changed, 2406 deletions(-)

diff --git a/log4j-jakarta-smtp/pom.xml b/log4j-jakarta-smtp/pom.xml
deleted file mode 100644
index 7d16b56ee8..0000000000
--- a/log4j-jakarta-smtp/pom.xml
+++ /dev/null
@@ -1,121 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <parent>
-    <groupId>org.apache.logging.log4j</groupId>
-    <artifactId>log4j</artifactId>
-    <version>${revision}</version>
-    <relativePath>../log4j-parent</relativePath>
-  </parent>
-
-  <artifactId>log4j-jakarta-smtp</artifactId>
-  <name>Apache Log4j Jakarta SMTP</name>
-  <description>Apache Log4j Simple Mail Transfer Protocol (SMTP) Appender, version for Jakarta EE 9.</description>
-  <properties>
-    <log4jParentDir>${basedir}/..</log4jParentDir>
-    <docLabel>Log4j SMTP Appender Documentation</docLabel>
-    <projectDir>/log4j-jakarta-smtp</projectDir>
-
-    <!--
-      ~ OSGi and JPMS options
-      -->
-    <bnd-module-name>org.apache.logging.log4j.smtp</bnd-module-name>
-    <Fragment-Host>org.apache.logging.log4j.core</Fragment-Host>
-  </properties>
-
-  <dependencies>
-    <!-- Required for SMTPAppender -->
-    <dependency>
-      <groupId>jakarta.activation</groupId>
-      <artifactId>jakarta.activation-api</artifactId>
-      <scope>provided</scope>
-    </dependency>
-    <dependency>
-      <groupId>jakarta.mail</groupId>
-      <artifactId>jakarta.mail-api</artifactId>
-      <scope>provided</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-api</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-core</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.eclipse.angus</groupId>
-      <artifactId>angus-activation</artifactId>
-      <scope>runtime</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.eclipse.angus</groupId>
-      <artifactId>jakarta.mail</artifactId>
-      <scope>runtime</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-api-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-core-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>com.lmax</groupId>
-      <artifactId>disruptor</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.hamcrest</groupId>
-      <artifactId>hamcrest</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.junit.jupiter</groupId>
-      <artifactId>junit-jupiter-engine</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.junit.vintage</groupId>
-      <artifactId>junit-vintage-engine</artifactId>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <annotationProcessorPaths combine.children="append">
-            <path>
-              <groupId>org.apache.logging.log4j</groupId>
-              <artifactId>log4j-plugin-processor</artifactId>
-              <version>${project.version}</version>
-            </path>
-          </annotationProcessorPaths>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
-</project>
diff --git a/log4j-jakarta-smtp/src/main/java/org/apache/logging/log4j/smtp/MimeMessageBuilder.java b/log4j-jakarta-smtp/src/main/java/org/apache/logging/log4j/smtp/MimeMessageBuilder.java
deleted file mode 100644
index f5065448d0..0000000000
--- a/log4j-jakarta-smtp/src/main/java/org/apache/logging/log4j/smtp/MimeMessageBuilder.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.smtp;
-
-import java.nio.charset.StandardCharsets;
-
-import jakarta.mail.Message;
-import jakarta.mail.MessagingException;
-import jakarta.mail.Session;
-import jakarta.mail.internet.AddressException;
-import jakarta.mail.internet.InternetAddress;
-import jakarta.mail.internet.MimeMessage;
-
-import org.apache.logging.log4j.plugins.util.Builder;
-
-/**
- * Builder for {@link MimeMessage} instances.
- */
-public class MimeMessageBuilder implements Builder<MimeMessage> {
-    private final MimeMessage message;
-
-    public MimeMessageBuilder(final Session session) {
-        message = new MimeMessage(session);
-    }
-
-    public MimeMessageBuilder setFrom(final String from) throws MessagingException {
-        final InternetAddress address = parseAddress(from);
-
-        if (null != address) {
-            message.setFrom(address);
-        } else {
-            try {
-                message.setFrom();
-            } catch (final Exception ex) {
-                message.setFrom((InternetAddress) null);
-            }
-        }
-        return this;
-    }
-
-    public MimeMessageBuilder setReplyTo(final String replyTo) throws MessagingException {
-        final InternetAddress[] addresses = parseAddresses(replyTo);
-
-        if (null != addresses) {
-            message.setReplyTo(addresses);
-        }
-        return this;
-    }
-
-    public MimeMessageBuilder setRecipients(final Message.RecipientType recipientType, final String recipients)
-        throws MessagingException {
-        final InternetAddress[] addresses = parseAddresses(recipients);
-
-        if (null != addresses) {
-            message.setRecipients(recipientType, addresses);
-        }
-        return this;
-    }
-
-    public MimeMessageBuilder setSubject(final String subject) throws MessagingException {
-        if (subject != null) {
-            message.setSubject(subject, StandardCharsets.UTF_8.name());
-        }
-        return this;
-    }
-
-    @Override
-    public MimeMessage build() {
-        return message;
-    }
-
-    private static InternetAddress parseAddress(final String address) throws AddressException {
-        return address == null ? null : new InternetAddress(address);
-    }
-
-    private static InternetAddress[] parseAddresses(final String addresses) throws AddressException {
-        return addresses == null ? null : InternetAddress.parse(addresses, true);
-    }
-}
diff --git a/log4j-jakarta-smtp/src/main/java/org/apache/logging/log4j/smtp/appender/SmtpAppender.java b/log4j-jakarta-smtp/src/main/java/org/apache/logging/log4j/smtp/appender/SmtpAppender.java
deleted file mode 100644
index 559269cd8d..0000000000
--- a/log4j-jakarta-smtp/src/main/java/org/apache/logging/log4j/smtp/appender/SmtpAppender.java
+++ /dev/null
@@ -1,276 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.smtp.appender;
-
-import org.apache.logging.log4j.core.Appender;
-import org.apache.logging.log4j.core.Filter;
-import org.apache.logging.log4j.core.Layout;
-import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.core.appender.AbstractAppender;
-import org.apache.logging.log4j.core.config.Property;
-import org.apache.logging.log4j.core.filter.ThresholdFilter;
-import org.apache.logging.log4j.core.layout.HtmlLayout;
-import org.apache.logging.log4j.core.net.ssl.SslConfiguration;
-import org.apache.logging.log4j.plugins.Configurable;
-import org.apache.logging.log4j.plugins.Plugin;
-import org.apache.logging.log4j.plugins.PluginAttribute;
-import org.apache.logging.log4j.plugins.PluginElement;
-import org.apache.logging.log4j.plugins.PluginFactory;
-import org.apache.logging.log4j.plugins.validation.constraints.ValidPort;
-
-/**
- * Send an e-mail when a specific logging event occurs, typically on errors or
- * fatal errors.
- *
- * <p>
- * The number of logging events delivered in this e-mail depend on the value of
- * <b>BufferSize</b> option. The <code>SmtpAppender</code> keeps only the last
- * <code>BufferSize</code> logging events in its cyclic buffer. This keeps
- * memory requirements at a reasonable level while still delivering useful
- * application context.
- *
- * By default, an email message will be formatted as HTML. This can be modified by
- * setting a layout for the appender.
- *
- * By default, an email message will be sent when an ERROR or higher severity
- * message is appended. This can be modified by setting a filter for the
- * appender.
- */
-@Configurable(elementType = Appender.ELEMENT_TYPE, printObject = true)
-@Plugin("SMTP")
-public final class SmtpAppender extends AbstractAppender {
-
-    private static final int DEFAULT_BUFFER_SIZE = 512;
-
-    /** The SMTP Manager */
-    private final SmtpManager manager;
-
-    private SmtpAppender(final String name, final Filter filter, final Layout layout, final boolean ignoreExceptions,
-                         Property[] properties, final SmtpManager manager) {
-        super(name, filter, layout, ignoreExceptions, properties);
-        this.manager = manager;
-    }
-
-    /**
-     * @since 2.13.2
-     */
-    public static class Builder extends AbstractAppender.Builder<Builder>
-            implements org.apache.logging.log4j.plugins.util.Builder<SmtpAppender> {
-        @PluginAttribute
-        private String to;
-
-        @PluginAttribute
-        private String cc;
-
-        @PluginAttribute
-        private String bcc;
-
-        @PluginAttribute
-        private String from;
-
-        @PluginAttribute
-        private String replyTo;
-
-        @PluginAttribute
-        private String subject;
-
-        @PluginAttribute
-        private String smtpProtocol = "smtp";
-
-        @PluginAttribute
-        private String smtpHost;
-
-        @PluginAttribute
-        @ValidPort
-        private int smtpPort;
-
-        @PluginAttribute
-        private String smtpUsername;
-
-        @PluginAttribute(sensitive = true)
-        private String smtpPassword;
-
-        @PluginAttribute
-        private boolean smtpDebug;
-
-        @PluginAttribute
-        private int bufferSize = DEFAULT_BUFFER_SIZE;
-
-        @PluginElement("SSL")
-        private SslConfiguration sslConfiguration;
-
-        /**
-         * Comma-separated list of recipient email addresses.
-         */
-        public Builder setTo(final String to) {
-            this.to = to;
-            return this;
-        }
-
-        /**
-         * Comma-separated list of CC email addresses.
-         */
-        public Builder setCc(final String cc) {
-            this.cc = cc;
-            return this;
-        }
-
-        /**
-         * Comma-separated list of BCC email addresses.
-         */
-        public Builder setBcc(final String bcc) {
-            this.bcc = bcc;
-            return this;
-        }
-
-        /**
-         * Email address of the sender.
-         */
-        public Builder setFrom(final String from) {
-            this.from = from;
-            return this;
-        }
-
-        /**
-         * Comma-separated list of Reply-To email addresses.
-         */
-        public Builder setReplyTo(final String replyTo) {
-            this.replyTo = replyTo;
-            return this;
-        }
-
-        /**
-         * Subject template for the email messages.
-         * @see org.apache.logging.log4j.core.layout.PatternLayout
-         */
-        public Builder setSubject(final String subject) {
-            this.subject = subject;
-            return this;
-        }
-
-        /**
-         * Transport protocol to use for SMTP such as "smtp" or "smtps". Defaults to "smtp".
-         */
-        public Builder setSmtpProtocol(final String smtpProtocol) {
-            this.smtpProtocol = smtpProtocol;
-            return this;
-        }
-
-        /**
-         * Host name of SMTP server to send messages through.
-         */
-        public Builder setSmtpHost(final String smtpHost) {
-            this.smtpHost = smtpHost;
-            return this;
-        }
-
-        /**
-         * Port number of SMTP server to send messages through.
-         */
-        public Builder setSmtpPort(final int smtpPort) {
-            this.smtpPort = smtpPort;
-            return this;
-        }
-
-        /**
-         * Username to authenticate with SMTP server.
-         */
-        public Builder setSmtpUsername(final String smtpUsername) {
-            this.smtpUsername = smtpUsername;
-            return this;
-        }
-
-        /**
-         * Password to authenticate with SMTP server.
-         */
-        public Builder setSmtpPassword(final String smtpPassword) {
-            this.smtpPassword = smtpPassword;
-            return this;
-        }
-
-        /**
-         * Enables or disables mail session debugging on STDOUT. Disabled by default.
-         */
-        public Builder setSmtpDebug(final boolean smtpDebug) {
-            this.smtpDebug = smtpDebug;
-            return this;
-        }
-
-        /**
-         * Number of log events to buffer before sending an email. Defaults to {@value #DEFAULT_BUFFER_SIZE}.
-         */
-        public Builder setBufferSize(final int bufferSize) {
-            this.bufferSize = bufferSize;
-            return this;
-        }
-
-        /**
-         * Specifies an SSL configuration for smtps connections.
-         */
-        public Builder setSslConfiguration(final SslConfiguration sslConfiguration) {
-            this.sslConfiguration = sslConfiguration;
-            return this;
-        }
-
-        @Override
-        public SmtpAppender build() {
-            if (getLayout() == null) {
-                setLayout(HtmlLayout.createDefaultLayout());
-            }
-            if (getFilter() == null) {
-                setFilter(ThresholdFilter.createFilter(null, null, null));
-            }
-            final SmtpManager smtpManager = SmtpManager.getSmtpManager(getConfiguration(), to, cc, bcc, from, replyTo,
-                    subject, smtpProtocol, smtpHost, smtpPort, smtpUsername, smtpPassword, smtpDebug,
-                    getFilter().toString(), bufferSize, sslConfiguration);
-            return new SmtpAppender(getName(), getFilter(), getLayout(), isIgnoreExceptions(), getPropertyArray(), smtpManager);
-        }
-    }
-
-    /**
-     * @since 2.13.2
-     */
-    @PluginFactory
-    public static Builder newBuilder() {
-        return new Builder();
-    }
-
-    /**
-     * Capture all events in CyclicBuffer.
-     * @param event The Log event.
-     * @return true if the event should be filtered.
-     */
-    @Override
-    public boolean isFiltered(final LogEvent event) {
-        final boolean filtered = super.isFiltered(event);
-        if (filtered) {
-            manager.add(event);
-        }
-        return filtered;
-    }
-
-    /**
-     * Perform SmtpAppender specific appending actions, mainly adding the event
-     * to a cyclic buffer and checking if the event triggers an e-mail to be
-     * sent.
-     * @param event The Log event.
-     */
-    @Override
-    public void append(final LogEvent event) {
-        manager.sendEvents(getLayout(), event);
-    }
-}
diff --git a/log4j-jakarta-smtp/src/main/java/org/apache/logging/log4j/smtp/appender/SmtpManager.java b/log4j-jakarta-smtp/src/main/java/org/apache/logging/log4j/smtp/appender/SmtpManager.java
deleted file mode 100644
index 35f9ec64f2..0000000000
--- a/log4j-jakarta-smtp/src/main/java/org/apache/logging/log4j/smtp/appender/SmtpManager.java
+++ /dev/null
@@ -1,394 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.smtp.appender;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.util.Date;
-import java.util.Properties;
-
-import javax.net.ssl.SSLSocketFactory;
-
-import jakarta.activation.DataSource;
-import jakarta.mail.Authenticator;
-import jakarta.mail.Message;
-import jakarta.mail.MessagingException;
-import jakarta.mail.PasswordAuthentication;
-import jakarta.mail.Session;
-import jakarta.mail.Transport;
-import jakarta.mail.internet.InternetHeaders;
-import jakarta.mail.internet.MimeBodyPart;
-import jakarta.mail.internet.MimeMessage;
-import jakarta.mail.internet.MimeMultipart;
-import jakarta.mail.internet.MimeUtility;
-import jakarta.mail.util.ByteArrayDataSource;
-
-import org.apache.logging.log4j.LoggingException;
-import org.apache.logging.log4j.core.Layout;
-import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.core.appender.AbstractManager;
-import org.apache.logging.log4j.core.appender.ManagerFactory;
-import org.apache.logging.log4j.core.config.Configuration;
-import org.apache.logging.log4j.core.layout.AbstractStringLayout.Serializer;
-import org.apache.logging.log4j.core.layout.PatternLayout;
-import org.apache.logging.log4j.core.net.ssl.SslConfiguration;
-import org.apache.logging.log4j.core.util.CyclicBuffer;
-import org.apache.logging.log4j.core.util.NetUtils;
-import org.apache.logging.log4j.smtp.MimeMessageBuilder;
-import org.apache.logging.log4j.util.Strings;
-
-/**
- * Manager for sending SMTP events.
- */
-public class SmtpManager extends AbstractManager {
-    private static final SMTPManagerFactory FACTORY = new SMTPManagerFactory();
-
-    private final Session session;
-
-    private final CyclicBuffer<LogEvent> buffer;
-
-    private volatile MimeMessage message;
-
-    private final FactoryData data;
-
-    private static MimeMessage createMimeMessage(final FactoryData data, final Session session, final LogEvent appendEvent)
-            throws MessagingException {
-        return new MimeMessageBuilder(session).setFrom(data.from).setReplyTo(data.replyto)
-                .setRecipients(Message.RecipientType.TO, data.to).setRecipients(Message.RecipientType.CC, data.cc)
-                .setRecipients(Message.RecipientType.BCC, data.bcc).setSubject(data.subject.toSerializable(appendEvent))
-                .build();
-    }
-
-    protected SmtpManager(final String name, final Session session, final MimeMessage message,
-                          final FactoryData data) {
-        super(null, name);
-        this.session = session;
-        this.message = message;
-        this.data = data;
-        this.buffer = new CyclicBuffer<>(LogEvent.class, data.numElements);
-    }
-
-    public void add(final LogEvent event) {
-        buffer.add(event.toImmutable());
-    }
-
-    public static SmtpManager getSmtpManager(
-                                             final Configuration config,
-                                             final String to, final String cc, final String bcc,
-                                             final String from, final String replyTo,
-                                             final String subject, String protocol, final String host,
-                                             final int port, final String username, final String password,
-                                             final boolean isDebug, final String filterName, final int numElements,
-                                             final SslConfiguration sslConfiguration) {
-        if (Strings.isEmpty(protocol)) {
-            protocol = "smtp";
-        }
-
-        final String name = createManagerName(to, cc, bcc, from, replyTo, subject, protocol, host, port, username, isDebug, filterName);
-        final Serializer subjectSerializer = PatternLayout.newSerializerBuilder().setConfiguration(config).setPattern(subject).build();
-
-        return getManager(name, FACTORY, new FactoryData(to, cc, bcc, from, replyTo, subjectSerializer,
-            protocol, host, port, username, password, isDebug, numElements, sslConfiguration));
-
-    }
-
-    /**
-     * Creates a unique-per-configuration name for an smtp manager using the specified the parameters.<br>
-     * Using such a name allows us to maintain singletons per unique configurations.
-     *
-     * @return smtp manager name
-     */
-    static String createManagerName(
-            final String to,
-            final String cc,
-            final String bcc,
-            final String from,
-            final String replyTo,
-            final String subject,
-            final String protocol,
-            final String host,
-            final int port,
-            final String username,
-            final boolean isDebug,
-            final String filterName) {
-
-        final StringBuilder sb = new StringBuilder();
-
-        if (to != null) {
-            sb.append(to);
-        }
-        sb.append(':');
-        if (cc != null) {
-            sb.append(cc);
-        }
-        sb.append(':');
-        if (bcc != null) {
-            sb.append(bcc);
-        }
-        sb.append(':');
-        if (from != null) {
-            sb.append(from);
-        }
-        sb.append(':');
-        if (replyTo != null) {
-            sb.append(replyTo);
-        }
-        sb.append(':');
-        if (subject != null) {
-            sb.append(subject);
-        }
-        sb.append(':');
-        sb.append(protocol).append(':').append(host).append(':').append(port).append(':');
-        if (username != null) {
-            sb.append(username);
-        }
-        sb.append(isDebug ? ":debug:" : "::");
-        sb.append(filterName);
-
-        return "SMTP:" + sb.toString();
-    }
-
-    /**
-     * Send the contents of the cyclic buffer as an e-mail message.
-     * @param layout The layout for formatting the events.
-     * @param appendEvent The event that triggered the send.
-     */
-    public void sendEvents(final Layout layout, final LogEvent appendEvent) {
-        if (message == null) {
-            connect(appendEvent);
-        }
-        try {
-            final LogEvent[] priorEvents = removeAllBufferedEvents();
-            // LOG4J-310: log appendEvent even if priorEvents is empty
-
-            final byte[] rawBytes = formatContentToBytes(priorEvents, appendEvent, layout);
-
-            final String contentType = layout.getContentType();
-            final String encoding = getEncoding(rawBytes, contentType);
-            final byte[] encodedBytes = encodeContentToBytes(rawBytes, encoding);
-
-            final InternetHeaders headers = getHeaders(contentType, encoding);
-            final MimeMultipart mp = getMimeMultipart(encodedBytes, headers);
-
-            final String subject = data.subject.toSerializable(appendEvent);
-
-            sendMultipartMessage(message, mp, subject);
-        } catch (final MessagingException | IOException | RuntimeException e) {
-            logError("Caught exception while sending e-mail notification.", e);
-            throw new LoggingException("Error occurred while sending email", e);
-        }
-    }
-
-    LogEvent[] removeAllBufferedEvents() {
-        return buffer.removeAll();
-    }
-
-    protected byte[] formatContentToBytes(final LogEvent[] priorEvents, final LogEvent appendEvent,
-                                          final Layout layout) throws IOException {
-        final ByteArrayOutputStream raw = new ByteArrayOutputStream();
-        writeContent(priorEvents, appendEvent, layout, raw);
-        return raw.toByteArray();
-    }
-
-    private void writeContent(final LogEvent[] priorEvents, final LogEvent appendEvent, final Layout layout,
-                              final ByteArrayOutputStream out)
-        throws IOException {
-        writeHeader(layout, out);
-        writeBuffer(priorEvents, appendEvent, layout, out);
-        writeFooter(layout, out);
-    }
-
-    protected void writeHeader(final Layout layout, final OutputStream out) throws IOException {
-        final byte[] header = layout.getHeader();
-        if (header != null) {
-            out.write(header);
-        }
-    }
-
-    protected void writeBuffer(final LogEvent[] priorEvents, final LogEvent appendEvent, final Layout layout,
-                               final OutputStream out) throws IOException {
-        for (final LogEvent priorEvent : priorEvents) {
-            final byte[] bytes = layout.toByteArray(priorEvent);
-            out.write(bytes);
-        }
-
-        final byte[] bytes = layout.toByteArray(appendEvent);
-        out.write(bytes);
-    }
-
-    protected void writeFooter(final Layout layout, final OutputStream out) throws IOException {
-        final byte[] footer = layout.getFooter();
-        if (footer != null) {
-            out.write(footer);
-        }
-    }
-
-    protected String getEncoding(final byte[] rawBytes, final String contentType) {
-        final DataSource dataSource = new ByteArrayDataSource(rawBytes, contentType);
-        return MimeUtility.getEncoding(dataSource);
-    }
-
-    protected byte[] encodeContentToBytes(final byte[] rawBytes, final String encoding)
-        throws MessagingException, IOException {
-        final ByteArrayOutputStream encoded = new ByteArrayOutputStream();
-        encodeContent(rawBytes, encoding, encoded);
-        return encoded.toByteArray();
-    }
-
-    protected void encodeContent(final byte[] bytes, final String encoding, final ByteArrayOutputStream out)
-            throws MessagingException, IOException {
-        try (final OutputStream encoder = MimeUtility.encode(out, encoding)) {
-            encoder.write(bytes);
-        }
-    }
-
-    protected InternetHeaders getHeaders(final String contentType, final String encoding) {
-        final InternetHeaders headers = new InternetHeaders();
-        headers.setHeader("Content-Type", contentType + "; charset=UTF-8");
-        headers.setHeader("Content-Transfer-Encoding", encoding);
-        return headers;
-    }
-
-    protected MimeMultipart getMimeMultipart(final byte[] encodedBytes, final InternetHeaders headers)
-        throws MessagingException {
-        final MimeMultipart mp = new MimeMultipart();
-        final MimeBodyPart part = new MimeBodyPart(headers, encodedBytes);
-        mp.addBodyPart(part);
-        return mp;
-    }
-
-    protected void sendMultipartMessage(final MimeMessage msg, final MimeMultipart mp, final String subject) throws MessagingException {
-        synchronized (msg) {
-            msg.setContent(mp);
-            msg.setSentDate(new Date());
-            msg.setSubject(subject);
-            Transport.send(msg);
-        }
-    }
-
-    /**
-     * Factory data.
-     */
-    private static class FactoryData {
-        private final String to;
-        private final String cc;
-        private final String bcc;
-        private final String from;
-        private final String replyto;
-        private final Serializer subject;
-        private final String protocol;
-        private final String host;
-        private final int port;
-        private final String username;
-        private final String password;
-        private final boolean isDebug;
-        private final int numElements;
-        private final SslConfiguration sslConfiguration;
-
-        public FactoryData(final String to, final String cc, final String bcc, final String from, final String replyTo,
-                           final Serializer subjectSerializer, final String protocol, final String host, final int port,
-                           final String username, final String password, final boolean isDebug, final int numElements,
-                           final SslConfiguration sslConfiguration) {
-            this.to = to;
-            this.cc = cc;
-            this.bcc = bcc;
-            this.from = from;
-            this.replyto = replyTo;
-            this.subject = subjectSerializer;
-            this.protocol = protocol;
-            this.host = host;
-            this.port = port;
-            this.username = username;
-            this.password = password;
-            this.isDebug = isDebug;
-            this.numElements = numElements;
-            this.sslConfiguration = sslConfiguration;
-        }
-    }
-
-    private synchronized void connect(final LogEvent appendEvent) {
-        if (message != null) {
-            return;
-        }
-        try {
-            message = createMimeMessage(data, session, appendEvent);
-        } catch (final MessagingException e) {
-            logError("Could not set SmtpAppender message options", e);
-            message = null;
-        }
-    }
-
-    /**
-     * Factory to create the SMTP Manager.
-     */
-    private static class SMTPManagerFactory implements ManagerFactory<SmtpManager, FactoryData> {
-
-        @Override
-        public SmtpManager createManager(final String name, final FactoryData data) {
-            final String prefix = "mail." + data.protocol;
-
-            final Properties properties = System.getProperties();
-            properties.setProperty("mail.transport.protocol", data.protocol);
-            if (properties.getProperty("mail.host") == null) {
-                // Prevent an UnknownHostException in Java 7
-                properties.setProperty("mail.host", NetUtils.getLocalHostname());
-            }
-
-            if (null != data.host) {
-                properties.setProperty(prefix + ".host", data.host);
-            }
-            if (data.port > 0) {
-                properties.setProperty(prefix + ".port", String.valueOf(data.port));
-            }
-
-            final Authenticator authenticator = buildAuthenticator(data.username, data.password);
-            if (null != authenticator) {
-                properties.setProperty(prefix + ".auth", "true");
-            }
-
-            if (data.protocol.equals("smtps")) {
-                final SslConfiguration sslConfiguration = data.sslConfiguration;
-                if (sslConfiguration != null) {
-                    final SSLSocketFactory sslSocketFactory = sslConfiguration.getSslSocketFactory();
-                    properties.put(prefix + ".ssl.socketFactory", sslSocketFactory);
-                    properties.setProperty(prefix + ".ssl.checkserveridentity", Boolean.toString(sslConfiguration.isVerifyHostName()));
-                }
-            }
-
-            final Session session = Session.getInstance(properties, authenticator);
-            session.setProtocolForAddress("rfc822", data.protocol);
-            session.setDebug(data.isDebug);
-            return new SmtpManager(name, session, null, data);
-        }
-
-        private Authenticator buildAuthenticator(final String username, final String password) {
-            if (null != password && null != username) {
-                return new Authenticator() {
-                    private final PasswordAuthentication passwordAuthentication =
-                        new PasswordAuthentication(username, password);
-
-                    @Override
-                    protected PasswordAuthentication getPasswordAuthentication() {
-                        return passwordAuthentication;
-                    }
-                };
-            }
-            return null;
-        }
-    }
-}
diff --git a/log4j-jakarta-smtp/src/main/java/org/apache/logging/log4j/smtp/package-info.java b/log4j-jakarta-smtp/src/main/java/org/apache/logging/log4j/smtp/package-info.java
deleted file mode 100644
index 3272da320f..0000000000
--- a/log4j-jakarta-smtp/src/main/java/org/apache/logging/log4j/smtp/package-info.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * 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.
- */
-@Export
-@Version("2.20.1")
-package org.apache.logging.log4j.smtp;
-
-import org.osgi.annotation.bundle.Export;
-import org.osgi.annotation.versioning.Version;
diff --git a/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/SimpleSmtpServer.java b/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/SimpleSmtpServer.java
deleted file mode 100644
index d96b1c5dec..0000000000
--- a/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/SimpleSmtpServer.java
+++ /dev/null
@@ -1,279 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.dumbster.smtp;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.io.PrintWriter;
-import java.net.ServerSocket;
-import java.net.Socket;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.apache.logging.log4j.util.Strings;
-
-/**
- * Dummy SMTP server for testing purposes.
- *
- * @todo constructor allowing user to pass preinitialized ServerSocket
- */
-public class SimpleSmtpServer implements Runnable {
-    /**
-     * Stores all of the email received since this instance started up.
-     */
-    private final List<SmtpMessage> receivedMail;
-
-    /**
-     * Default SMTP port is 25.
-     */
-    public static final int DEFAULT_SMTP_PORT = 25;
-
-    /**
-     * Indicates whether this server is stopped or not.
-     */
-    private volatile boolean stopped = true;
-
-    /**
-     * Handle to the server socket this server listens to.
-     */
-    private ServerSocket serverSocket;
-
-    /**
-     * Port the server listens on - set to the default SMTP port initially.
-     */
-    private int port = DEFAULT_SMTP_PORT;
-
-    /**
-     * Timeout listening on server socket.
-     */
-    private static final int TIMEOUT = 500;
-
-    /**
-     * Constructor.
-     *
-     * @param port port number
-     */
-    public SimpleSmtpServer(final int port) {
-        receivedMail = new ArrayList<>();
-        this.port = port;
-    }
-
-    /**
-     * Main loop of the SMTP server.
-     */
-    @Override
-    public void run() {
-        stopped = false;
-        try {
-            try {
-                serverSocket = new ServerSocket(port);
-                serverSocket.setSoTimeout(TIMEOUT); // Block for maximum of 1.5 seconds
-            } finally {
-                synchronized (this) {
-                    // Notify when server socket has been created
-                    notifyAll();
-                }
-            }
-
-            // Server: loop until stopped
-            while (!isStopped()) {
-                // Start server socket and listen for client connections
-                Socket socket = null;
-                try {
-                    socket = serverSocket.accept();
-                } catch (final Exception e) {
-                    if (socket != null) {
-                        socket.close();
-                    }
-                    continue; // Non-blocking socket timeout occurred: try accept() again
-                }
-
-                // Get the input and output streams
-                final BufferedReader input = new BufferedReader(new InputStreamReader(socket.getInputStream()));
-                final PrintWriter out = new PrintWriter(socket.getOutputStream());
-
-                synchronized (this) {
-                    /*
-                     * We synchronize over the handle method and the list update because the client call completes
-                     * inside the handle method and we have to prevent the client from reading the list until we've
-                     * updated it. For higher concurrency, we could just change handle to return void and update the
-                     * list inside the method to limit the duration that we hold the lock.
-                     */
-                    final List<SmtpMessage> msgs = handleTransaction(out, input);
-                    receivedMail.addAll(msgs);
-                }
-                socket.close();
-            }
-        } catch (final Exception e) {
-            /** @todo Should throw an appropriate exception here. */
-            e.printStackTrace();
-        } finally {
-            if (serverSocket != null) {
-                try {
-                    serverSocket.close();
-                } catch (final IOException e) {
-                    e.printStackTrace();
-                }
-            }
-        }
-    }
-
-    /**
-     * Check if the server has been placed in a stopped state. Allows another thread to
-     * stop the server safely.
-     *
-     * @return true if the server has been sent a stop signal, false otherwise
-     */
-    public synchronized boolean isStopped() {
-        return stopped;
-    }
-
-    /**
-     * Stops the server. Server is shutdown after processing of the current request is complete.
-     */
-    public synchronized void stop() {
-        // Mark us closed
-        stopped = true;
-        try {
-            // Kick the server accept loop
-            serverSocket.close();
-        } catch (final IOException e) {
-            // Ignore
-        }
-    }
-
-    /**
-     * Handle an SMTP transaction, i.e. all activity between initial connect and QUIT command.
-     *
-     * @param out   output stream
-     * @param input input stream
-     * @return List of SmtpMessage
-     * @throws IOException
-     */
-    private List<SmtpMessage> handleTransaction(final PrintWriter out, final BufferedReader input) throws IOException {
-        // Initialize the state machine
-        SmtpState smtpState = SmtpState.CONNECT;
-        final SmtpRequest smtpRequest = new SmtpRequest(SmtpActionType.CONNECT, Strings.EMPTY, smtpState);
-
-        // Execute the connection request
-        final SmtpResponse smtpResponse = smtpRequest.execute();
-
-        // Send initial response
-        sendResponse(out, smtpResponse);
-        smtpState = smtpResponse.getNextState();
-
-        final List<SmtpMessage> msgList = new ArrayList<>();
-        SmtpMessage msg = new SmtpMessage();
-
-        while (smtpState != SmtpState.CONNECT) {
-            final String line = input.readLine();
-
-            if (line == null) {
-                break;
-            }
-
-            // Create request from client input and current state
-            final SmtpRequest request = SmtpRequest.createRequest(line, smtpState);
-            // Execute request and create response object
-            final SmtpResponse response = request.execute();
-            // Move to next internal state
-            smtpState = response.getNextState();
-            // Send response to client
-            sendResponse(out, response);
-
-            // Store input in message
-            final String params = request.getParams();
-            msg.store(response, params);
-
-            // If message reception is complete save it
-            if (smtpState == SmtpState.QUIT) {
-                msgList.add(msg);
-                msg = new SmtpMessage();
-            }
-        }
-
-        return msgList;
-    }
-
-    /**
-     * Send response to client.
-     *
-     * @param out          socket output stream
-     * @param smtpResponse response object
-     */
-    private static void sendResponse(final PrintWriter out, final SmtpResponse smtpResponse) {
-        if (smtpResponse.getCode() > 0) {
-            final int code = smtpResponse.getCode();
-            final String message = smtpResponse.getMessage();
-            out.print(code + " " + message + "\r\n");
-            out.flush();
-        }
-    }
-
-    /**
-     * Get email received by this instance since start up.
-     *
-     * @return List of String
-     */
-    public synchronized Iterator<SmtpMessage> getReceivedEmail() {
-        return receivedMail.iterator();
-    }
-
-    /**
-     * Get the number of messages received.
-     *
-     * @return size of received email list
-     */
-    public synchronized int getReceivedEmailSize() {
-        return receivedMail.size();
-    }
-
-    /**
-     * Creates an instance of SimpleSmtpServer and starts it. Will listen on the default port.
-     *
-     * @return a reference to the SMTP server
-     */
-    public static SimpleSmtpServer start() {
-        return start(DEFAULT_SMTP_PORT);
-    }
-
-    /**
-     * Creates an instance of SimpleSmtpServer and starts it.
-     *
-     * @param port port number the server should listen to
-     * @return a reference to the SMTP server
-     */
-    public static SimpleSmtpServer start(final int port) {
-        final SimpleSmtpServer server = new SimpleSmtpServer(port);
-        final Thread t = new Thread(server);
-
-
-        // Block until the server socket is created
-        synchronized (server) {
-            t.start();
-            try {
-                server.wait();
-            } catch (final InterruptedException e) {
-                // Ignore don't care.
-            }
-        }
-        return server;
-    }
-
-}
diff --git a/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpActionType.java b/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpActionType.java
deleted file mode 100644
index e885dce321..0000000000
--- a/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpActionType.java
+++ /dev/null
@@ -1,202 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.dumbster.smtp;
-
-/**
- * Represents an SMTP action or command.
- */
-public class SmtpActionType {
-    /**
-     * Internal value for the action type.
-     */
-    private final byte value;
-
-    /**
-     * Internal representation of the CONNECT action.
-     */
-    private static final byte CONNECT_BYTE = (byte) 1;
-    /**
-     * Internal representation of the EHLO action.
-     */
-    private static final byte EHLO_BYTE = (byte) 2;
-    /**
-     * Internal representation of the MAIL FROM action.
-     */
-    private static final byte MAIL_BYTE = (byte) 3;
-    /**
-     * Internal representation of the RCPT action.
-     */
-    private static final byte RCPT_BYTE = (byte) 4;
-    /**
-     * Internal representation of the DATA action.
-     */
-    private static final byte DATA_BYTE = (byte) 5;
-    /**
-     * Internal representation of the DATA END (.) action.
-     */
-    private static final byte DATA_END_BYTE = (byte) 6;
-    /**
-     * Internal representation of the QUIT action.
-     */
-    private static final byte QUIT_BYTE = (byte) 7;
-    /**
-     * Internal representation of an unrecognized action: body text gets this action type.
-     */
-    private static final byte UNREC_BYTE = (byte) 8;
-    /**
-     * Internal representation of the blank line action: separates headers and body text.
-     */
-    private static final byte BLANK_LINE_BYTE = (byte) 9;
-
-    /**
-     * Internal representation of the stateless RSET action.
-     */
-    private static final byte RSET_BYTE = (byte) -1;
-    /**
-     * Internal representation of the stateless VRFY action.
-     */
-    private static final byte VRFY_BYTE = (byte) -2;
-    /**
-     * Internal representation of the stateless EXPN action.
-     */
-    private static final byte EXPN_BYTE = (byte) -3;
-    /**
-     * Internal representation of the stateless HELP action.
-     */
-    private static final byte HELP_BYTE = (byte) -4;
-    /**
-     * Internal representation of the stateless NOOP action.
-     */
-    private static final byte NOOP_BYTE = (byte) -5;
-
-    /**
-     * CONNECT action.
-     */
-    public static final SmtpActionType CONNECT = new SmtpActionType(CONNECT_BYTE);
-    /**
-     * EHLO action.
-     */
-    public static final SmtpActionType EHLO = new SmtpActionType(EHLO_BYTE);
-    /**
-     * MAIL action.
-     */
-    public static final SmtpActionType MAIL = new SmtpActionType(MAIL_BYTE);
-    /**
-     * RCPT action.
-     */
-    public static final SmtpActionType RCPT = new SmtpActionType(RCPT_BYTE);
-    /**
-     * DATA action.
-     */
-    public static final SmtpActionType DATA = new SmtpActionType(DATA_BYTE);
-    /**
-     * "." action.
-     */
-    public static final SmtpActionType DATA_END = new SmtpActionType(DATA_END_BYTE);
-    /**
-     * Body text action.
-     */
-    public static final SmtpActionType UNRECOG = new SmtpActionType(UNREC_BYTE);
-    /**
-     * QUIT action.
-     */
-    public static final SmtpActionType QUIT = new SmtpActionType(QUIT_BYTE);
-    /**
-     * Header/body separator action.
-     */
-    public static final SmtpActionType BLANK_LINE = new SmtpActionType(BLANK_LINE_BYTE);
-
-    /**
-     * Stateless RSET action.
-     */
-    public static final SmtpActionType RSET = new SmtpActionType(RSET_BYTE);
-    /**
-     * Stateless VRFY action.
-     */
-    public static final SmtpActionType VRFY = new SmtpActionType(VRFY_BYTE);
-    /**
-     * Stateless EXPN action.
-     */
-    public static final SmtpActionType EXPN = new SmtpActionType(EXPN_BYTE);
-    /**
-     * Stateless HELP action.
-     */
-    public static final SmtpActionType HELP = new SmtpActionType(HELP_BYTE);
-    /**
-     * Stateless NOOP action.
-     */
-    public static final SmtpActionType NOOP = new SmtpActionType(NOOP_BYTE);
-
-    /**
-     * Create a new SMTP action type. Private to ensure no invalid values.
-     *
-     * @param value one of the _BYTE values
-     */
-    private SmtpActionType(final byte value) {
-        this.value = value;
-    }
-
-    /**
-     * Indicates whether the action is stateless or not.
-     *
-     * @return true iff the action is stateless
-     */
-    public boolean isStateless() {
-        return value < 0;
-    }
-
-    /**
-     * String representation of this SMTP action type.
-     *
-     * @return a String
-     */
-    @Override
-    public String toString() {
-        switch (value) {
-            case CONNECT_BYTE:
-                return "Connect";
-            case EHLO_BYTE:
-                return "EHLO";
-            case MAIL_BYTE:
-                return "MAIL";
-            case RCPT_BYTE:
-                return "RCPT";
-            case DATA_BYTE:
-                return "DATA";
-            case DATA_END_BYTE:
-                return ".";
-            case QUIT_BYTE:
-                return "QUIT";
-            case RSET_BYTE:
-                return "RSET";
-            case VRFY_BYTE:
-                return "VRFY";
-            case EXPN_BYTE:
-                return "EXPN";
-            case HELP_BYTE:
-                return "HELP";
-            case NOOP_BYTE:
-                return "NOOP";
-            case UNREC_BYTE:
-                return "Unrecognized command / data";
-            case BLANK_LINE_BYTE:
-                return "Blank line";
-            default:
-                return "Unknown";
-        }
-    }
-}
diff --git a/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpMessage.java b/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpMessage.java
deleted file mode 100644
index e21b6ba205..0000000000
--- a/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpMessage.java
+++ /dev/null
@@ -1,154 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.dumbster.smtp;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-/**
- * Container for a complete SMTP message - headers and message body.
- */
-public class SmtpMessage {
-    /**
-     * Headers: Map of List of String hashed on header name.
-     */
-    private final Map<String, List<String>> headers;
-    /**
-     * Message body.
-     */
-    private final StringBuffer body;
-
-    /**
-     * Constructor. Initializes headers Map and body buffer.
-     */
-    public SmtpMessage() {
-        headers = new HashMap<>(10);
-        body = new StringBuffer();
-    }
-
-    /**
-     * Update the headers or body depending on the SmtpResponse object and line of input.
-     *
-     * @param response SmtpResponse object
-     * @param params   remainder of input line after SMTP command has been removed
-     */
-    public void store(final SmtpResponse response, final String params) {
-        if (params != null) {
-            if (SmtpState.DATA_HDR.equals(response.getNextState())) {
-                final int headerNameEnd = params.indexOf(':');
-                if (headerNameEnd >= 0) {
-                    final String name = params.substring(0, headerNameEnd).trim();
-                    final String value = params.substring(headerNameEnd + 1).trim();
-                    addHeader(name, value);
-                }
-            } else if (SmtpState.DATA_BODY == response.getNextState()) {
-                body.append(params);
-            }
-        }
-    }
-
-    /**
-     * Get an Iterator over the header names.
-     *
-     * @return an Iterator over the set of header names (String)
-     */
-    public Iterator<String> getHeaderNames() {
-        final Set<String> nameSet = headers.keySet();
-        return nameSet.iterator();
-    }
-
-    /**
-     * Get the value(s) associated with the given header name.
-     *
-     * @param name header name
-     * @return value(s) associated with the header name
-     */
-    public String[] getHeaderValues(final String name) {
-        final List<String> values = headers.get(name);
-        if (values == null) {
-            return new String[0];
-        }
-        return values.toArray(new String[values.size()]);
-    }
-
-    /**
-     * Get the first values associated with a given header name.
-     *
-     * @param name header name
-     * @return first value associated with the header name
-     */
-    public String getHeaderValue(final String name) {
-        final List<String> values = headers.get(name);
-        if (values == null) {
-            return null;
-        }
-        final Iterator<String> iterator = values.iterator();
-        return iterator.hasNext() ? iterator.next() : null;
-    }
-
-    /**
-     * Get the message body.
-     *
-     * @return message body
-     */
-    public String getBody() {
-        return body.toString();
-    }
-
-    /**
-     * Adds a header to the Map.
-     *
-     * @param name  header name
-     * @param value header value
-     */
-    private void addHeader(final String name, final String value) {
-        List<String> valueList = headers.get(name);
-        if (valueList == null) {
-            valueList = new ArrayList<>(1);
-            headers.put(name, valueList);
-        }
-        valueList.add(value);
-    }
-
-    /**
-     * String representation of the SmtpMessage.
-     *
-     * @return a String
-     */
-    @Override
-    public String toString() {
-        final StringBuilder msg = new StringBuilder();
-        for (final Map.Entry<String, List<String>> entry : headers.entrySet()) {
-            final String name = entry.getKey();
-            final List<String> values = entry.getValue();
-            for (final String value : values) {
-                msg.append(name);
-                msg.append(": ");
-                msg.append(value);
-                msg.append('\n');
-            }
-        }
-        msg.append('\n');
-        msg.append(body);
-        msg.append('\n');
-        return msg.toString();
-    }
-}
diff --git a/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpRequest.java b/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpRequest.java
deleted file mode 100644
index b2042ea28c..0000000000
--- a/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpRequest.java
+++ /dev/null
@@ -1,233 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.dumbster.smtp;
-
-import org.apache.logging.log4j.util.Strings;
-
-import static org.apache.logging.log4j.util.Strings.toRootUpperCase;
-
-/**
- * Contains an SMTP client request. Handles state transitions using the following state transition table.
- * <PRE>
- * -----------+-------------------------------------------------------------------------------------------------
- * |                                 State
- * Action    +-------------+-----------+-----------+--------------+---------------+---------------+------------
- * | CONNECT     | GREET     | MAIL      | RCPT         | DATA_HDR      | DATA_BODY     | QUIT
- * -----------+-------------+-----------+-----------+--------------+---------------+---------------+------------
- * connect    | 220/GREET   | 503/GREET | 503/MAIL  | 503/RCPT     | 503/DATA_HDR  | 503/DATA_BODY | 503/QUIT
- * ehlo       | 503/CONNECT | 250/MAIL  | 503/MAIL  | 503/RCPT     | 503/DATA_HDR  | 503/DATA_BODY | 503/QUIT
- * mail       | 503/CONNECT | 503/GREET | 250/RCPT  | 503/RCPT     | 503/DATA_HDR  | 503/DATA_BODY | 250/RCPT
- * rcpt       | 503/CONNECT | 503/GREET | 503/MAIL  | 250/RCPT     | 503/DATA_HDR  | 503/DATA_BODY | 503/QUIT
- * data       | 503/CONNECT | 503/GREET | 503/MAIL  | 354/DATA_HDR | 503/DATA_HDR  | 503/DATA_BODY | 503/QUIT
- * data_end   | 503/CONNECT | 503/GREET | 503/MAIL  | 503/RCPT     | 250/QUIT      | 250/QUIT      | 503/QUIT
- * unrecog    | 500/CONNECT | 500/GREET | 500/MAIL  | 500/RCPT     | ---/DATA_HDR  | ---/DATA_BODY | 500/QUIT
- * quit       | 503/CONNECT | 503/GREET | 503/MAIL  | 503/RCPT     | 503/DATA_HDR  | 503/DATA_BODY | 250/CONNECT
- * blank_line | 503/CONNECT | 503/GREET | 503/MAIL  | 503/RCPT     | ---/DATA_BODY | ---/DATA_BODY | 503/QUIT
- * rset       | 250/GREET   | 250/GREET | 250/GREET | 250/GREET    | 250/GREET     | 250/GREET     | 250/GREET
- * vrfy       | 252/CONNECT | 252/GREET | 252/MAIL  | 252/RCPT     | 252/DATA_HDR  | 252/DATA_BODY | 252/QUIT
- * expn       | 252/CONNECT | 252/GREET | 252/MAIL  | 252/RCPT     | 252/DATA_HDR  | 252/DATA_BODY | 252/QUIT
- * help       | 211/CONNECT | 211/GREET | 211/MAIL  | 211/RCPT     | 211/DATA_HDR  | 211/DATA_BODY | 211/QUIT
- * noop       | 250/CONNECT | 250/GREET | 250/MAIL  | 250/RCPT     | 250|DATA_HDR  | 250/DATA_BODY | 250/QUIT
- * </PRE>
- */
-public class SmtpRequest {
-    /**
-     * SMTP action received from client.
-     */
-    private final SmtpActionType action;
-    /**
-     * Current state of the SMTP state table.
-     */
-    private final SmtpState state;
-    /**
-     * Additional information passed from the client with the SMTP action.
-     */
-    private final String params;
-
-    /**
-     * Create a new SMTP client request.
-     *
-     * @param actionType type of action/command
-     * @param params     remainder of command line once command is removed
-     * @param state      current SMTP server state
-     */
-    public SmtpRequest(final SmtpActionType actionType, final String params, final SmtpState state) {
-        this.action = actionType;
-        this.state = state;
-        this.params = params;
-    }
-
-    /**
-     * Execute the SMTP request returning a response. This method models the state transition table for the SMTP server.
-     *
-     * @return reponse to the request
-     */
-    public SmtpResponse execute() {
-        SmtpResponse response = null;
-        if (action.isStateless()) {
-            if (SmtpActionType.EXPN == action || SmtpActionType.VRFY == action) {
-                response = new SmtpResponse(252, "Not supported", this.state);
-            } else if (SmtpActionType.HELP == action) {
-                response = new SmtpResponse(211, "No help available", this.state);
-            } else if (SmtpActionType.NOOP == action) {
-                response = new SmtpResponse(250, "OK", this.state);
-            } else if (SmtpActionType.VRFY == action) {
-                response = new SmtpResponse(252, "Not supported", this.state);
-            } else if (SmtpActionType.RSET == action) {
-                response = new SmtpResponse(250, "OK", SmtpState.GREET);
-            } else {
-                response = new SmtpResponse(500, "Command not recognized", this.state);
-            }
-        } else { // Stateful commands
-            if (SmtpActionType.CONNECT == action) {
-                if (SmtpState.CONNECT == state) {
-                    response = new SmtpResponse(220, "localhost Dumbster SMTP service ready", SmtpState.GREET);
-                } else {
-                    response = new SmtpResponse(503, "Bad sequence of commands: " + action, this.state);
-                }
-            } else if (SmtpActionType.EHLO == action) {
-                if (SmtpState.GREET == state) {
-                    response = new SmtpResponse(250, "OK", SmtpState.MAIL);
-                } else {
-                    response = new SmtpResponse(503, "Bad sequence of commands: " + action, this.state);
-                }
-            } else if (SmtpActionType.MAIL == action) {
-                if (SmtpState.MAIL == state || SmtpState.QUIT == state) {
-                    response = new SmtpResponse(250, "OK", SmtpState.RCPT);
-                } else {
-                    response = new SmtpResponse(503, "Bad sequence of commands: " + action, this.state);
-                }
-            } else if (SmtpActionType.RCPT == action) {
-                if (SmtpState.RCPT == state) {
-                    response = new SmtpResponse(250, "OK", this.state);
-                } else {
-                    response = new SmtpResponse(503, "Bad sequence of commands: " + action, this.state);
-                }
-            } else if (SmtpActionType.DATA == action) {
-                if (SmtpState.RCPT == state) {
-                    response = new SmtpResponse(354, "Start mail input; end with <CRLF>.<CRLF>", SmtpState.DATA_HDR);
-                } else {
-                    response = new SmtpResponse(503, "Bad sequence of commands: " + action, this.state);
-                }
-            } else if (SmtpActionType.UNRECOG == action) {
-                if (SmtpState.DATA_HDR == state || SmtpState.DATA_BODY == state) {
-                    response = new SmtpResponse(-1, Strings.EMPTY, this.state);
-                } else {
-                    response = new SmtpResponse(500, "Command not recognized", this.state);
-                }
-            } else if (SmtpActionType.DATA_END == action) {
-                if (SmtpState.DATA_HDR == state || SmtpState.DATA_BODY == state) {
-                    response = new SmtpResponse(250, "OK", SmtpState.QUIT);
-                } else {
-                    response = new SmtpResponse(503, "Bad sequence of commands: " + action, this.state);
-                }
-            } else if (SmtpActionType.BLANK_LINE == action) {
-                if (SmtpState.DATA_HDR == state) {
-                    response = new SmtpResponse(-1, Strings.EMPTY, SmtpState.DATA_BODY);
-                } else if (SmtpState.DATA_BODY == state) {
-                    response = new SmtpResponse(-1, Strings.EMPTY, this.state);
-                } else {
-                    response = new SmtpResponse(503, "Bad sequence of commands: " + action, this.state);
-                }
-            } else if (SmtpActionType.QUIT == action) {
-                if (SmtpState.QUIT == state) {
-                    response = new SmtpResponse(221, "localhost Dumbster service closing transmission channel",
-                        SmtpState.CONNECT);
-                } else {
-                    response = new SmtpResponse(503, "Bad sequence of commands: " + action, this.state);
-                }
-            } else {
-                response = new SmtpResponse(500, "Command not recognized", this.state);
-            }
-        }
-        return response;
-    }
-
-    /**
-     * Create an SMTP request object given a line of the input stream from the client and the current internal state.
-     *
-     * @param s     line of input
-     * @param state current state
-     * @return a populated SmtpRequest object
-     */
-    public static SmtpRequest createRequest(final String s, final SmtpState state) {
-        SmtpActionType action = null;
-        String params = null;
-
-        if (state == SmtpState.DATA_HDR) {
-            if (s.equals(".")) {
-                action = SmtpActionType.DATA_END;
-            } else if (s.length() < 1) {
-                action = SmtpActionType.BLANK_LINE;
-            } else {
-                action = SmtpActionType.UNRECOG;
-                params = s;
-            }
-        } else if (state == SmtpState.DATA_BODY) {
-            if (s.equals(".")) {
-                action = SmtpActionType.DATA_END;
-            } else {
-                action = SmtpActionType.UNRECOG;
-                if (s.length() < 1) {
-                    params = "\n";
-                } else {
-                    params = s;
-                }
-            }
-        } else {
-            final String su = toRootUpperCase(s);
-            if (su.startsWith("EHLO ") || su.startsWith("HELO")) {
-                action = SmtpActionType.EHLO;
-                params = s.substring(5);
-            } else if (su.startsWith("MAIL FROM:")) {
-                action = SmtpActionType.MAIL;
-                params = s.substring(10);
-            } else if (su.startsWith("RCPT TO:")) {
-                action = SmtpActionType.RCPT;
-                params = s.substring(8);
-            } else if (su.startsWith("DATA")) {
-                action = SmtpActionType.DATA;
-            } else if (su.startsWith("QUIT")) {
-                action = SmtpActionType.QUIT;
-            } else if (su.startsWith("RSET")) {
-                action = SmtpActionType.RSET;
-            } else if (su.startsWith("NOOP")) {
-                action = SmtpActionType.NOOP;
-            } else if (su.startsWith("EXPN")) {
-                action = SmtpActionType.EXPN;
-            } else if (su.startsWith("VRFY")) {
-                action = SmtpActionType.VRFY;
-            } else if (su.startsWith("HELP")) {
-                action = SmtpActionType.HELP;
-            } else {
-                action = SmtpActionType.UNRECOG;
-            }
-        }
-
-        final SmtpRequest req = new SmtpRequest(action, params, state);
-        return req;
-    }
-
-    /**
-     * Get the parameters of this request (remainder of command line once the command is removed.
-     *
-     * @return parameters
-     */
-    public String getParams() {
-        return params;
-    }
-}
diff --git a/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpResponse.java b/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpResponse.java
deleted file mode 100644
index 0a71dbb526..0000000000
--- a/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpResponse.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.dumbster.smtp;
-
-/**
- * SMTP response container.
- */
-public class SmtpResponse {
-    /**
-     * Response code - see RFC-2821.
-     */
-    private final int code;
-    /**
-     * Response message.
-     */
-    private final String message;
-    /**
-     * New state of the SMTP server once the request has been executed.
-     */
-    private final SmtpState nextState;
-
-    /**
-     * Constructor.
-     *
-     * @param code    response code
-     * @param message response message
-     * @param next    next state of the SMTP server
-     */
-    public SmtpResponse(final int code, final String message, final SmtpState next) {
-        this.code = code;
-        this.message = message;
-        this.nextState = next;
-    }
-
-    /**
-     * Get the response code.
-     *
-     * @return response code
-     */
-    public int getCode() {
-        return code;
-    }
-
-    /**
-     * Get the response message.
-     *
-     * @return response message
-     */
-    public String getMessage() {
-        return message;
-    }
-
-    /**
-     * Get the next SMTP server state.
-     *
-     * @return state
-     */
-    public SmtpState getNextState() {
-        return nextState;
-    }
-}
diff --git a/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpState.java b/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpState.java
deleted file mode 100644
index 26c3ef818a..0000000000
--- a/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/SmtpState.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.dumbster.smtp;
-
-/**
- * SMTP server state.
- */
-public class SmtpState {
-    /**
-     * Internal representation of the state.
-     */
-    private final byte value;
-
-    /**
-     * Internal representation of the CONNECT state.
-     */
-    private static final byte CONNECT_BYTE = (byte) 1;
-    /**
-     * Internal representation of the GREET state.
-     */
-    private static final byte GREET_BYTE = (byte) 2;
-    /**
-     * Internal representation of the MAIL state.
-     */
-    private static final byte MAIL_BYTE = (byte) 3;
-    /**
-     * Internal representation of the RCPT state.
-     */
-    private static final byte RCPT_BYTE = (byte) 4;
-    /**
-     * Internal representation of the DATA_HEADER state.
-     */
-    private static final byte DATA_HEADER_BYTE = (byte) 5;
-    /**
-     * Internal representation of the DATA_BODY state.
-     */
-    private static final byte DATA_BODY_BYTE = (byte) 6;
-    /**
-     * Internal representation of the QUIT state.
-     */
-    private static final byte QUIT_BYTE = (byte) 7;
-
-    /**
-     * CONNECT state: waiting for a client connection.
-     */
-    public static final SmtpState CONNECT = new SmtpState(CONNECT_BYTE);
-    /**
-     * GREET state: wating for a ELHO message.
-     */
-    public static final SmtpState GREET = new SmtpState(GREET_BYTE);
-    /**
-     * MAIL state: waiting for the MAIL FROM: command.
-     */
-    public static final SmtpState MAIL = new SmtpState(MAIL_BYTE);
-    /**
-     * RCPT state: waiting for a RCPT &lt;email address&gt; command.
-     */
-    public static final SmtpState RCPT = new SmtpState(RCPT_BYTE);
-    /**
-     * Waiting for headers.
-     */
-    public static final SmtpState DATA_HDR = new SmtpState(DATA_HEADER_BYTE);
-    /**
-     * Processing body text.
-     */
-    public static final SmtpState DATA_BODY = new SmtpState(DATA_BODY_BYTE);
-    /**
-     * End of client transmission.
-     */
-    public static final SmtpState QUIT = new SmtpState(QUIT_BYTE);
-
-    /**
-     * Create a new SmtpState object. Private to ensure that only valid states can be created.
-     *
-     * @param value one of the _BYTE values.
-     */
-    private SmtpState(final byte value) {
-        this.value = value;
-    }
-
-    /**
-     * String representation of this SmtpState.
-     *
-     * @return a String
-     */
-    @Override
-    public String toString() {
-        switch (value) {
-            case CONNECT_BYTE:
-                return "CONNECT";
-            case GREET_BYTE:
-                return "GREET";
-            case MAIL_BYTE:
-                return "MAIL";
-            case RCPT_BYTE:
-                return "RCPT";
-            case DATA_HEADER_BYTE:
-                return "DATA_HDR";
-            case DATA_BODY_BYTE:
-                return "DATA_BODY";
-            case QUIT_BYTE:
-                return "QUIT";
-            default:
-                return "Unknown";
-        }
-    }
-}
diff --git a/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/readme.txt b/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/readme.txt
deleted file mode 100644
index aded490e72..0000000000
--- a/log4j-jakarta-smtp/src/test/java/org/apache/logging/dumbster/smtp/readme.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-Dumbster was an open source project hosted at Sourceforge. Unfortunately, that project has not had any commits
-to it since 2005. The code was copied here to be able to address a race condition in SimpleSmtpServer.
-
-Dumbster is Copyright 2004 Jason Paul Kitchen
\ No newline at end of file
diff --git a/log4j-jakarta-smtp/src/test/java/org/apache/logging/log4j/smtp/appender/SmtpAppenderAsyncTest.java b/log4j-jakarta-smtp/src/test/java/org/apache/logging/log4j/smtp/appender/SmtpAppenderAsyncTest.java
deleted file mode 100644
index f28b5797b9..0000000000
--- a/log4j-jakarta-smtp/src/test/java/org/apache/logging/log4j/smtp/appender/SmtpAppenderAsyncTest.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.smtp.appender;
-
-import java.util.Iterator;
-
-import org.apache.logging.dumbster.smtp.SimpleSmtpServer;
-import org.apache.logging.dumbster.smtp.SmtpMessage;
-import org.apache.logging.log4j.ThreadContext;
-import org.apache.logging.log4j.core.Logger;
-import org.apache.logging.log4j.core.test.AvailablePortFinder;
-import org.apache.logging.log4j.core.test.junit.LoggerContextRule;
-import org.junit.After;
-import org.junit.AfterClass;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Rule;
-import org.junit.Test;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
-
-public class SmtpAppenderAsyncTest {
-
-    private static int PORT;
-
-    private SimpleSmtpServer smtpServer;
-
-    @BeforeClass
-    public static void setupClass() {
-        PORT = AvailablePortFinder.getNextAvailable();
-        System.setProperty("smtp.port", String.valueOf(PORT));
-    }
-
-    @Before
-    public void setup() {
-        smtpServer = SimpleSmtpServer.start(PORT);
-    }
-
-    @Rule
-    public LoggerContextRule ctx = new LoggerContextRule("SmtpAppenderAsyncTest.xml");
-
-    @Test
-    public void testSync() {
-        testSmtpAppender(ctx.getLogger("sync"));
-    }
-
-    @Test
-    public void testAsync() {
-        testSmtpAppender(ctx.getLogger("async"));
-    }
-
-    private void testSmtpAppender(final Logger logger) {
-        ThreadContext.put("MDC1", "mdc1");
-        logger.error("the message");
-        ctx.getLoggerContext().stop();
-        smtpServer.stop();
-
-        assertEquals(1, smtpServer.getReceivedEmailSize());
-        final Iterator<SmtpMessage> messages = smtpServer.getReceivedEmail();
-        final SmtpMessage email = messages.next();
-
-        assertEquals("to@example.com", email.getHeaderValue("To"));
-        assertEquals("from@example.com", email.getHeaderValue("From"));
-        assertEquals("[mdc1]", email.getHeaderValue("Subject"));
-
-        final String body = email.getBody();
-        if (!body.contains("Body:[mdc1]")) {
-            fail(body);
-        }
-    }
-
-    @After
-    public void teardown() {
-        if (smtpServer != null) {
-            smtpServer.stop();
-        }
-    }
-
-    @AfterClass
-    public static void teardownClass() {
-        System.clearProperty("smtp.port");
-    }
-}
diff --git a/log4j-jakarta-smtp/src/test/java/org/apache/logging/log4j/smtp/appender/SmtpAppenderTest.java b/log4j-jakarta-smtp/src/test/java/org/apache/logging/log4j/smtp/appender/SmtpAppenderTest.java
deleted file mode 100644
index d653c9e6f6..0000000000
--- a/log4j-jakarta-smtp/src/test/java/org/apache/logging/log4j/smtp/appender/SmtpAppenderTest.java
+++ /dev/null
@@ -1,180 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.smtp.appender;
-
-import java.util.Iterator;
-
-import jakarta.mail.Address;
-import jakarta.mail.Message;
-import jakarta.mail.MessagingException;
-import jakarta.mail.internet.InternetAddress;
-
-import org.apache.logging.dumbster.smtp.SimpleSmtpServer;
-import org.apache.logging.dumbster.smtp.SmtpMessage;
-import org.apache.logging.log4j.Level;
-import org.apache.logging.log4j.ThreadContext;
-import org.apache.logging.log4j.core.Logger;
-import org.apache.logging.log4j.core.LoggerContext;
-import org.apache.logging.log4j.core.config.DefaultConfiguration;
-import org.apache.logging.log4j.core.test.AvailablePortFinder;
-import org.apache.logging.log4j.core.test.categories.Appenders;
-import org.apache.logging.log4j.smtp.MimeMessageBuilder;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-
-import static org.junit.Assert.*;
-
-@Category(Appenders.Smtp.class)
-public class SmtpAppenderTest {
-
-    private static final String HOST = "localhost";
-
-    @Test
-    public void testMessageFactorySetFrom() throws MessagingException {
-        final MimeMessageBuilder builder = new MimeMessageBuilder(null);
-        final String address = "testing@example.com";
-
-        assertNull(builder.build().getFrom());
-
-        builder.setFrom(null);
-        Address[] array = null;
-        final Address addr = InternetAddress.getLocalAddress(null);
-        if (addr != null) {
-            array = new Address[] { addr };
-        }
-        assertArrayEquals(array, builder.build().getFrom());
-
-        builder.setFrom(address);
-        assertArrayEquals(new Address[] { new InternetAddress(address) },
-                builder.build().getFrom());
-    }
-
-    @Test
-    public void testMessageFactorySetReplyTo() throws MessagingException {
-        final MimeMessageBuilder builder = new MimeMessageBuilder(null);
-        final String addresses = "testing1@example.com,testing2@example.com";
-
-        assertNull(builder.build().getReplyTo());
-
-        builder.setReplyTo(null);
-        assertNull(builder.build().getReplyTo());
-
-        builder.setReplyTo(addresses);
-        assertArrayEquals(InternetAddress.parse(addresses), builder
-                .build().getReplyTo());
-    }
-
-    @Test
-    public void testMessageFactorySetRecipients() throws MessagingException {
-        final MimeMessageBuilder builder = new MimeMessageBuilder(null);
-        final String addresses = "testing1@example.com,testing2@example.com";
-
-        assertNull(builder.build().getRecipients(
-                Message.RecipientType.TO));
-
-        builder.setRecipients(Message.RecipientType.TO, null);
-        assertNull(builder.build().getRecipients(
-                Message.RecipientType.TO));
-
-        builder.setRecipients(Message.RecipientType.TO, addresses);
-        assertArrayEquals(InternetAddress.parse(addresses), builder
-                .build().getRecipients(Message.RecipientType.TO));
-    }
-
-    @Test
-    public void testMessageFactorySetSubject() throws MessagingException {
-        final MimeMessageBuilder builder = new MimeMessageBuilder(null);
-        final String subject = "Test Subject";
-
-        assertNull(builder.build().getSubject());
-
-        builder.setSubject(null);
-        assertNull(builder.build().getSubject());
-
-        builder.setSubject(subject);
-        assertEquals(subject, builder.build().getSubject());
-    }
-
-    @Test
-    public void testDelivery() {
-        final String subjectKey = getClass().getName();
-        final String subjectValue = "SubjectValue1";
-        ThreadContext.put(subjectKey, subjectValue);
-        final int smtpPort = AvailablePortFinder.getNextAvailable();
-        final SmtpAppender appender = SmtpAppender.newBuilder()
-                .setConfiguration(new DefaultConfiguration())
-                .setName("Test")
-                .setTo("to@example.com")
-                .setCc("cc@example.com")
-                .setBcc("bcc@example.com")
-                .setFrom("from@example.com")
-                .setReplyTo("replyTo@example.com")
-                .setSubject("Subject Pattern %X{" + subjectKey + "} %maxLen{%m}{10}")
-                .setSmtpHost(HOST)
-                .setSmtpPort(smtpPort)
-                .setBufferSize(3)
-                .build();
-        appender.start();
-
-        final LoggerContext context = LoggerContext.getContext();
-        final Logger root = context.getLogger("SMTPAppenderTest");
-        root.addAppender(appender);
-        root.setAdditive(false);
-        root.setLevel(Level.DEBUG);
-
-        final SimpleSmtpServer server = SimpleSmtpServer.start(smtpPort);
-
-        root.debug("Debug message #1");
-        root.debug("Debug message #2");
-        root.debug("Debug message #3");
-        root.debug("Debug message #4");
-        root.error("Error with exception", new RuntimeException("Exception message"));
-        root.error("Error message #2");
-
-        server.stop();
-        assertTrue(server.getReceivedEmailSize() == 2);
-        final Iterator<SmtpMessage> messages = server.getReceivedEmail();
-        final SmtpMessage email = messages.next();
-
-        assertEquals("to@example.com", email.getHeaderValue("To"));
-        assertEquals("cc@example.com", email.getHeaderValue("Cc"));
-        // assertEquals("bcc@example.com", email.getHeaderValue("Bcc")); // BCC
-        // can't be tested with Dumpster 1.6
-        assertEquals("from@example.com", email.getHeaderValue("From"));
-        assertEquals("replyTo@example.com", email.getHeaderValue("Reply-To"));
-        assertEquals("Subject Pattern " + subjectValue +" Error with", email.getHeaderValue("Subject"));
-
-        final String body = email.getBody();
-        assertFalse(body.contains("Debug message #1"));
-        assertTrue(body.contains("Debug message #2"));
-        assertTrue(body.contains("Debug message #3"));
-        assertTrue(body.contains("Debug message #4"));
-        assertTrue(body.contains("Error with exception"));
-        assertTrue(body.contains("RuntimeException"));
-        assertTrue(body.contains("Exception message"));
-        assertFalse(body.contains("Error message #2"));
-
-        final SmtpMessage email2 = messages.next();
-
-        assertEquals("Subject Pattern " + subjectValue +" Error mess", email2.getHeaderValue("Subject"));
-
-        final String body2 = email2.getBody();
-        assertFalse(body2.contains("Debug message #4"));
-        assertFalse(body2.contains("Error with exception"));
-        assertTrue(body2.contains("Error message #2"));
-    }
-}
diff --git a/log4j-jakarta-smtp/src/test/java/org/apache/logging/log4j/smtp/appender/SmtpManagerTest.java b/log4j-jakarta-smtp/src/test/java/org/apache/logging/log4j/smtp/appender/SmtpManagerTest.java
deleted file mode 100644
index 65ceccc1f3..0000000000
--- a/log4j-jakarta-smtp/src/test/java/org/apache/logging/log4j/smtp/appender/SmtpManagerTest.java
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.smtp.appender;
-
-import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.core.async.RingBufferLogEvent;
-import org.apache.logging.log4j.core.config.DefaultConfiguration;
-import org.apache.logging.log4j.core.impl.Log4jLogEvent;
-import org.apache.logging.log4j.core.impl.MementoMessage;
-import org.apache.logging.log4j.core.impl.MutableLogEvent;
-import org.apache.logging.log4j.core.time.ClockFactory;
-import org.apache.logging.log4j.core.time.internal.DummyNanoClock;
-import org.apache.logging.log4j.message.ReusableMessage;
-import org.apache.logging.log4j.message.ReusableSimpleMessage;
-import org.junit.jupiter.api.Test;
-
-import static org.hamcrest.CoreMatchers.instanceOf;
-import static org.hamcrest.CoreMatchers.is;
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.junit.jupiter.api.Assertions.assertEquals;
-
-/**
- * Unit tests for {@link SmtpManager}.
- */
-public class SmtpManagerTest {
-
-    @Test
-    void testCreateManagerName() {
-        final String managerName = SmtpManager.createManagerName("to", "cc", null, "from", null, "LOG4J2-3107",
-            "proto", "smtp.log4j.com", 4711, "username", false, "filter");
-        assertEquals("SMTP:to:cc::from::LOG4J2-3107:proto:smtp.log4j.com:4711:username::filter", managerName);
-    }
-
-    private void testAdd(final LogEvent event) {
-        final SmtpManager smtpManager = SmtpManager.getSmtpManager(new DefaultConfiguration(), "to", "cc", "bcc", "from", "replyTo", "subject", "protocol", "host", 0, "username", "password", false, "filterName", 10, null);
-        smtpManager.removeAllBufferedEvents(); // in case this smtpManager is reused
-        smtpManager.add(event);
-
-        final LogEvent[] bufferedEvents = smtpManager.removeAllBufferedEvents();
-        assertThat("unexpected number of buffered events", bufferedEvents.length, is(1));
-        assertThat("expected the immutable version of the event to be buffered", bufferedEvents[0].getMessage(), is(instanceOf(MementoMessage.class)));
-    }
-
-    // LOG4J2-3172: make sure existing protections are not violated
-    @Test
-    void testAdd_WhereLog4jLogEventWithReusableMessage() {
-        final LogEvent event = new Log4jLogEvent.Builder().setMessage(getReusableMessage("test message")).build();
-        testAdd(event);
-    }
-
-    // LOG4J2-3172: make sure existing protections are not violated
-    @Test
-    void testAdd_WhereMutableLogEvent() {
-        final MutableLogEvent event = new MutableLogEvent(new StringBuilder("test message"), null);
-        testAdd(event);
-    }
-
-    // LOG4J2-3172
-    @Test
-    void testAdd_WhereRingBufferLogEvent() {
-        final RingBufferLogEvent event = new RingBufferLogEvent();
-        event.setValues(null, null, null, null, null, getReusableMessage("test message"), null, null, null, 0, null, 0, null, ClockFactory.getClock(), new DummyNanoClock());
-        testAdd(event);
-    }
-
-    private ReusableMessage getReusableMessage(final String text) {
-        final ReusableSimpleMessage message = new ReusableSimpleMessage();
-        message.set(text);
-        return message;
-    }
-
-}
diff --git a/log4j-jakarta-smtp/src/test/resources/SmtpAppenderAsyncTest.xml b/log4j-jakarta-smtp/src/test/resources/SmtpAppenderAsyncTest.xml
deleted file mode 100644
index ff29f544df..0000000000
--- a/log4j-jakarta-smtp/src/test/resources/SmtpAppenderAsyncTest.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<Configuration name="SmtpAppenderAsyncTest" status="WARN">
-    <Appenders>
-        <SMTP name="mail-sync" to="to@example.com" from="from@example.com" smtpHost="localhost"
-              smtpPort="${sys:smtp.port}" ignoreExceptions="false" subject="[%X{MDC1}]">
-            <PatternLayout pattern="Body:[%X{MDC1}]" />
-        </SMTP>
-        <Async name="mail-async">
-            <AppenderRef ref="mail-sync"/>
-        </Async>
-        <Console name="Console" target="SYSTEM_OUT">
-            <PatternLayout pattern="%d [%t] %-5level: %msg%n%throwable" />
-        </Console>
-    </Appenders>
-    <Loggers>
-        <Root level="FATAL">
-          <AppenderRef ref="Console"/>
-        </Root>
-        <Logger name="sync" level="INFO">
-            <AppenderRef ref="mail-sync"/>
-        </Logger>
-        <Logger name="async" level="INFO">
-            <AppenderRef ref="mail-async"/>
-        </Logger>
-    </Loggers>
-</Configuration>
diff --git a/log4j-parent/pom.xml b/log4j-parent/pom.xml
index 01f0016352..8b4b5157c8 100644
--- a/log4j-parent/pom.xml
+++ b/log4j-parent/pom.xml
@@ -129,7 +129,6 @@
     <jackson-bom.version>2.15.2</jackson-bom.version>
     <!-- Override the version in Jakarta EE 9 BOM: -->
     <jakarta-activation.version>2.1.2</jakarta-activation.version>
-    <jakarta-mail.version>2.1.2</jakarta-mail.version>
     <!-- BOM with Jakarta EE 9 APIs: -->
     <jakartaee-bom.version>9.1.0</jakartaee-bom.version>
     <!-- No BOM for Java EE 8 APIs, so we list them separately: -->
@@ -662,18 +661,6 @@
         <version>${jakarta-activation.version}</version>
       </dependency>
 
-      <dependency>
-        <groupId>org.eclipse.angus</groupId>
-        <artifactId>jakarta.mail</artifactId>
-        <version>${angus-mail.version}</version>
-      </dependency>
-
-      <dependency>
-        <groupId>jakarta.mail</groupId>
-        <artifactId>jakarta.mail-api</artifactId>
-        <version>${jakarta-mail.version}</version>
-      </dependency>
-
       <dependency>
         <groupId>org.fusesource.jansi</groupId>
         <artifactId>jansi</artifactId>
diff --git a/pom.xml b/pom.xml
index f1afdd23a5..9b462d95c7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -241,7 +241,6 @@
     <module>log4j-flume-ng</module>
     <module>log4j-gctests</module>
     <module>log4j-iostreams</module>
-    <module>log4j-jakarta-smtp</module>
     <module>log4j-jakarta-web</module>
     <module>log4j-jcl</module>
     <module>log4j-jdbc</module>
@@ -413,12 +412,6 @@
         <version>${project.version}</version>
       </dependency>
 
-      <dependency>
-        <groupId>org.apache.logging.log4j</groupId>
-        <artifactId>log4j-jakarta-smtp</artifactId>
-        <version>${project.version}</version>
-      </dependency>
-
       <dependency>
         <groupId>org.apache.logging.log4j</groupId>
         <artifactId>log4j-jakarta-web</artifactId>
diff --git a/src/site/asciidoc/runtime-dependencies.adoc b/src/site/asciidoc/runtime-dependencies.adoc
index 003c7b08da..d1cfb0f37e 100644
--- a/src/site/asciidoc/runtime-dependencies.adoc
+++ b/src/site/asciidoc/runtime-dependencies.adoc
@@ -660,12 +660,6 @@ API. See the link:log4j-web/dependencies.html#Dependency_Tree[Dependency
 Tree] for the exact list of JAR files needed. Note that this works with
 the Servlet 2.5 API as well as the Servlet 3.x API.
 
-|log4j-jakarta-smtp[[log4j-jakarta-smtp]]
-a|The Log4j Simple Mail Transfer Protocol (SMTP) Appender, version for Jakarta EE 9 module has 2 external runtime dependencies for the `jakarta.activation-api` and `jakarta.mail-api`.
-
-. `org.eclipse.angus:angus-activation`
-. `org.eclipse.angus:jakarta.mail`
-
 |log4j-jakarta-web[[log4j-jakarta-web]]
 |The Log4j Jakarta-Web[[log4j-jakarta-web]] module for Jakarta EE 9+ web servlet containers requires the Servlet API and `log4j-core`.
 


(logging-log4j2) 01/06: Delete JMS appender (#1966)

Posted by vy...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

vy pushed a commit to branch jee-deletion
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git

commit 18f11f72259c2ca9fbe83847109929875e3f8eab
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Mon Nov 20 12:06:59 2023 +0100

    Delete JMS appender (#1966)
---
 log4j-1.2-api/bnd.bnd                              |   3 +-
 log4j-1.2-api/pom.xml                              |   7 -
 .../log4j/util/PropertiesUtilOrderTest.java        |   5 -
 log4j-core-its/pom.xml                             |  27 +-
 log4j-core-test/pom.xml                            |   5 -
 .../log4j/core/test/categories/Appenders.java      |   1 -
 .../src/main/resources/Log4j-config.xsd            |  11 -
 .../java/org/apache/logging/log4j/core/Layout.java |   7 -
 log4j-core/src/main/resources/Log4j-config.xsd     |  11 -
 log4j-distribution/pom.xml                         |  12 -
 log4j-gctests/pom.xml                              |   6 -
 log4j-jms/pom.xml                                  | 125 ------
 .../logging/log4j/jms/appender/JmsAppender.java    | 241 -----------
 .../logging/log4j/jms/appender/JmsManager.java     | 477 ---------------------
 .../logging/log4j/jms/appender/package-info.java   |  28 --
 .../log4j/jms/appender/JmsAppenderTest.java        | 190 --------
 log4j-jms/src/test/resources/JmsAppenderTest.xml   |  45 --
 log4j-parent/pom.xml                               |  15 -
 pom.xml                                            |   7 -
 src/site/asciidoc/manual/appenders.adoc            | 141 ------
 src/site/asciidoc/manual/architecture.adoc         |   2 +-
 src/site/asciidoc/manual/messages.adoc             |   2 +-
 src/site/asciidoc/manual/systemproperties.adoc     |   2 +-
 src/site/asciidoc/runtime-dependencies.adoc        |   3 -
 src/site/markdown/log4j-jms.md                     |  33 --
 src/site/markdown/log4j-jmx-gui.md                 |  22 -
 src/site/markdown/manual/compatibility.md          |   1 -
 src/site/site.xml                                  |  12 +-
 28 files changed, 13 insertions(+), 1428 deletions(-)

diff --git a/log4j-1.2-api/bnd.bnd b/log4j-1.2-api/bnd.bnd
index 4ea244d57f..65c847d955 100644
--- a/log4j-1.2-api/bnd.bnd
+++ b/log4j-1.2-api/bnd.bnd
@@ -23,5 +23,4 @@
   org.osgi.core;static=true;transitive=false,\
   org.osgi.framework;static=true;transitive=false,\
   org.apache.logging.log4j;substitute="log4j-api",\
-  org.apache.logging.log4j.core;substitute="log4j-core";transitive=false;static=true,\
-  javax.jms.api;substitute="javax.jms-api"
+  org.apache.logging.log4j.core;substitute="log4j-core";transitive=false;static=true
diff --git a/log4j-1.2-api/pom.xml b/log4j-1.2-api/pom.xml
index 3883b7f18d..d7969bf933 100644
--- a/log4j-1.2-api/pom.xml
+++ b/log4j-1.2-api/pom.xml
@@ -40,8 +40,6 @@
     <bnd-extra-package-options>
       <!-- JMX support -->
       com.sun.jdmk.comm;resolution:=optional,
-      <!-- JMS is optional -->
-      javax.jms;substitute="javax.jms-api";version="[1.1,3)";resolution:=optional,
       <!-- Log4j Core is optional -->
       org.apache.logging.log4j.core.*;resolution:=optional
     </bnd-extra-package-options>
@@ -49,11 +47,6 @@
     <!-- we have an `bnd.bnd` file to override the parent's defaults -->
   </properties>
   <dependencies>
-    <dependency>
-      <groupId>javax.jms</groupId>
-      <artifactId>javax.jms-api</artifactId>
-      <scope>provided</scope>
-    </dependency>
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
       <artifactId>log4j-api</artifactId>
diff --git a/log4j-api-test/src/test/java/org/apache/logging/log4j/util/PropertiesUtilOrderTest.java b/log4j-api-test/src/test/java/org/apache/logging/log4j/util/PropertiesUtilOrderTest.java
index 984dfb51fb..5952131c38 100644
--- a/log4j-api-test/src/test/java/org/apache/logging/log4j/util/PropertiesUtilOrderTest.java
+++ b/log4j-api-test/src/test/java/org/apache/logging/log4j/util/PropertiesUtilOrderTest.java
@@ -90,7 +90,6 @@ public class PropertiesUtilOrderTest {
         env.set("log4j2.*.Configuration.statusLoggerLevel", "ERROR");
         env.set("log4j2.*.StatusLogger.entries", "200");
         env.set("log4j2.my-app.StatusLogger.entries", "500");
-        sysProps.set("log4j2.*.JNDI.enableJMS", "false");
         sysProps.set("log4j2.my-app.Configuration.mergeStrategy", "org.apache.CustomMergeStrategy");
         sysProps.set("log4j2.*.Web.isWebApp", "true");
         PropertiesUtil.getProperties().reload();
@@ -102,14 +101,10 @@ public class PropertiesUtilOrderTest {
         assertTrue(contextProperties.hasProperty(TestProperty.CONFIG_TEST1));
         // Context environment properties should override system-wide environment definition.
         assertEquals("500", contextProperties.getStringProperty(LoggingSystemProperty.STATUS_MAX_ENTRIES));
-        // System property value should be recognized.
-        assertEquals("false", util.getStringProperty(TestProperty.JNDI_JMS, "true"));
         // Context system property should override Context property from file.
         assertEquals("org.apache.CustomMergeStrategy", contextProperties.getStringProperty(TestProperty.CONFIG_MERGE_STRATEGY));
         // Recognize system-wide environment variable.
         assertEquals("200", util.getStringProperty(LoggingSystemProperty.STATUS_MAX_ENTRIES));
-        // Context properties in file should override system-wide system property.
-        assertEquals("true", contextProperties.getStringProperty(TestProperty.JNDI_JMS, "false"));
         // System-wide system property should be used when no other value is available.
         assertEquals("true", contextProperties.getStringProperty(LoggingSystemProperty.IS_WEBAPP));
         // Context property in file should override system-wide property in file.
diff --git a/log4j-core-its/pom.xml b/log4j-core-its/pom.xml
index b148cf27f0..b206fb65dc 100644
--- a/log4j-core-its/pom.xml
+++ b/log4j-core-its/pom.xml
@@ -38,13 +38,6 @@
     <maven.test.skip>true</maven.test.skip>
   </properties>
   <dependencies>
-    <!-- Used for JMS appenders (needs an implementation of course) -->
-    <dependency>
-      <groupId>javax.jms</groupId>
-      <artifactId>javax.jms-api</artifactId>
-      <scope>provided</scope>
-      <optional>true</optional>
-    </dependency>
     <!-- Alternative implementation of BlockingQueue using Conversant Disruptor for AsyncAppender -->
     <dependency>
       <groupId>com.conversantmedia</groupId>
@@ -144,23 +137,6 @@
       <artifactId>log4j-layout-jackson-xml</artifactId>
       <scope>test</scope>
     </dependency>
-    <!-- JPA, JNDI and JMS tests -->
-    <dependency>
-      <groupId>org.apache.activemq</groupId>
-      <artifactId>activemq-broker</artifactId>
-      <scope>test</scope>
-      <exclusions>
-        <exclusion>
-          <groupId>org.apache.geronimo.specs</groupId>
-          <artifactId>geronimo-jms_1.1_spec</artifactId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-    <dependency>
-      <groupId>commons-logging</groupId>
-      <artifactId>commons-logging</artifactId>
-      <scope>test</scope>
-    </dependency>
     <dependency>
       <groupId>org.hamcrest</groupId>
       <artifactId>hamcrest</artifactId>
@@ -223,8 +199,7 @@
           <excludes>
             <exclude>**/ForceNoDefClassFoundError.*</exclude>
           </excludes>
-          <groups>org.apache.logging.log4j.core.test.categories.PerformanceTests,
-            org.apache.logging.log4j.core.test.categories.Appenders$Jms</groups>
+          <groups>org.apache.logging.log4j.core.test.categories.PerformanceTests</groups>
         </configuration>
       </plugin>
       <plugin>
diff --git a/log4j-core-test/pom.xml b/log4j-core-test/pom.xml
index 3389f8ef28..54394325d3 100644
--- a/log4j-core-test/pom.xml
+++ b/log4j-core-test/pom.xml
@@ -106,11 +106,6 @@
       <artifactId>commons-compress</artifactId>
       <optional>true</optional>
     </dependency>
-    <!-- JNDI and JMS tests -->
-    <dependency>
-      <groupId>commons-logging</groupId>
-      <artifactId>commons-logging</artifactId>
-    </dependency>
     <!-- Alternative implementation of BlockingQueue using Conversant Disruptor for AsyncAppender -->
     <dependency>
       <groupId>com.conversantmedia</groupId>
diff --git a/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/categories/Appenders.java b/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/categories/Appenders.java
index d830db3d0f..a8aaee98b4 100644
--- a/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/categories/Appenders.java
+++ b/log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/categories/Appenders.java
@@ -24,7 +24,6 @@ public interface Appenders {
     interface AsyncJcTools {}
     interface Cassandra {}
     interface CouchDb {}
-    interface Jms {}
     interface Jpa {}
     interface Kafka {}
     interface MongoDb {}
diff --git a/log4j-core-test/src/main/resources/Log4j-config.xsd b/log4j-core-test/src/main/resources/Log4j-config.xsd
index 5868cdb162..8f6687459e 100644
--- a/log4j-core-test/src/main/resources/Log4j-config.xsd
+++ b/log4j-core-test/src/main/resources/Log4j-config.xsd
@@ -647,9 +647,6 @@
          <element name="Console" type="tns:ConsoleAppenderType" minOccurs="0" />
          <element name="Flume" type="tns:FlumeAppenderType" minOccurs="0" />
          <element name="JeroMQ" type="tns:JeroMQAppenderType" minOccurs="0" />
-         <element name="JMS" type="tns:JMSAppenderType" minOccurs="0" />
-         <element name="JMSQueue" type="tns:JMSAppenderType" minOccurs="0" />
-         <element name="JMSTopic" type="tns:JMSAppenderType" minOccurs="0" />
          <element name="Kafka" type="tns:KafkaAppenderType" minOccurs="0" />
          <element name="Rewrite" type="tns:RewriteAppenderType" minOccurs="0" />
          <element name="Routing" type="tns:RoutingAppenderType" minOccurs="0" />
@@ -839,14 +836,6 @@
       </complexContent>
    </complexType>
 
-   <complexType name="JMSAppenderType">
-      <complexContent>
-         <extension base="tns:AbstractAppenderType">
-            <anyAttribute processContents="lax" />
-         </extension>
-      </complexContent>
-   </complexType>
-
    <complexType name="KafkaAppenderType">
       <complexContent>
          <extension base="tns:AbstractAppenderType">
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/Layout.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/Layout.java
index 9c7a81dc31..70e2f57fd1 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/Layout.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/Layout.java
@@ -60,13 +60,6 @@ public interface Layout extends Encoder<LogEvent> {
      */
     byte[] toByteArray(LogEvent event);
 
-    /**
-     * Returns the character set used for encoding log events.
-     */
-    default Charset getCharset() {
-        return StandardCharsets.UTF_8;
-    }
-
     /**
      * Serializes the log event into a String.
      *
diff --git a/log4j-core/src/main/resources/Log4j-config.xsd b/log4j-core/src/main/resources/Log4j-config.xsd
index 5868cdb162..8f6687459e 100644
--- a/log4j-core/src/main/resources/Log4j-config.xsd
+++ b/log4j-core/src/main/resources/Log4j-config.xsd
@@ -647,9 +647,6 @@
          <element name="Console" type="tns:ConsoleAppenderType" minOccurs="0" />
          <element name="Flume" type="tns:FlumeAppenderType" minOccurs="0" />
          <element name="JeroMQ" type="tns:JeroMQAppenderType" minOccurs="0" />
-         <element name="JMS" type="tns:JMSAppenderType" minOccurs="0" />
-         <element name="JMSQueue" type="tns:JMSAppenderType" minOccurs="0" />
-         <element name="JMSTopic" type="tns:JMSAppenderType" minOccurs="0" />
          <element name="Kafka" type="tns:KafkaAppenderType" minOccurs="0" />
          <element name="Rewrite" type="tns:RewriteAppenderType" minOccurs="0" />
          <element name="Routing" type="tns:RoutingAppenderType" minOccurs="0" />
@@ -839,14 +836,6 @@
       </complexContent>
    </complexType>
 
-   <complexType name="JMSAppenderType">
-      <complexContent>
-         <extension base="tns:AbstractAppenderType">
-            <anyAttribute processContents="lax" />
-         </extension>
-      </complexContent>
-   </complexType>
-
    <complexType name="KafkaAppenderType">
       <complexContent>
          <extension base="tns:AbstractAppenderType">
diff --git a/log4j-distribution/pom.xml b/log4j-distribution/pom.xml
index d3cd08a8c7..4483fe7f35 100644
--- a/log4j-distribution/pom.xml
+++ b/log4j-distribution/pom.xml
@@ -297,18 +297,6 @@
       <version>${project.version}</version>
       <classifier>sources</classifier>
     </dependency>
-    <!-- log4j-jms -->
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-jms</artifactId>
-      <version>${project.version}</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-jms</artifactId>
-      <version>${project.version}</version>
-      <classifier>sources</classifier>
-    </dependency>
     <!-- log4j-jndi -->
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
diff --git a/log4j-gctests/pom.xml b/log4j-gctests/pom.xml
index 68fd66ddcd..5cefc13f70 100644
--- a/log4j-gctests/pom.xml
+++ b/log4j-gctests/pom.xml
@@ -169,12 +169,6 @@
       <artifactId>commons-lang3</artifactId>
       <scope>test</scope>
     </dependency>
-    <!-- JNDI and JMS tests -->
-    <dependency>
-      <groupId>commons-logging</groupId>
-      <artifactId>commons-logging</artifactId>
-      <scope>test</scope>
-    </dependency>
     <dependency>
       <groupId>org.apache.groovy</groupId>
       <artifactId>groovy-dateutil</artifactId>
diff --git a/log4j-jms/pom.xml b/log4j-jms/pom.xml
deleted file mode 100644
index 6ade95cd13..0000000000
--- a/log4j-jms/pom.xml
+++ /dev/null
@@ -1,125 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <parent>
-    <groupId>org.apache.logging.log4j</groupId>
-    <artifactId>log4j</artifactId>
-    <version>${revision}</version>
-    <relativePath>../log4j-parent</relativePath>
-  </parent>
-
-  <artifactId>log4j-jms</artifactId>
-  <name>Apache Log4j JMS</name>
-  <description>Apache Log4j Java Message Service (JMS).</description>
-  <properties>
-    <log4jParentDir>${basedir}/..</log4jParentDir>
-    <docLabel>Log4j JMS Documentation</docLabel>
-    <projectDir>/log4j-jms</projectDir>
-
-    <!--
-      ~ OSGi and JPMS options
-      -->
-    <bnd-extra-module-options>
-      <!-- Filebased module names must be `static` -->
-      javax.jms.api;substitute="javax.jms-api";static=true;transitive=false
-    </bnd-extra-module-options>
-  </properties>
-
-  <dependencies>
-    <!-- Used for JMS appenders (needs an implementation of course) -->
-    <dependency>
-      <groupId>javax.jms</groupId>
-      <artifactId>javax.jms-api</artifactId>
-      <scope>provided</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-core</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-jndi</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-api-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-core-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-jndi-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>commons-logging</groupId>
-      <artifactId>commons-logging</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.hamcrest</groupId>
-      <artifactId>hamcrest</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.junit.jupiter</groupId>
-      <artifactId>junit-jupiter-engine</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.junit.vintage</groupId>
-      <artifactId>junit-vintage-engine</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <!-- Mocking framework for use with JUnit -->
-    <dependency>
-      <groupId>org.mockito</groupId>
-      <artifactId>mockito-core</artifactId>
-      <scope>test</scope>
-    </dependency>
-    <!-- Useful mock classes and utilities -->
-    <dependency>
-      <groupId>org.springframework</groupId>
-      <artifactId>spring-test</artifactId>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <annotationProcessorPaths combine.children="append">
-            <path>
-              <groupId>org.apache.logging.log4j</groupId>
-              <artifactId>log4j-plugin-processor</artifactId>
-              <version>${project.version}</version>
-            </path>
-          </annotationProcessorPaths>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
-</project>
diff --git a/log4j-jms/src/main/java/org/apache/logging/log4j/jms/appender/JmsAppender.java b/log4j-jms/src/main/java/org/apache/logging/log4j/jms/appender/JmsAppender.java
deleted file mode 100644
index 4eb8cafe7f..0000000000
--- a/log4j-jms/src/main/java/org/apache/logging/log4j/jms/appender/JmsAppender.java
+++ /dev/null
@@ -1,241 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jms.appender;
-
-import java.util.Properties;
-import java.util.concurrent.TimeUnit;
-
-import javax.jms.JMSException;
-
-import org.apache.logging.log4j.core.Appender;
-import org.apache.logging.log4j.core.Filter;
-import org.apache.logging.log4j.core.Layout;
-import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.core.appender.AbstractAppender;
-import org.apache.logging.log4j.core.appender.AbstractManager;
-import org.apache.logging.log4j.core.config.Property;
-import org.apache.logging.log4j.core.util.Constants;
-import org.apache.logging.log4j.jms.appender.JmsManager.JmsManagerConfiguration;
-import org.apache.logging.log4j.plugins.Configurable;
-import org.apache.logging.log4j.plugins.Plugin;
-import org.apache.logging.log4j.plugins.PluginAliases;
-import org.apache.logging.log4j.plugins.PluginBuilderAttribute;
-import org.apache.logging.log4j.plugins.PluginFactory;
-import org.apache.logging.log4j.plugins.validation.constraints.Required;
-
-/**
- * Generic JMS Appender plugin for both queues and topics. This Appender replaces the previous split ones. However,
- * configurations set up for the 2.0 version of the JMS appenders will still work.
- */
-@Configurable(elementType = Appender.ELEMENT_TYPE, printObject = true)
-@Plugin("JMS")
-@PluginAliases({ "JMSQueue", "JMSTopic" })
-public class JmsAppender extends AbstractAppender {
-
-    public static class Builder<B extends Builder<B>> extends AbstractAppender.Builder<B>
-            implements org.apache.logging.log4j.plugins.util.Builder<JmsAppender> {
-
-        public static final int DEFAULT_RECONNECT_INTERVAL_MILLIS = 5000;
-
-        @PluginBuilderAttribute
-        private String factoryName;
-
-        @PluginBuilderAttribute
-        private String providerUrl;
-
-        @PluginBuilderAttribute
-        private String urlPkgPrefixes;
-
-        @PluginBuilderAttribute
-        private String securityPrincipalName;
-
-        @PluginBuilderAttribute(sensitive = true)
-        private String securityCredentials;
-
-        @PluginBuilderAttribute
-        @Required(message = "A javax.jms.ConnectionFactory JNDI name must be specified")
-        private String factoryBindingName;
-
-        @PluginBuilderAttribute
-        @PluginAliases({ "queueBindingName", "topicBindingName" })
-        @Required(message = "A javax.jms.Destination JNDI name must be specified")
-        private String destinationBindingName;
-
-        @PluginBuilderAttribute
-        private String userName;
-
-        @PluginBuilderAttribute(sensitive = true)
-        private char[] password;
-
-        @PluginBuilderAttribute
-        private long reconnectIntervalMillis = DEFAULT_RECONNECT_INTERVAL_MILLIS;
-
-        @PluginBuilderAttribute
-        private boolean immediateFail;
-
-        // Programmatic access only for now.
-        private JmsManager jmsManager;
-
-        private Builder() {
-        }
-
-        @SuppressWarnings("resource") // actualJmsManager and jndiManager are managed by the JmsAppender
-        @Override
-        public JmsAppender build() {
-            if (!Constants.JNDI_JMS_ENABLED) {
-                LOGGER.error("JNDI has not been enabled. The log4j2.enableJndi property must be set to true");
-                return null;
-            }
-            JmsManager actualJmsManager = jmsManager;
-            JmsManagerConfiguration configuration = null;
-            if (actualJmsManager == null) {
-                final Properties additionalProperties = null;
-                final Properties jndiProperties = JmsManager.createJndiProperties(factoryName, providerUrl,
-                        urlPkgPrefixes, securityPrincipalName, securityCredentials, additionalProperties);
-                configuration = new JmsManagerConfiguration(jndiProperties, factoryBindingName, destinationBindingName,
-                        userName, password, false, reconnectIntervalMillis);
-                actualJmsManager = AbstractManager.getManager(getName(), JmsManager.FACTORY, configuration);
-            }
-            if (actualJmsManager == null) {
-                // JmsManagerFactory has already logged an ERROR.
-                return null;
-            }
-            try {
-                return new JmsAppender(getName(), getFilter(), getLayout(), isIgnoreExceptions(), getPropertyArray(), actualJmsManager);
-            } catch (final JMSException e) {
-                //  Never happens since the ctor no longer actually throws a JMSException.
-                throw new IllegalStateException(e);
-            }
-        }
-
-        public B setDestinationBindingName(final String destinationBindingName) {
-            this.destinationBindingName = destinationBindingName;
-            return asBuilder();
-        }
-
-        public B setFactoryBindingName(final String factoryBindingName) {
-            this.factoryBindingName = factoryBindingName;
-            return asBuilder();
-        }
-
-        public B setFactoryName(final String factoryName) {
-            this.factoryName = factoryName;
-            return asBuilder();
-        }
-
-        public B setImmediateFail(final boolean immediateFail) {
-            this.immediateFail = immediateFail;
-            return asBuilder();
-        }
-
-        public B setJmsManager(final JmsManager jmsManager) {
-            this.jmsManager = jmsManager;
-            return asBuilder();
-        }
-
-        public B setPassword(final char[] password) {
-            this.password = password;
-            return asBuilder();
-        }
-
-        public B setProviderUrl(final String providerUrl) {
-            this.providerUrl = providerUrl;
-            return asBuilder();
-        }
-
-        public B setReconnectIntervalMillis(final long reconnectIntervalMillis) {
-            this.reconnectIntervalMillis = reconnectIntervalMillis;
-            return asBuilder();
-        }
-
-        public B setSecurityCredentials(final String securityCredentials) {
-            this.securityCredentials = securityCredentials;
-            return asBuilder();
-        }
-
-        public B setSecurityPrincipalName(final String securityPrincipalName) {
-            this.securityPrincipalName = securityPrincipalName;
-            return asBuilder();
-        }
-
-        public B setUrlPkgPrefixes(final String urlPkgPrefixes) {
-            this.urlPkgPrefixes = urlPkgPrefixes;
-            return asBuilder();
-        }
-
-        public B setUserName(final String userName) {
-            this.userName = userName;
-            return asBuilder();
-        }
-
-        /**
-         * Does not include the password.
-         */
-        @Override
-        public String toString() {
-            return "Builder [name=" + getName() + ", factoryName=" + factoryName + ", providerUrl=" + providerUrl
-                    + ", urlPkgPrefixes=" + urlPkgPrefixes + ", securityPrincipalName=" + securityPrincipalName
-                    + ", securityCredentials=" + securityCredentials + ", factoryBindingName=" + factoryBindingName
-                    + ", destinationBindingName=" + destinationBindingName + ", username=" + userName + ", layout="
-                    + getLayout() + ", filter=" + getFilter() + ", ignoreExceptions=" + isIgnoreExceptions()
-                    + ", jmsManager=" + jmsManager + "]";
-        }
-
-    }
-
-    @PluginFactory
-    public static Builder newBuilder() {
-        return new Builder();
-    }
-
-    private final JmsManager manager;
-
-    /**
-     * @param name The Appender's name.
-     * @param filter The filter to attach to the Appender, if any.
-     * @param layout The layout to use to render the event.
-     * @param ignoreExceptions true if exceptions should be ignore, false otherwise.
-     * @param properties TODO
-     * @param manager The JMSManager.
-     * @throws JMSException
-     *             not thrown as of 2.9 but retained in the signature for compatibility, will be removed in 3.0.
-     */
-    protected JmsAppender(final String name, final Filter filter, final Layout layout,
-            final boolean ignoreExceptions, final Property[] properties, final JmsManager manager) throws JMSException {
-        super(name, filter, layout, ignoreExceptions, properties);
-        this.manager = manager;
-    }
-
-    @Override
-    public void append(final LogEvent event) {
-        this.manager.send(event, getLayout());
-    }
-
-    public JmsManager getManager() {
-        return manager;
-    }
-
-    @Override
-    public boolean stop(final long timeout, final TimeUnit timeUnit) {
-        setStopping();
-        boolean stopped = super.stop(timeout, timeUnit, false);
-        stopped &= this.manager.stop(timeout, timeUnit);
-        setStopped();
-        return stopped;
-    }
-
-}
diff --git a/log4j-jms/src/main/java/org/apache/logging/log4j/jms/appender/JmsManager.java b/log4j-jms/src/main/java/org/apache/logging/log4j/jms/appender/JmsManager.java
deleted file mode 100644
index d000fb615e..0000000000
--- a/log4j-jms/src/main/java/org/apache/logging/log4j/jms/appender/JmsManager.java
+++ /dev/null
@@ -1,477 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jms.appender;
-
-import java.util.Properties;
-import java.util.concurrent.CountDownLatch;
-import java.util.concurrent.TimeUnit;
-
-import javax.jms.Connection;
-import javax.jms.ConnectionFactory;
-import javax.jms.Destination;
-import javax.jms.JMSException;
-import javax.jms.MapMessage;
-import javax.jms.Message;
-import javax.jms.MessageConsumer;
-import javax.jms.MessageProducer;
-import javax.jms.Session;
-import javax.naming.NamingException;
-
-import org.apache.logging.log4j.core.Layout;
-import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.core.appender.AbstractManager;
-import org.apache.logging.log4j.core.appender.AppenderLoggingException;
-import org.apache.logging.log4j.core.appender.ManagerFactory;
-import org.apache.logging.log4j.core.util.Log4jThread;
-import org.apache.logging.log4j.jndi.JndiManager;
-import org.apache.logging.log4j.status.StatusLogger;
-
-/**
- * Consider this class <b>private</b>; it is only <b>public</b> for access by integration tests.
- *
- * <p>
- * JMS connection and session manager. Can be used to access MessageProducer, MessageConsumer, and Message objects
- * involving a configured ConnectionFactory and Destination.
- * </p>
- */
-public class JmsManager extends AbstractManager {
-
-    public static class JmsManagerConfiguration {
-        private final Properties jndiProperties;
-        private final String connectionFactoryName;
-        private final String destinationName;
-        private final String userName;
-        private final char[] password;
-        private final boolean immediateFail;
-        private final boolean retry;
-        private final long reconnectIntervalMillis;
-
-        JmsManagerConfiguration(final Properties jndiProperties, final String connectionFactoryName,
-                final String destinationName, final String userName, final char[] password, final boolean immediateFail,
-                final long reconnectIntervalMillis) {
-            this.jndiProperties = jndiProperties;
-            this.connectionFactoryName = connectionFactoryName;
-            this.destinationName = destinationName;
-            this.userName = userName;
-            this.password = password;
-            this.immediateFail = immediateFail;
-            this.reconnectIntervalMillis = reconnectIntervalMillis;
-            this.retry = reconnectIntervalMillis > 0;
-        }
-
-        public String getConnectionFactoryName() {
-            return connectionFactoryName;
-        }
-
-        public String getDestinationName() {
-            return destinationName;
-        }
-
-        public JndiManager getJndiManager() {
-            return JndiManager.getJndiManager(getJndiProperties());
-        }
-
-        public Properties getJndiProperties() {
-            return jndiProperties;
-        }
-
-        public char[] getPassword() {
-            return password;
-        }
-
-        public long getReconnectIntervalMillis() {
-            return reconnectIntervalMillis;
-        }
-
-        public String getUserName() {
-            return userName;
-        }
-
-        public boolean isImmediateFail() {
-            return immediateFail;
-        }
-
-        public boolean isRetry() {
-            return retry;
-        }
-
-        @Override
-        public String toString() {
-            return "JmsManagerConfiguration [jndiProperties=" + jndiProperties + ", connectionFactoryName="
-                    + connectionFactoryName + ", destinationName=" + destinationName + ", userName=" + userName
-                    + ", immediateFail=" + immediateFail + ", retry=" + retry + ", reconnectIntervalMillis="
-                    + reconnectIntervalMillis + "]";
-        }
-
-    }
-
-    private static class JmsManagerFactory implements ManagerFactory<JmsManager, JmsManagerConfiguration> {
-
-        @Override
-        public JmsManager createManager(final String name, final JmsManagerConfiguration data) {
-            try {
-                return new JmsManager(name, data);
-            } catch (final Exception e) {
-                logger().error("Error creating JmsManager using JmsManagerConfiguration [{}]", data, e);
-                return null;
-            }
-        }
-    }
-
-    /**
-     * Creates the JNDI properties. Keeps caller from being dependent on JndiManager.
-     * @param factoryName
-     *            Fully qualified class name of an implementation of {@link javax.naming.spi.InitialContextFactory}.
-     * @param providerUrl
-     *            The provider URL to use for the JNDI connection (specific to the above factory).
-     * @param urlPkgPrefixes
-     *            A colon-separated list of package prefixes for the class name of the factory class that will create a
-     *            URL context factory
-     * @param securityPrincipal
-     *            The name of the identity of the Principal.
-     * @param securityCredentials
-     *            The security credentials of the Principal.
-     * @param additionalProperties
-     *            Any additional JNDI environment properties to set or {@code null} for none.
-     * @return the Properties for the provided parameters.
-     */
-    public static Properties createJndiProperties(final String factoryName, final String providerUrl,
-            final String urlPkgPrefixes, final String securityPrincipal, final String securityCredentials,
-            final Properties additionalProperties) {
-        return JndiManager.createProperties(factoryName, providerUrl, urlPkgPrefixes,
-                securityPrincipal, securityCredentials, additionalProperties);
-    }
-
-    /**
-     * Handles reconnecting to JMS on a Thread.
-     */
-    private final class Reconnector extends Log4jThread {
-
-        private final CountDownLatch latch = new CountDownLatch(1);
-
-        private volatile boolean shutdown;
-
-        private final Object owner;
-
-        private Reconnector(final Object owner) {
-            super("JmsManager-Reconnector");
-            this.owner = owner;
-        }
-
-        public void latch() {
-            try {
-                latch.await();
-            } catch (final InterruptedException ex) {
-                // Ignore the exception.
-            }
-        }
-
-        void reconnect() throws NamingException, JMSException {
-            final JndiManager jndiManager2 = getJndiManager();
-            final Connection connection2 = createConnection(jndiManager2);
-            final Session session2 = createSession(connection2);
-            final Destination destination2 = createDestination(jndiManager2);
-            final MessageProducer messageProducer2 = createMessageProducer(session2, destination2);
-            connection2.start();
-            synchronized (owner) {
-                jndiManager = jndiManager2;
-                connection = connection2;
-                session = session2;
-                destination = destination2;
-                messageProducer = messageProducer2;
-                reconnector = null;
-                shutdown = true;
-            }
-            logger().debug("Connection reestablished to {}", configuration);
-        }
-
-        @Override
-        public void run() {
-            while (!shutdown) {
-                try {
-                    sleep(configuration.getReconnectIntervalMillis());
-                    reconnect();
-                } catch (final InterruptedException | JMSException | NamingException e) {
-                    logger().debug("Cannot reestablish JMS connection to {}: {}", configuration, e.getLocalizedMessage(),
-                            e);
-                } finally {
-                    latch.countDown();
-                }
-            }
-        }
-
-        public void shutdown() {
-            shutdown = true;
-        }
-
-    }
-
-    static final JmsManagerFactory FACTORY = new JmsManagerFactory();
-
-    /**
-     * Gets a JmsManager using the specified configuration parameters.
-     *
-     * @param name The name to use for this JmsManager.
-     * @param jndiProperties JNDI properties.
-     * @param connectionFactoryName The binding name for the {@link javax.jms.ConnectionFactory}.
-     * @param destinationName The binding name for the {@link javax.jms.Destination}.
-     * @param userName The userName to connect with or {@code null} for no authentication.
-     * @param password The password to use with the given userName or {@code null} for no authentication.
-     * @param immediateFail Whether or not to fail immediately with a {@link AppenderLoggingException} when
-     *                      connecting to JMS fails.
-     * @param reconnectIntervalMillis How to log sleep in milliseconds before trying to reconnect to JMS.
-     * @return The JmsManager as configured.
-     */
-    public static JmsManager getJmsManager(final String name, final Properties jndiProperties,
-            final String connectionFactoryName, final String destinationName, final String userName,
-            final char[] password, final boolean immediateFail, final long reconnectIntervalMillis) {
-        final JmsManagerConfiguration configuration = new JmsManagerConfiguration(jndiProperties, connectionFactoryName,
-                destinationName, userName, password, immediateFail, reconnectIntervalMillis);
-        return getManager(name, FACTORY, configuration);
-    }
-
-    private final JmsManagerConfiguration configuration;
-
-    private volatile Reconnector reconnector;
-    private volatile JndiManager jndiManager;
-    private volatile Connection connection;
-    private volatile Session session;
-    private volatile Destination destination;
-    private volatile MessageProducer messageProducer;
-
-    private JmsManager(final String name, final JmsManagerConfiguration configuration) {
-        super(null, name);
-        this.configuration = configuration;
-        this.jndiManager = configuration.getJndiManager();
-        try {
-            this.connection = createConnection(this.jndiManager);
-            this.session = createSession(this.connection);
-            this.destination = createDestination(this.jndiManager);
-            this.messageProducer = createMessageProducer(this.session, this.destination);
-            this.connection.start();
-        } catch (NamingException | JMSException e) {
-            this.reconnector = createReconnector();
-            this.reconnector.start();
-        }
-    }
-
-    private boolean closeConnection() {
-        if (connection == null) {
-            return true;
-        }
-        final Connection temp = connection;
-        connection = null;
-        try {
-            temp.close();
-            return true;
-        } catch (final JMSException e) {
-            StatusLogger.getLogger().debug(
-                    "Caught exception closing JMS Connection: {} ({}); continuing JMS manager shutdown",
-                    e.getLocalizedMessage(), temp, e);
-            return false;
-        }
-    }
-
-    private boolean closeJndiManager() {
-        if (jndiManager == null) {
-            return true;
-        }
-        final JndiManager tmp = jndiManager;
-        jndiManager = null;
-        tmp.close();
-        return true;
-    }
-
-    private boolean closeMessageProducer() {
-        if (messageProducer == null) {
-            return true;
-        }
-        final MessageProducer temp = messageProducer;
-        messageProducer = null;
-        try {
-            temp.close();
-            return true;
-        } catch (final JMSException e) {
-            StatusLogger.getLogger().debug(
-                    "Caught exception closing JMS MessageProducer: {} ({}); continuing JMS manager shutdown",
-                    e.getLocalizedMessage(), temp, e);
-            return false;
-        }
-    }
-
-    private boolean closeSession() {
-        if (session == null) {
-            return true;
-        }
-        final Session temp = session;
-        session = null;
-        try {
-            temp.close();
-            return true;
-        } catch (final JMSException e) {
-            StatusLogger.getLogger().debug(
-                    "Caught exception closing JMS Session: {} ({}); continuing JMS manager shutdown",
-                    e.getLocalizedMessage(), temp, e);
-            return false;
-        }
-    }
-
-    private Connection createConnection(final JndiManager jndiManager) throws NamingException, JMSException {
-        final ConnectionFactory connectionFactory = jndiManager.lookup(configuration.getConnectionFactoryName());
-        if (configuration.getUserName() != null && configuration.getPassword() != null) {
-            return connectionFactory.createConnection(configuration.getUserName(),
-                    configuration.getPassword() == null ? null : String.valueOf(configuration.getPassword()));
-        }
-        return connectionFactory.createConnection();
-
-    }
-
-    private Destination createDestination(final JndiManager jndiManager) throws NamingException {
-        return jndiManager.lookup(configuration.getDestinationName());
-    }
-
-    private void createMessageAndSend(final LogEvent event, final Layout layout) throws JMSException {
-        final var eventMessage = event.getMessage();
-        final Message message;
-        if (eventMessage instanceof org.apache.logging.log4j.message.MapMessage<?, ?>) {
-            message = map((org.apache.logging.log4j.message.MapMessage<?, ?>) eventMessage, session.createMapMessage());
-        } else if (layout != null) {
-            message = session.createTextMessage(layout.toSerializable(event));
-        } else {
-            throw new UnsupportedOperationException("Unable to create a JMS message without a layout defined");
-        }
-        message.setJMSTimestamp(event.getTimeMillis());
-        messageProducer.send(message);
-    }
-
-    /**
-     * Creates a MessageConsumer on this Destination using the current Session.
-     *
-     * @return A MessageConsumer on this Destination.
-     * @throws JMSException if an error occurs.
-     */
-    public MessageConsumer createMessageConsumer() throws JMSException {
-        return this.session.createConsumer(this.destination);
-    }
-
-    /**
-     * Creates a MessageProducer on this Destination using the current Session.
-     *
-     * @param session
-     *            The JMS Session to use to create the MessageProducer
-     * @param destination
-     *            The JMS Destination for the MessageProducer
-     * @return A MessageProducer on this Destination.
-     * @throws JMSException if an error occurs.
-     */
-    public MessageProducer createMessageProducer(final Session session, final Destination destination)
-            throws JMSException {
-        return session.createProducer(destination);
-    }
-
-    private Reconnector createReconnector() {
-        final Reconnector recon = new Reconnector(this);
-        recon.setDaemon(true);
-        recon.setPriority(Thread.MIN_PRIORITY);
-        return recon;
-    }
-
-    private Session createSession(final Connection connection) throws JMSException {
-        return connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
-    }
-
-    public JmsManagerConfiguration getJmsManagerConfiguration() {
-        return configuration;
-    }
-
-    JndiManager getJndiManager() {
-        return configuration.getJndiManager();
-    }
-
-    <T> T lookup(final String destinationName) throws NamingException {
-        return this.jndiManager.lookup(destinationName);
-    }
-
-    private MapMessage map(final org.apache.logging.log4j.message.MapMessage<?, ?> log4jMapMessage,
-            final MapMessage jmsMapMessage) {
-        // Map without calling org.apache.logging.log4j.message.MapMessage#getData() which makes a copy of the map.
-        log4jMapMessage.forEach((key, value) -> {
-            try {
-                jmsMapMessage.setObject(key, value);
-            } catch (final JMSException e) {
-                throw new IllegalArgumentException(String.format("%s mapping key '%s' to value '%s': %s",
-                        e.getClass(), key, value, e.getLocalizedMessage()), e);
-            }
-        });
-        return jmsMapMessage;
-    }
-
-    @Override
-    protected boolean releaseSub(final long timeout, final TimeUnit timeUnit) {
-        if (reconnector != null) {
-            reconnector.shutdown();
-            reconnector.interrupt();
-            reconnector = null;
-        }
-        boolean closed = false;
-        closed &= closeJndiManager();
-        closed &= closeMessageProducer();
-        closed &= closeSession();
-        closed &= closeConnection();
-        return closed && this.jndiManager.stop(timeout, timeUnit);
-    }
-
-    void send(final LogEvent event, final Layout layout) {
-        if (messageProducer == null) {
-            if (reconnector != null && !configuration.isImmediateFail()) {
-                reconnector.latch();
-                if (messageProducer == null) {
-                    throw new AppenderLoggingException(
-                            "Error sending to JMS Manager '" + getName() + "': JMS message producer not available");
-                }
-            }
-        }
-        synchronized (this) {
-            try {
-                createMessageAndSend(event, layout);
-            } catch (final JMSException causeEx) {
-                if (configuration.isRetry() && reconnector == null) {
-                    reconnector = createReconnector();
-                    try {
-                        closeJndiManager();
-                        reconnector.reconnect();
-                    } catch (NamingException | JMSException reconnEx) {
-                        logger().debug("Cannot reestablish JMS connection to {}: {}; starting reconnector thread {}",
-                                configuration, reconnEx.getLocalizedMessage(), reconnector.getName(), reconnEx);
-                        reconnector.start();
-                        throw new AppenderLoggingException(
-                                String.format("JMS exception sending to %s for %s", getName(), configuration), causeEx);
-                    }
-                    try {
-                        createMessageAndSend(event, layout);
-                    } catch (final JMSException e) {
-                        throw new AppenderLoggingException(
-                                String.format("Error sending to %s after reestablishing JMS connection for %s", getName(),
-                                        configuration),
-                                causeEx);
-                    }
-                }
-            }
-        }
-    }
-
-}
diff --git a/log4j-jms/src/main/java/org/apache/logging/log4j/jms/appender/package-info.java b/log4j-jms/src/main/java/org/apache/logging/log4j/jms/appender/package-info.java
deleted file mode 100644
index da03b25969..0000000000
--- a/log4j-jms/src/main/java/org/apache/logging/log4j/jms/appender/package-info.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * 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.
- */
-
-/**
- * Message oriented middleware appenders.
- *
- * @since 2.1
- */
-@Export
-@Version("1.0.0")
-package org.apache.logging.log4j.jms.appender;
-
-import org.osgi.annotation.bundle.Export;
-import org.osgi.annotation.versioning.Version;
diff --git a/log4j-jms/src/test/java/org/apache/logging/log4j/jms/appender/JmsAppenderTest.java b/log4j-jms/src/test/java/org/apache/logging/log4j/jms/appender/JmsAppenderTest.java
deleted file mode 100644
index afc2f74aec..0000000000
--- a/log4j-jms/src/test/java/org/apache/logging/log4j/jms/appender/JmsAppenderTest.java
+++ /dev/null
@@ -1,190 +0,0 @@
-/*
- * 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.
- */
-package org.apache.logging.log4j.jms.appender;
-
-import java.util.Map;
-
-import javax.jms.Connection;
-import javax.jms.ConnectionFactory;
-import javax.jms.Destination;
-import javax.jms.MapMessage;
-import javax.jms.MessageProducer;
-import javax.jms.ObjectMessage;
-import javax.jms.Session;
-import javax.jms.TextMessage;
-
-import org.apache.logging.log4j.Level;
-import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.core.impl.Log4jLogEvent;
-import org.apache.logging.log4j.core.impl.Log4jPropertyKey;
-import org.apache.logging.log4j.core.test.categories.Appenders;
-import org.apache.logging.log4j.core.test.junit.LoggerContextRule;
-import org.apache.logging.log4j.jndi.test.junit.JndiRule;
-import org.apache.logging.log4j.message.Message;
-import org.apache.logging.log4j.message.SimpleMessage;
-import org.apache.logging.log4j.message.StringMapMessage;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.experimental.categories.Category;
-import org.junit.rules.RuleChain;
-
-import static org.mockito.ArgumentMatchers.anyLong;
-import static org.mockito.ArgumentMatchers.anyString;
-import static org.mockito.ArgumentMatchers.eq;
-import static org.mockito.BDDMockito.given;
-import static org.mockito.BDDMockito.then;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.times;
-
-@Category(Appenders.Jms.class)
-public class JmsAppenderTest {
-
-    private static final String CONNECTION_FACTORY_NAME = "jms/connectionFactory";
-    private static final String QUEUE_FACTORY_NAME = "jms/queues";
-    private static final String TOPIC_FACTORY_NAME = "jms/topics";
-    private static final String DESTINATION_NAME = "jms/destination";
-    private static final String DESTINATION_NAME_ML = "jms/destination-ml";
-    private static final String QUEUE_NAME = "jms/queue";
-    private static final String TOPIC_NAME = "jms/topic";
-    private static final String LOG_MESSAGE = "Hello, world!";
-
-    private final ConnectionFactory connectionFactory = mock(ConnectionFactory.class);
-    private final Connection connection = mock(Connection.class);
-    private final Session session = mock(Session.class);
-    private final Destination destination = mock(Destination.class);
-    private final Destination destinationMl = mock(Destination.class);
-    private final MessageProducer messageProducer = mock(MessageProducer.class);
-    private final MessageProducer messageProducerMl = mock(MessageProducer.class);
-    private final TextMessage textMessage = mock(TextMessage.class);
-    private final ObjectMessage objectMessage = mock(ObjectMessage.class);
-    private final MapMessage mapMessage = mock(MapMessage.class);
-
-    private final JndiRule jndiRule = new JndiRule(createBindings());
-    private final LoggerContextRule ctx = new LoggerContextRule("src/test/resources/JmsAppenderTest.xml");
-
-    @Rule
-    public RuleChain rules = RuleChain.outerRule(jndiRule).around(ctx);
-
-    @BeforeClass
-    public static void beforeClass() throws Exception {
-        System.setProperty(Log4jPropertyKey.JNDI_ENABLE_JMS.getSystemKey(), "true");
-    }
-
-    public JmsAppenderTest() throws Exception {
-        // this needs to set up before LoggerContextRule
-        given(connectionFactory.createConnection()).willReturn(connection);
-        given(connectionFactory.createConnection(anyString(), anyString())).willThrow(IllegalArgumentException.class);
-        given(connection.createSession(eq(false), eq(Session.AUTO_ACKNOWLEDGE))).willReturn(session);
-        given(session.createProducer(eq(destination))).willReturn(messageProducer);
-        given(session.createProducer(eq(destinationMl))).willReturn(messageProducerMl);
-        given(session.createTextMessage(anyString())).willReturn(textMessage);
-        given(session.createMapMessage()).willReturn(mapMessage);
-    }
-
-    private Map<String, Object> createBindings() {
-        return Map.of(
-                CONNECTION_FACTORY_NAME, connectionFactory,
-                DESTINATION_NAME, destination,
-                DESTINATION_NAME_ML, destinationMl,
-                QUEUE_FACTORY_NAME, connectionFactory,
-                QUEUE_NAME, destination,
-                TOPIC_FACTORY_NAME, connectionFactory,
-                TOPIC_NAME, destination
-        );
-    }
-
-    private  Log4jLogEvent createLogEvent() {
-        return createLogEvent(new SimpleMessage(LOG_MESSAGE));
-    }
-
-    private Log4jLogEvent createLogEvent(final Message message) {
-        // @formatter:off
-        return Log4jLogEvent.newBuilder()
-            .setLoggerName(JmsAppenderTest.class.getName())
-            .setLoggerFqcn(JmsAppenderTest.class.getName())
-            .setLevel(Level.INFO)
-            .setMessage(message)
-            .build();
-        // @formatter:on
-    }
-
-    private Log4jLogEvent createMapMessageLogEvent() {
-        final StringMapMessage mapMessage = new StringMapMessage();
-        return createLogEvent(mapMessage.with("testMesage", LOG_MESSAGE));
-    }
-
-    @Before
-    public void setUp() throws Exception {
-        // we have 4 appenders all connecting to the same ConnectionFactory
-        then(connection).should(times(4)).start();
-    }
-
-    @Test
-    public void testAppendToQueue() throws Exception {
-        final JmsAppender appender = (JmsAppender) ctx.getRequiredAppender("JmsAppender");
-        final LogEvent event = createLogEvent();
-        appender.append(event);
-        then(session).should().createTextMessage(eq(LOG_MESSAGE));
-        then(textMessage).should().setJMSTimestamp(anyLong());
-        then(messageProducer).should().send(textMessage);
-        appender.stop();
-        then(session).should().close();
-        then(connection).should().close();
-    }
-
-    @Test
-    public void testAppendToQueueWithMessageLayout() throws Exception {
-        final JmsAppender appender = (JmsAppender) ctx.getRequiredAppender("JmsAppender-MessageLayout");
-        final LogEvent event = createMapMessageLogEvent();
-        appender.append(event);
-        then(session).should().createMapMessage();
-        then(mapMessage).should().setJMSTimestamp(anyLong());
-        then(messageProducerMl).should().send(mapMessage);
-        appender.stop();
-        then(session).should().close();
-        then(connection).should().close();
-    }
-
-    @Test
-    public void testJmsQueueAppenderCompatibility() throws Exception {
-        final JmsAppender appender = (JmsAppender) ctx.getRequiredAppender("JmsQueueAppender");
-        final LogEvent expected = createLogEvent();
-        appender.append(expected);
-        then(session).should().createTextMessage(eq(expected.getMessage().getFormat()));
-        then(textMessage).should().setJMSTimestamp(anyLong());
-        then(messageProducer).should().send(textMessage);
-        appender.stop();
-        then(session).should().close();
-        then(connection).should().close();
-    }
-
-    @Test
-    public void testJmsTopicAppenderCompatibility() throws Exception {
-        final JmsAppender appender = (JmsAppender) ctx.getRequiredAppender("JmsTopicAppender");
-        final LogEvent expected = createLogEvent();
-        appender.append(expected);
-        then(session).should().createTextMessage(eq(expected.getMessage().getFormat()));
-        then(textMessage).should().setJMSTimestamp(anyLong());
-        then(messageProducer).should().send(textMessage);
-        appender.stop();
-        then(session).should().close();
-        then(connection).should().close();
-    }
-
-}
diff --git a/log4j-jms/src/test/resources/JmsAppenderTest.xml b/log4j-jms/src/test/resources/JmsAppenderTest.xml
deleted file mode 100644
index 9fbfb86886..0000000000
--- a/log4j-jms/src/test/resources/JmsAppenderTest.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  ~ 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.
-  -->
-<Configuration name="JmsAppenderTest" status="OFF">
-  <Appenders>
-    <JMS name="JmsAppender"
-         factoryBindingName="jms/connectionFactory"
-         destinationBindingName="jms/destination">
-      <PatternLayout pattern="%m"/>
-    </JMS>
-    <JMS name="JmsAppender-MessageLayout"
-         factoryBindingName="jms/connectionFactory"
-         destinationBindingName="jms/destination-ml"/>
-    <!-- backwards compatibility tests -->
-    <JMSQueue name="JmsQueueAppender"
-              factoryBindingName="jms/queues"
-              queueBindingName="jms/queue">
-      <PatternLayout pattern="%m"/>
-    </JMSQueue>
-    <JMSTopic name="JmsTopicAppender"
-              factoryBindingName="jms/topics"
-              topicBindingName="jms/topic">
-      <PatternLayout pattern="%m"/>
-    </JMSTopic>
-  </Appenders>
-  <Loggers>
-    <Root level="info">
-      <AppenderRef ref="JmsQueueAppender"/>
-    </Root>
-  </Loggers>
-</Configuration>
diff --git a/log4j-parent/pom.xml b/log4j-parent/pom.xml
index 4fb9129835..61a4feedfd 100644
--- a/log4j-parent/pom.xml
+++ b/log4j-parent/pom.xml
@@ -96,7 +96,6 @@
     <!-- =====================================================
          Direct dependency version properties (in alphabetical order)
          ===================================================== -->
-    <activemq.version>5.18.2</activemq.version>
     <angus-activation.version>2.0.1</angus-activation.version>
     <angus-mail.version>2.0.2</angus-mail.version>
     <assertj.version>3.24.2</assertj.version>
@@ -137,7 +136,6 @@
     <javax-activation.version>1.2.0</javax-activation.version>
     <javax-inject.version>1</javax-inject.version>
     <javax-jaxb.version>2.3.1</javax-jaxb.version>
-    <javax-jms.version>2.0.1</javax-jms.version>
     <javax-mail.version>1.6.2</javax-mail.version>
     <javax-persistence.version>2.2</javax-persistence.version>
     <javax-servlet.version>4.0.1</javax-servlet.version>
@@ -310,13 +308,6 @@
         <scope>import</scope>
       </dependency>
 
-
-      <dependency>
-        <groupId>org.apache.activemq</groupId>
-        <artifactId>activemq-broker</artifactId>
-        <version>${activemq.version}</version>
-      </dependency>
-
       <dependency>
         <groupId>org.eclipse.angus</groupId>
         <artifactId>angus-activation</artifactId>
@@ -715,12 +706,6 @@
         <version>${javax-inject.version}</version>
       </dependency>
 
-      <dependency>
-        <groupId>javax.jms</groupId>
-        <artifactId>javax.jms-api</artifactId>
-        <version>${javax-jms.version}</version>
-      </dependency>
-
       <dependency>
         <groupId>com.sun.mail</groupId>
         <artifactId>javax.mail</artifactId>
diff --git a/pom.xml b/pom.xml
index 107eccc629..4737881f96 100644
--- a/pom.xml
+++ b/pom.xml
@@ -247,7 +247,6 @@
     <module>log4j-jdbc</module>
     <module>log4j-jdbc-dbcp2</module>
     <module>log4j-jeromq</module>
-    <module>log4j-jms</module>
     <module>log4j-jndi</module>
     <module>log4j-jndi-test</module>
     <module>log4j-jpa</module>
@@ -451,12 +450,6 @@
         <version>${project.version}</version>
       </dependency>
 
-      <dependency>
-        <groupId>org.apache.logging.log4j</groupId>
-        <artifactId>log4j-jms</artifactId>
-        <version>${project.version}</version>
-      </dependency>
-
       <!-- JNDI -->
       <dependency>
         <groupId>org.apache.logging.log4j</groupId>
diff --git a/src/site/asciidoc/manual/appenders.adoc b/src/site/asciidoc/manual/appenders.adoc
index bc70d6b75d..529bf523a5 100644
--- a/src/site/asciidoc/manual/appenders.adoc
+++ b/src/site/asciidoc/manual/appenders.adoc
@@ -1253,147 +1253,6 @@ table based on a Log4j `MapMessage` instead of values from `LogEvent`s.
 </Configuration>
 ----
 
-[#JMSAppender]
-== JMSAppender
-
-[[JMSQueueAppender]] [[JMSTopicAppender]]
-As of Log4j 2.11.0, JPA support has moved from the existing module
-`log4j-core` to the new module `log4j-jms`.
-
-The JMS Appender sends the formatted log event to a JMS Destination.
-
-The JMS Appender requires JNDI support so as of release 2.15.1 this appender will not function unless
-`log4j2.enableJndi=true` is configured as a system property or environment variable. See the
-link:./configuration.html#enableJndi[log4j2.enableJndi] system property.
-
-Note that in Log4j 2.0, this appender was split into a JMSQueueAppender
-and a JMSTopicAppender. Starting in Log4j 2.1, these appenders were
-combined into the JMS Appender which makes no distinction between queues
-and topics. However, configurations written for 2.0 which use the
-`<JMSQueue/>` or `<JMSTopic/>` elements will continue to work with the
-new `<JMS/>` configuration element.
-
-.JMS Appender Parameters
-[cols="15%,15%,15%,55%",options="header",]
-|=======================================================================
-|Parameter Name |Type |Default |Description
-|allowdLdapClasses|String|null|A comma separated list of fully qualified class names that may be accessed by LDAP.
-The classes must implement Serializable. Only applies when the JMS Appender By default only Java primative classes
-are allowed.
-|allowdLdapHosts|String|null|A comma separated list of host names or ip addresses that may be accessed by LDAP.
-By default only the local host names and ip addresses are allowed.
-|allowdJndiProtocols|String|null|A comma separated list of protocol names that JNDI will allow. By default only java,
-ldap, and ldaps are the only allowed protocols.
-|factoryBindingName |String |_Required_ |The name to locate in the
-Context that provides the
-https://download.oracle.com/javaee/5/api/javax/jms/ConnectionFactory.html[`ConnectionFactory`].
-This can be any subinterface of `ConnectionFactory` as well.
-
-|factoryName |String |_Required_ |The fully qualified class name that
-should be used to define the Initial Context Factory as defined in
-https://download.oracle.com/javase/7/docs/api/javax/naming/Context.html#INITIAL_CONTEXT_FACTORY[`INITIAL_CONTEXT_FACTORY`].
-If a factoryName is specified without a providerURL a warning message
-will be logged as this is likely to cause problems.
-
-|filter |Filter |null |A Filter to determine if the event should be
-handled by this Appender. More than one Filter may be used by using a
-CompositeFilter.
-
-|layout |Layout |_Required_ |The Layout to use to format the LogEvent.
-_New since 2.9, in previous versions SerializedLayout was default._
-
-|name |String |_Required_ |The name of the Appender.
-
-|password |String |null |The password to use to create the JMS
-connection.
-
-|providerURL |String |_Required_ |The URL of the provider to use as
-defined by
-https://download.oracle.com/javase/7/docs/api/javax/naming/Context.html#PROVIDER_URL[`PROVIDER_URL`].
-
-|destinationBindingName |String |_Required_ |The name to use to locate
-the
-https://download.oracle.com/javaee/5/api/javax/jms/Destination.html[`Destination`].
-This can be a `Queue` or `Topic`, and as such, the attribute names
-`queueBindingName` and `topicBindingName` are aliases to maintain
-compatibility with the Log4j 2.0 JMS appenders.
-
-|securityPrincipalName |String |null |The name of the identity of the
-Principal as specified by
-https://download.oracle.com/javase/7/docs/api/javax/naming/Context.html#SECURITY_PRINCIPAL[`SECURITY_PRINCIPAL`].
-If a securityPrincipalName is specified without securityCredentials a
-warning message will be logged as this is likely to cause problems.
-
-|securityCredentials |String |null |The security credentials for the
-principal as specified by
-https://download.oracle.com/javase/7/docs/api/javax/naming/Context.html#SECURITY_CREDENTIALS[`SECURITY_CREDENTIALS`].
-
-|ignoreExceptions |boolean |true |When `true`, exceptions caught while
-appending events are internally logged and then ignored. When `false`
-exceptions are propagated to the caller. You must set this to `false`
-when wrapping this Appender in a
-link:#FailoverAppender[FailoverAppender].
-
-|immediateFail |boolean |false |When set to true, log events will not
-wait to try to reconnect and will fail immediately if the JMS resources
-are not available. New in 2.9.
-
-|reconnectIntervalMillis |long |5000 |If set to a value greater than 0,
-after an error, the JMSManager will attempt to reconnect to the broker
-after waiting the specified number of milliseconds. If the reconnect
-fails then an exception will be thrown (which can be caught by the
-application if `ignoreExceptions` is set to `false`). New in 2.9.
-
-|urlPkgPrefixes |String |null |A colon-separated list of package
-prefixes for the class name of the factory class that will create a URL
-context factory as defined by
-https://download.oracle.com/javase/7/docs/api/javax/naming/Context.html#URL_PKG_PREFIXES[`URL_PKG_PREFIXES`].
-
-|userName |String |null |The user id used to create the JMS connection.
-|=======================================================================
-
-Here is a sample JMS Appender configuration:
-
-[source,prettyprint,linenums]
-----
-<?xml version="1.0" encoding="UTF-8"?>
-<Configuration status="warn" name="MyApp">
-  <Appenders>
-    <JMS name="jmsQueue" destinationBindingName="MyQueue"
-         factoryBindingName="MyQueueConnectionFactory">
-      <JsonLayout properties="true"/>
-    </JMS>
-  </Appenders>
-  <Loggers>
-    <Root level="error">
-      <AppenderRef ref="jmsQueue"/>
-    </Root>
-  </Loggers>
-</Configuration>
-----
-
-To map your Log4j `MapMessage`s to JMS `javax.jms.MapMessage`s, set the
-layout of the appender to `MessageLayout` with `<MessageLayout />`
-(Since 2.9.):
-
-[source,prettyprint,linenums]
-----
-<?xml version="1.0" encoding="UTF-8"?>
-<Configuration status="warn" name="MyApp">
-  <Appenders>
-    <JMS name="jmsQueue" destinationBindingName="MyQueue"
-         factoryBindingName="MyQueueConnectionFactory">
-      <MessageLayout />
-    </JMS>
-  </Appenders>
-  <Loggers>
-    <Root level="error">
-      <AppenderRef ref="jmsQueue"/>
-    </Root>
-  </Loggers>
-</Configuration>
-----
-
 [#JPAAppender]
 == JPAAppender
 
diff --git a/src/site/asciidoc/manual/architecture.adoc b/src/site/asciidoc/manual/architecture.adoc
index 9105a3a6a8..7f6280451c 100644
--- a/src/site/asciidoc/manual/architecture.adoc
+++ b/src/site/asciidoc/manual/architecture.adoc
@@ -343,7 +343,7 @@ to print to multiple destinations. In log4j speak, an output destination
 is called an
 link:../log4j-core/apidocs/org/apache/logging/log4j/core/Appender.html[`Appender`].
 Currently, appenders exist for the console, files, remote socket
-servers, Apache Flume, JMS, remote UNIX Syslog daemons, and various
+servers, Apache Flume, remote UNIX Syslog daemons, and various
 database APIs. See the section on link:appenders.html[Appenders] for
 more details on the various types available. More than one Appender can
 be attached to a Logger.
diff --git a/src/site/asciidoc/manual/messages.adoc b/src/site/asciidoc/manual/messages.adoc
index 39b7ae248e..add056bdd1 100644
--- a/src/site/asciidoc/manual/messages.adoc
+++ b/src/site/asciidoc/manual/messages.adoc
@@ -226,7 +226,7 @@ Otherwise, the Map will be formatted as `"key1=value1 key2=value2 ..."`.
 
 Some Appenders make special use of `MapMessage` objects:
 
-* When a link:appenders.html#JMSAppender[JMS Appender] is configured
+* When a JMS Appender is configured
 with a no layout, it converts a Log4j `MapMessage` to a JMS
 `javax.jms.MapMessage`.
 * When a link:appenders.html#JDBCAppender[JDBC Appender] is configured
diff --git a/src/site/asciidoc/manual/systemproperties.adoc b/src/site/asciidoc/manual/systemproperties.adoc
index ba83302025..4bd96ba316 100644
--- a/src/site/asciidoc/manual/systemproperties.adoc
+++ b/src/site/asciidoc/manual/systemproperties.adoc
@@ -709,7 +709,7 @@ JMX notifications.
 |NBSP
 |System/Application
 |false
-|When true, the use of JNDI the JmsAppender is enabled if the log4j-jndi and log4j-jms jars are present on the
+|When true, the use of JNDI the JMS Appender is enabled if the log4j-jndi and log4j-jms jars are present on the
 classpath.
 
 |JNDI
diff --git a/src/site/asciidoc/runtime-dependencies.adoc b/src/site/asciidoc/runtime-dependencies.adoc
index 1488ec103b..65361a50ee 100644
--- a/src/site/asciidoc/runtime-dependencies.adoc
+++ b/src/site/asciidoc/runtime-dependencies.adoc
@@ -540,9 +540,6 @@ You need to use a version of the Kafka client library matching the Kafka server
 |SMTP Appender
 |an implementation of `javax.mail`
 
-|JMS Appender
-|a JMS broker like http://activemq.apache.org/[Apache ActiveMQ]
-
 |Windows console color support
 |http://jansi.fusesource.org/[Jansi]
 
diff --git a/src/site/markdown/log4j-jms.md b/src/site/markdown/log4j-jms.md
deleted file mode 100644
index 295c2d5633..0000000000
--- a/src/site/markdown/log4j-jms.md
+++ /dev/null
@@ -1,33 +0,0 @@
-<!-- vim: set syn=markdown : -->
-<!--
-    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.
--->
-
-# Apache Log4j Java Message Service (JMS) module
-
-As of Log4j 2.11.0, JMS support has moved from the existing module log4j-core to the new module log4j-jms.
-
-## Requirements
-
-This module was introduced in Log4j 2.11.0 and requires a JMS API JAR.
-
-Some features may require optional
-[dependencies](../runtime-dependencies.html). These dependencies are specified in the
-documentation for those features.
-
-Some Log4j features require external dependencies.
-See the [Dependency Tree](dependencies.html#Dependency_Tree)
-for the exact list of JAR files needed for these features.
diff --git a/src/site/markdown/log4j-jmx-gui.md b/src/site/markdown/log4j-jmx-gui.md
deleted file mode 100644
index bc0077a6fc..0000000000
--- a/src/site/markdown/log4j-jmx-gui.md
+++ /dev/null
@@ -1,22 +0,0 @@
-<!-- vim: set syn=markdown : -->
-<!--
-    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.
--->
-
-# Log4j JMX GUI
-
-[The Apache Log4j JMX GUI](https://github.com/apache/logging-log4j-jmx-gui) is a basic client GUI that can be used to monitor the `StatusLogger` output and to remotely modify the Log4j configuration.
-The client GUI can be run as a stand-alone application or as a JConsole plug-in.
diff --git a/src/site/markdown/manual/compatibility.md b/src/site/markdown/manual/compatibility.md
index 69a1b30138..1b236301d6 100644
--- a/src/site/markdown/manual/compatibility.md
+++ b/src/site/markdown/manual/compatibility.md
@@ -79,7 +79,6 @@ files must have a file extension of either ".properties" or ".xml".
 ### Appenders
 
 * JDBCAppender (cannot be mapped to Log4j 2's JdbcAppender)
-* JMSAppender 
 * SMTPAppender
 * SocketAppender (Requires the use of the SerializedLayout which is a security risk)
 * SocketHubAppender (Requires the use of the SerializedLayout which is a securiy risk)
diff --git a/src/site/site.xml b/src/site/site.xml
index eaa334a9a5..64b8f3381a 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -165,7 +165,6 @@
         <item name="File" href="/manual/appenders.html#FileAppender"/>
         <item name="Flume" href="/manual/appenders.html#FlumeAppender"/>
         <item name="JDBC" href="/manual/appenders.html#JDBCAppender"/>
-        <item name="JMS" href="/manual/appenders.html#JMSAppender"/>
         <item name="JPA" href="/manual/appenders.html#JPAAppender"/>
         <item name="HTTP" href="/manual/appenders.html#HttpAppender"/>
         <item name="Kafka" href="/manual/appenders.html#KafkaAppender"/>
@@ -301,7 +300,7 @@
       <item name="Log4j 2.x - Latest release for Java 8" href="http://logging.apache.org/log4j/2.x/"/>
     </menu>
 
-    <menu name="Components" inherit="top" img="img/glyphicons/cog.png">
+    <menu name="Internal Components" inherit="top" img="img/glyphicons/layers.png">
       <item name="API" href="log4j-api.html"/>
       <item name="Implementation" href="log4j-core.html"/>
       <item name="Commons Logging Bridge" href="log4j-jcl.html"/>
@@ -313,9 +312,7 @@
       <item name="JDBC Appender" href="log4j-jdbc-dbcp2.html"/>
       <item name="ZeroMQ Appender" href="log4j-jeromq.html"/>
       <item name="Apache Flume Appender" href="log4j-flume-ng.html"/>
-      <item name="JMS Appender" href="log4j-jms.html"/>
       <item name="Tag Library" href="log4j-taglib.html"/>
-      <item name="JMX GUI" href="log4j-jmx-gui.html"/>
       <item name="Web Application Support" href="log4j-web.html"/>
       <item name="Jakarta Web Application Support" href="log4j-jakarta-web.html"/>
       <item name="Application Server Integration" href="log4j-appserver.html"/>
@@ -331,6 +328,13 @@
       <item name="Log4j Transformation Tools" href="log4j-transform"/>
     </menu>
 
+    <menu name="External Components" img="img/glyphicons/link.png">
+      <item name="Log4j Jakarta EE" href="/log4j/jakarta"/>
+      <item name="Log4j JMX GUI" href="/log4j/jmx-gui"/>
+      <item name="Log4j Tools" href="/log4j/tools"/>
+      <item name="Log4j Transformation Tools" href="/log4j/transform"/>
+    </menu>
+
     <menu name="Project Information" img="img/glyphicons/info.png">
       <item name="Project Team" href="/team.html" />
       <item name="Project License" href="https://www.apache.org/licenses/LICENSE-2.0" />