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

veithen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ws-axiom.git


The following commit(s) were added to refs/heads/master by this push:
     new 1a5f3a5fa AXIOM-532: Add Log4j 2 SLF4J binding to wss4j-tests for 
Semeru support (#980)
1a5f3a5fa is described below

commit 1a5f3a5fa2b437aa761c4b06fbc38953476e8c6e
Author: Andreas Martens <[email protected]>
AuthorDate: Tue Nov 10 17:02:55 2026 +0000

    AXIOM-532: Add Log4j 2 SLF4J binding to wss4j-tests for Semeru support 
(#980)
    
    wss4j brings slf4j-api onto the test classpath, which makes commons-logging 
1.3+ route through SLF4J. Without a provider, OpenJ9 fails CryptoFactory 
initialization. The fix uses the same Log4j 2 setup as the other plain JUnit 
test modules.
---
 systests/wss4j-tests/pom.xml                       | 15 +++++++++++
 .../wss4j-tests/src/test/resources/log4j2-test.xml | 31 ++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/systests/wss4j-tests/pom.xml b/systests/wss4j-tests/pom.xml
index a6b5bd567..e8c79a6e0 100644
--- a/systests/wss4j-tests/pom.xml
+++ b/systests/wss4j-tests/pom.xml
@@ -59,6 +59,21 @@
             <artifactId>assertj-core</artifactId>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-jcl</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j2-impl</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 
     <build>
diff --git a/systests/wss4j-tests/src/test/resources/log4j2-test.xml 
b/systests/wss4j-tests/src/test/resources/log4j2-test.xml
new file mode 100644
index 000000000..813a1733c
--- /dev/null
+++ b/systests/wss4j-tests/src/test/resources/log4j2-test.xml
@@ -0,0 +1,31 @@
+<?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>
+    <Appenders>
+        <Console name="stdout" target="SYSTEM_OUT">
+            <PatternLayout pattern="%-6r %-5p %-8t [%c{1}] %m%n"/>
+        </Console>
+    </Appenders>
+    <Loggers>
+        <Root level="warn">
+            <AppenderRef ref="stdout"/>
+        </Root>
+  </Loggers>
+</Configuration>
\ No newline at end of file

Reply via email to