SLF4J NoSuchMethodError on LocationAwareLogger

前端 未结 8 1699

This is a question that has been asked before, but unfortunately no solution seems to work for me. I am facing this exception (with abridged stack trace):

ja         


        
8条回答
  •  有刺的猬
    2020-12-03 07:17

    Solved !!!

    I was having dependency on another project which was using JavaDoc plugin. JavaDoc plugin internally uses Maven-core and Maven-core-2.2.1 uses jcl-over-slf4j: 1.5.6. Maven-core is a parent level jar.

    Now, due to this JCL jar, i was facing this issue. Hence I removed it from the lib folder of weblogic(or whatever server you might be using).

    And ALAS !! The problem was resolved.

    Note 1:- You can also use Maven's tag to remove this dependency from the JavaDoc(or any other plugin) to resolve this issue.

    Note 2:- Use the Dependency Hierarchy tab in POM to see if any such old SLF4J jars are present. And remove rest and keep only one version.

    Hope it helps ..

提交回复
热议问题