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

后端 未结 4 780
抹茶落季
抹茶落季 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:11

    Use mvn dependency:tree to see which version of slf4j maven decides to give you. If it has picked the wrong version, you could use a dependency management section to specify which version you want.

    If the output of dependency:tree shows the correct version (i.e. a version which does contain the method it can't find), then add -verbose:class as a jvm argument to see where it is loading that class from (e.g. if deploying in jboss it might be loading it from its internal logging jars instead of your slf4j jars).

提交回复
热议问题