A log related problem was encountered while deploying wildfly

2,632 views
Skip to first unread message

yy chen

unread,
Aug 12, 2021, 10:44:11 AM8/12/21
to WildFly
I'm a beginner of wildfly.My boss told me that the requirement is to turn spring boot into running on wildfly.

When I deploy, I get the following error

{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"mds-portal.war\".undertow-deployment" => "java.lang.RuntimeException: java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.impl.Slf4jLoggerFactory loaded from jar:file:/E:/develop/wildfly-24.0.1.Final/modules/system/layers/base/org/slf4j/impl/main/slf4j-jboss-logmanager-1.1.0.Final.jar!/). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml: org.slf4j.impl.Slf4jLoggerFactory Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.impl.Slf4jLoggerFactory loaded from jar:file:/E:/develop/wildfly-24.0.1.Final/modules/system/layers/base/org/slf4j/impl/main/slf4j-jboss-logmanager-1.1.0.Final.jar!/). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml: org.slf4j.impl.Slf4jLoggerFactory Caused by: java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.impl.Slf4jLoggerFactory loaded from jar:file:/E:/develop/wildfly-24.0.1.Final/modules/system/layers/base/org/slf4j/impl/main/slf4j-jboss-logmanager-1.1.0.Final.jar!/). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml: org.slf4j.impl.Slf4jLoggerFactory"}}


Can you provide me with ideas to solve the problem?

James Perkins

unread,
Aug 12, 2021, 10:46:08 AM8/12/21
to WildFly
Are you wanting to use logback as the log manager for your application or do you want to control logging via WildFly?

Mokhtar Ammar

unread,
Aug 20, 2021, 9:15:59 AM8/20/21
to WildFly
i'm facing the same problem here , did you solve it ?

luis david

unread,
Mar 16, 2022, 11:47:54 AM3/16/22
to WildFly
Reply all
Reply to author
Forward
0 new messages