9,588 questions
0
votes
1
answer
76
views
Log4j2 annotation processor not run in Eclipse when start Java application with Eclipse run configuration
I have a Java desktop application project (Java 21, Gradle 8.5 with Groovy DSL, Log4j v2.22.1, Eclipse 2025-09, Eclipse Buildship 3.1.10).
Log4j shall NOT use classpath scanning for custom appenders ...
0
votes
1
answer
97
views
How to use slf4j-api > 2 in jersey servlet container
I have a Jersey servlet project, where I organize the depencies with maven. It runs in Tomcat.
Update of slf4j-api
Now I am trying to use <artifactId>slf4j-api</artifactId><version>2....
-1
votes
1
answer
74
views
Log4j vulnerability servers [closed]
We have 2 servers that are not directly connected to the internet and need accessing via VPN. They mainly hold SharePoint 2013 and there is an important process running on this that we would like to ...
0
votes
0
answers
48
views
Log4j Upgrade v1 to v2 - Default SysLog Behavior
Working on a legacy code base that literally no one left at the company has done anything more than put band-aids on in my time there.
For various reasons we are finally being forced to upgrade log4j ...
1
vote
0
answers
29
views
How to have log4j JSONLayout stacktraceAsString "thrown" object exclude its "cause" object as it duplicates content in "extendedStackTrace" string
I would like to have the exception logged in a format that tools understand. This can be achieved by
<Console name="Console" follow="true">
<JSONLayout eventEol=...
0
votes
0
answers
85
views
Install4j - generated executable after installing my app fails because of missing class
I am trying to create an installer for my Java 17 / Spring Boot 2.7.17 / Maven application.
I have managed to make it work for some time, the installer worked as expected and my app was being launched ...
0
votes
1
answer
70
views
How does log4j clean up actually works in hive metastore?
I am trying to configure logs for hive metastore. I use this config:
status = INFO
name = HiveLog4j2
packages = org.apache.hadoop.hive.ql.log
property.hive.log.level = INFO
property.hive.root.logger =...
0
votes
1
answer
58
views
Java Exception on CryptoProviderTools.installBCProvider() instruction using log4j2
I have a java web project which includes lo4j2. It is deploy on tomcat instance locally on my PC.
I was debugging the java project. When debugger is on the instruction of Certificate class contructor ...
1
vote
2
answers
290
views
Unable to package Log4j2 in maven project
This was my original pom.xml file I started with:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=&...
-1
votes
1
answer
171
views
How to Mitigate Apache Log4j RCE (Log4Shell) Vulnerability in WSO2 Manager (Ports 9021, 8243, 8021)? version wso2am-4.0.0
I'm working with WSO2 Manager, and I've encountered a Remote Code Execution (RCE) vulnerability in Apache Log4j (Log4Shell) that affects multiple ports on the system (9021, 8243, and 8021). During an ...
-1
votes
1
answer
63
views
How to use policies on dynamic log file name?
I'm using Log4j2 and I need my logs to:
Include the current date and process idin the active log file name (e.g., logname.529628.27-04-2025.log)
create new log based on file size (for example, every ...
0
votes
2
answers
173
views
How can I dynamically choose a Log4j2 appender at runtime using only a shell script?
I have a Java application that uses Log4j2 for logging. I want to control which appender is used at runtime—but only via a shell script, without modifying the Java source code.
My log4j2.xml ...
1
vote
1
answer
238
views
How do I configure Tomcat to send access log to syslog-ng server on another host?
I have configured a Tomcat server (currently version 8.5.x) to use log4j2 to send some logging to a syslog-ng server using the following log4j.xml file:
<?xml version="1.0" encoding="...
0
votes
0
answers
66
views
Will log4j2 still trigger class loading when printing the thread stack?
I find these codes in our old project.
It appears to filter the classes generated by reflections in the exception stack before printing the log.
But I debugged this method and found that it does not ...
1
vote
1
answer
173
views
Log4J implementation not found in fat JAR
I already found out how to configure Log4J programmatically, and now I need to build a “fat JAR” that includes all dependencies, so that the program can be run simply with java -jar example.jar and be ...