ClassNotFoundException: org.slf4j.LoggerFactory

后端 未结 10 1314
长发绾君心
长发绾君心 2020-11-28 11:53

I am trying to run GWT RequestFactory and facing this error:

ClassNotFoundException: org.slf4j.LoggerFactory

I have tried to download s

10条回答
  •  孤街浪徒
    2020-11-28 12:23

    For a bit more explanation: keep in mind that the "I" in "api" is interface. The slf4j-api jar only holds the needed interfaces (actually LoggerFactory is an abstract class). You also need the actual implementations (an example of which, as noted above, can be found in slf4j-simple). If you look in the jar, you'll find the required classes under the "org.slf4j.impl" package.

提交回复
热议问题