1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Logging issue in Wildfly server with JDK11 setup

Discussão em 'StackOverflow' iniciado por Stack, Junho 5, 2021.

  1. Stack

    Stack Membro Participativo

    Facing issue related to logging in Wildfly deployment of Java web application. Wildfly version used: wildfly-15.0.0

    The web application is having a Spring MVC configuration. Spring framework version is 4.3.1 and logging is configured using logback.xml with slf4j. Applications' JDK compliance level is 1.8 and it is set up to run on JDK11 on Wildfly.

    The application logs are being printed in wildfly server logs. It should get printed in the file provided in the application's logback.xml

    Below are the Jars added for logging into the application's WEB-INF/lib folder.

    • log4j-1.2.16.jar
    • log4j-api-2.11.2.jar
    • log4j-to-slf4j-2.11.2.jar
    • logback-classic-1.2.3.jar
    • logback-core-1.2.3.jar

    Tried adding a module in the Wildfly server under $JBOSS_HOME/modules/system/layers/base/ but it didn't work.

    Also added the following configuration to the subsytem "urn:jboss:domain:logging:6.0 in $JBOSS_HOME/standalone/configuration/standalone.xml

    After this, the application logs are printed at the proper location. However, the logs inside of the application's custom jars aren't getting print. Neither in server logs nor in application logs.

    The same configuration is working as expected in tomcat 9. But it seems like the logback.xml is not being bootstrapped properly in Wildfly. Any idea what can be the issue?

    Continue reading...

Compartilhe esta Página