当前位置: 首页 > 工具软件 > log4j-gwt > 使用案例 >

java org.slf.4j_java – NoSuchMethodError:org.slf4j.helpers.MessageFormatter.format

袁谭三
2023-12-01

运行我的应用程序时出现此错误:

[ERROR] Apr 12,2013 10:18:56 AM com.google.appengine.tools.development.ApiProxyLocalImpl log

[ERROR] INFO: javax.servlet.ServletContext log: Initializing Shiro environment

[ERROR] 1601 [main] INFO org.apache.shiro.web.env.EnvironmentLoader - Starting Shiro environment initialization.

[ERROR] 1931 [main] INFO org.apache.shiro.config.IniSecurityManagerFactory - Realms have been explicitly set on the SecurityManager instance - auto-setting of realms will not occur.

[ERROR] 1984 [main] ERROR org.apache.shiro.web.env.EnvironmentLoader - Shiro environment initialization Failed

[ERROR] java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;

[ERROR] at org.slf4j.impl.SimpleLogger.formatandLog(SimpleLogger.java:222)

[ERROR] at org.slf4j.impl.SimpleLogger.info(SimpleLogger.java:258)

[ERROR] at org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(EnvironmentLoader.java:146)

[ERROR] at org.apache.shiro.web.env.EnvironmentLoaderListener.contextInitialized(EnvironmentLoaderListener.java:58)

[ERROR] at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)

[ERROR] at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)

[ERROR] at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)

[ERROR] at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)

[ERROR] at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)

[ERROR] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

[ERROR] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)

[ERROR] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

[ERROR] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)

[ERROR] at org.mortbay.jetty.Server.doStart(Server.java:224)

[ERROR] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

[ERROR] at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:228)

[ERROR] at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:255)

[ERROR] at com.google.appengine.tools.development.AbstractServer.startup(AbstractServer.java:79)

[ERROR] at com.google.appengine.tools.development.DevAppServerImpl$Servers.startup(DevAppServerImpl.java:451)

[ERROR] at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:198)

[ERROR] at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:97)

[ERROR] at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)

[ERROR] at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)

[ERROR] at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)

[ERROR] at com.google.gwt.dev.DevMode.main(DevMode.java:311)

[ERROR] Apr 12,2013 10:18:56 AM com.google.apphosting.utils.jetty.JettyLogger warn

这是我的pom.xml配置的一部分,我认为这与此有关:

1.5.11

org.slf4j

slf4j-api

${slf4jVersion}

org.slf4j

jcl-over-slf4j

${slf4jVersion}

org.slf4j

slf4j-jdk14

${slf4jVersion}

org.slf4j

slf4j-simple

${slf4jVersion}

test

org.slf4j

slf4j-log4j12

${slf4jVersion}

我很确定我将SLF4j版本全部设置为一个版本.我的配置有什么问题?

 类似资料:

相关阅读

相关文章

相关问答