Greetings!
I am experiencing a strange condition when deploying my project on Wildfly 24.0.1. I have already tried to find an answer in all the blogs and pages that I have been able to without success so far. I am writing to this group in the hope that someone knows why this happens:
I add the .ear of my project to the server with the following configuration in the jboss-deployment-structure.xml file:
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
<deployment>
<exclude-subsystems>
<subsystem name="logging"/>
</exclude-subsystems>
</deployment>
</jboss-deployment-structure>
...and a very basic log4j configuration file (asplog4j.xml):
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="debug">
<Properties>
<Property name="LOG_PATTERN">%d{yyy-MM-dd'T'HH:mm:ss.SSS} %p %m%n</Property>
</Properties>
<Appenders>
<Console name="LogToConsole" target="SYSTEM_OUT" follow="true">
<PatternLayout pattern="${LOG_PATTERN}"/>
</Console>
</Appenders>
<Loggers>
<Root level="debug">
<AppenderRef ref="LogToConsole">
</Root>
</Loggers>
</Configuration>
Then, while deploying in the console log I see messages like:
Reconfiguration complete for context[name=1ae1119] at URI vfs:/C:/Dev/wildfly-24.0.1.Final/bin/content/asp2.ear/properties.jar/asplog4j.xml (org.apache.logging.log4j .core.LoggerContext@1a20289) with optional ClassLoader: null
And almost when finishing deploying the .ear, it shows a message in the console log that says:
Reconfiguration complete for context[name=153d4ef] at URI NULL_SOURCE (org.apache.logging.log4j.core.LoggerContext@10113d) with optional ClassLoader: null
Then, when I put breakpoints in the code and I see the execution in debug mode, I realize that all the loggers with the 1ae1119 context are shown in the console log, but the loggers with the 153d4ef context are not shown. And it does not help me that some logs are seen and others are not. I imagine that the ones that are not seen is because they are associated with the context that has the URI NULL_SOURCE. But I don't know how to fix this.
Does anyone know how?
Thanks in advance for any assistance.