简体   繁体   中英

How can i use log4j2 in weblogic?

I have a problem when using log4j2 in weblogic. I built a war module which has a log4j-core-2.0.jar. My war has web-services annotated with @Webservice.

After i deployed my war into Weblogic, i can use web-services but i can not monitor them at weblogic configuration screen. I tried removing log4j-core-2.0.jar from my war module, then i could see my web-services.

How can i solve this bug?

Thanks in advance...

Please check the log4j2 FAQ on which jars to include. You need the api jar, the core jar, and possibly other bridge jars if other libraries in your app are coded to the log4j-1.x or logback APIs.

Also make sure to remove the log4j-1.x and logback implementation jars: the bridge jars will delegate to the log4j2 core implementation. Other implementations in the classpath may cause problems.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM