java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log

后端 未结 4 770
抹茶落季
抹茶落季 2020-12-17 09:19

I am getting this error while deploying my application

    java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Ma
      rker;Ljava         


        
4条回答
  •  不知归路
    2020-12-17 10:17

    dependency:treeis a usefull tool that's true.

    In addition, another way to fix it:

    while using Eclipse IDE, use SHIFT + CTRL + T to open following type "SLF4JLocationAwareLog"

    You should be able to find related library and so a potential conflict.

    Switch to the dependency tree view of the pom.xml to know the exclusion to add.

    In my case, was related to struts dependency jcl104-over-slf4j. I just exclude this one from the dependency:

            
            displaytag
            displaytag
            
                
                    org.slf4j
                    jcl104-over-slf4j
                
            
        
    

提交回复
热议问题