This is an automated email from the ASF dual-hosted git repository.
the-thing pushed a commit to branch mina-2.2.X
in repository https://gitbox.apache.org/repos/asf/mina.git
The following commit(s) were added to refs/heads/mina-2.2.X by this push:
new b9e989fb9 upgrade log4j and slf4j dependencies (#108)
b9e989fb9 is described below
commit b9e989fb9b57845e44cdb783524ac8c48e0b4a2c
Author: Marcin L <[email protected]>
AuthorDate: Thu Nov 26 15:21:48 2026 +0100
upgrade log4j and slf4j dependencies (#108)
* upgrade log4j and slf4j dependencies
* upgrade log4j and slf4j dependencies
---
mina-http/src/test/resources/log4j.properties | 25 ++++++++++++++++++++
.../src/test/resources/log4j.properties | 25 ++++++++++++++++++++
.../src/test/resources/log4j.properties | 25 ++++++++++++++++++++
pom.xml | 27 +++++++++++++++++-----
4 files changed, 96 insertions(+), 6 deletions(-)
diff --git a/mina-http/src/test/resources/log4j.properties
b/mina-http/src/test/resources/log4j.properties
new file mode 100644
index 000000000..06642c9f2
--- /dev/null
+++ b/mina-http/src/test/resources/log4j.properties
@@ -0,0 +1,25 @@
+#############################################################################
+# 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.rootCategory=ERROR, stdout
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n
+
+log4j.logger.org.apache.mina.filter.ssl.SSLFilter=ERROR
+log4j.logger.org.apache.mina.filter.ssl.SSLHandler=ERROR
+
diff --git a/mina-integration-xbean/src/test/resources/log4j.properties
b/mina-integration-xbean/src/test/resources/log4j.properties
new file mode 100644
index 000000000..06642c9f2
--- /dev/null
+++ b/mina-integration-xbean/src/test/resources/log4j.properties
@@ -0,0 +1,25 @@
+#############################################################################
+# 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.rootCategory=ERROR, stdout
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n
+
+log4j.logger.org.apache.mina.filter.ssl.SSLFilter=ERROR
+log4j.logger.org.apache.mina.filter.ssl.SSLHandler=ERROR
+
diff --git a/mina-statemachine/src/test/resources/log4j.properties
b/mina-statemachine/src/test/resources/log4j.properties
new file mode 100644
index 000000000..06642c9f2
--- /dev/null
+++ b/mina-statemachine/src/test/resources/log4j.properties
@@ -0,0 +1,25 @@
+#############################################################################
+# 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.rootCategory=ERROR, stdout
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n
+
+log4j.logger.org.apache.mina.filter.ssl.SSLFilter=ERROR
+log4j.logger.org.apache.mina.filter.ssl.SSLHandler=ERROR
+
diff --git a/pom.xml b/pom.xml
index 672303ce8..6ba85a17d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -149,13 +149,13 @@
<version.jboss.javassist>3.8.0.GA</version.jboss.javassist>
<version.junit>4.13.2</version.junit>
<version.jzlib>1.1.3</version.jzlib>
- <version.log4j>1.2.17</version.log4j>
+ <version.log4j>2.26.1</version.log4j>
<version.mockito>5.24.0</version.mockito>
<version.ognl>3.4.17</version.ognl>
<version.pmd>7.29.0</version.pmd>
- <version.slf4j.api>1.7.36</version.slf4j.api>
- <version.slf4j.reload4j>1.7.36</version.slf4j.reload4j>
- <version.slf4j.jcl.over.slf4j>1.7.36</version.slf4j.jcl.over.slf4j>
+ <version.slf4j.api>2.0.20</version.slf4j.api>
+ <version.slf4j.reload4j>2.0.20</version.slf4j.reload4j>
+ <version.slf4j.jcl.over.slf4j>2.0.20</version.slf4j.jcl.over.slf4j>
<version.springframework>7.1.0</version.springframework>
<version.springframework.old>2.5.6.SEC03</version.springframework.old>
<version.tomcat.jni>10.0.27</version.tomcat.jni>
@@ -331,9 +331,24 @@
</dependency>
<dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-api</artifactId>
<version>${version.log4j}</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-core</artifactId>
+ <version>${version.log4j}</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-slf4j-impl</artifactId>
+ <version>${version.log4j}</version>
+ <scope>test</scope>
</dependency>
<!-- Testing -->