2012-08-08 163 views
2
  1. SLF4J:slf4j-api 1.6.x(或更高版本)與此綁定不兼容。
  2. SLF4J:您的綁定版本是1.5.5或更早版本。
  3. SLF4J:將綁定升級到版本1.6.x.或2.0.x的
  4. 2012年8月8日下午3點56分54秒org.apache.catalina.core.StandardContext listenerStart
    嚴重:異常發送上下文初始化事件監聽器類org.springframework.web.util.Log4jConfigListener的實例
  5. java.lang.NoSuchMethodError:org.slf4j.impl.StaticLoggerBinder.getSingleton()Lorg/slf4j/impl/StaticLoggerBinder;
  6. 在org.slf4j.LoggerFactory.bind(LoggerFactory.java:121)
  7. 在org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
  8. 在org.slf4j.LoggerFactory.getILoggerFactory(的LoggerFactory。的java:268)
  9. 在org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241)
  10. 在org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
  11. 在org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:131)
  12. at org.springframework.util.PropertyPlaceholderHelper org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
    。 (PropertyPlaceholderHelper.java:40)
  13. 在org.springframework.util.SystemPropertyUtils(SystemPropertyUtils.java:49)SLF4J綁定問題

    依賴是

  14. [警告]爲有機的POM:jfreechart的:罐:1.0 0.14丟失,沒有依賴通知可用的通貨膨脹
  15. [警告]爲有機的POM:JFreeCharts:罐:1.0丟失,不依賴可用信息
  16. [警告]爲org.cpr的POM:CPR:罐: 1.0缺失,沒有相關信息可用
  17. [警告]工件軸:軸JAXRPC:罐:1.4已被重新定位到org.apache.axis:軸JAXRPC:罐:1.4
  18. [INFO]
  19. [INFO] ---行家依賴性-plugin:2.1:樹(默認CLI)@ JiraWeb ---
  20. [警告]爲org.jiraAPI失蹤POM:肥皂:罐子:4.4.5
  21. [警告]缺少POM爲org.jiraAPI:soapDEV :罐:4.4.5
  22. [WARNING]缺少POM爲ORG:jfreechart的:罐:1.0.14
  23. [WARNING]缺少POM爲ORG:JFreeCharts:罐子:1.0
  24. [警告]下載軸時:axis-jaxrpc:1.4
  25. 此工件已重定位到org.apache.axis:axis-jaxrpc:1.4。
  26. [警告]爲org.cpr缺少POM:CPR:罐子:1.0
  27. [INFO] com.jpmc.gti.jira:JiraWeb:戰爭:1.0.1-SNAPSHOT
  28. [INFO] + - 組織.springframework:彈簧上下文:罐:3.0.5。RELEASE:compile
  29. [INFO] | + - org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
  30. [INFO] | + - org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
  31. [INFO] | + - org.springframework:spring-core:jar:3.0.5.RELEASE:compile
  32. [INFO] | + - org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
  33. [INFO] | - org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
  34. [INFO] + - org.springframework:spring-context-support:jar:3.0.5.RELEASE:compile
  35. [INFO ] + - org.springframework:彈簧JDBC:罐:3.0.5.RELEASE:編譯
  36. [INFO] + - org.springframework:彈簧的web:罐:3.0.5.RELEASE:編譯
  37. [INFO ] | - aopalliance:aopalliance:罐子:1.0:編譯
  38. [INFO] + - org.springframework:彈簧webmvc:罐:3.0.5.RELEASE:編譯
  39. [INFO] + - org.springframework:彈簧-TX :罐:3.0.5.RELEASE:編譯
  40. [INFO] + - 的javax.servlet:servlet的API:罐:2.5:提供
  41. [INFO] + - org.directwebremoting:DWR:罐子:3.0rc1:編譯
  42. [INFO] | - org.mortbay.jetty:cometd:jar:6.1.4:compile
  43. [INFO] | - org.mortbay.jetty:jetty-util:jar:6.1.4:compile
  44. [INFO] + - org.jiraAPI:soap:jar:4.4.5:compile
  45. [INFO] + - org.jiraAPI :soapDEV:罐子:4.4.5:編譯
  46. [INFO] + - 共享記錄:共享記錄:罐:1.1.1:編譯
  47. [INFO] + - 公地琅:公地琅:罐:2.4:編譯
  48. [INFO] + - 公地池:公地池:罐:1.4:編譯
  49. [INFO] + - 公地集合:公地集合:罐:3.2:編譯
  50. [ INFO] + - commons-dbcp:commons-db CP:罐子:1.2.2:編譯
  51. [INFO] + - 公地發現:公地發現:罐子:0.4:編譯
  52. [INFO] + - 公地網:公網:罐子:1.4。 1:編譯
  53. [INFO] | - oro:oro:jar:2.0.8:編譯
  54. [INFO] + - commons-io:commons-io:jar:1.4:編譯
  55. [ - ] - commons-fileupload:commons-fileupload:jar :1.2:編譯
  56. [INFO] + - 的log4j:log4j的:罐:1.2.14:編譯
  57. [INFO] + - org.slf4j:SLF4J-log4j12:罐:1.6.1:編譯
  58. [ INFO] | - org.slf4j:slf4j-api:jar:1.6.1:compile
  59. [INFO] + - junit:junit:jar:4.8.2:compile
  60. [INFO] + - oracle:oracle:jar:11.1 .0.6:編譯
  61. [INFO] + - 的javax.servlet:JSTL:罐子:1.1.2:運行時
  62. [INFO] + - 標記庫:標準:罐:1.1.2:編譯
  63. [INFO] + - org.apache.tiles:tiles-jsp:jar:2.2。2:編譯
  64. [INFO] | + - org.apache.tiles:tiles-servlet:jar:2.2.2:compile
  65. [INFO] | - org.apache.tiles:瓷磚模板中:jar:2.2.2:編譯
  66. [INFO] + - org.apache.tiles:瓷磚核心中:jar:2.2.2:編譯
  67. [INFO] | + - commons-digester:commons-digester:jar:2.0:編譯
  68. [INFO] | - org.slf4j:JCL-過SLF4J:罐:1.5.8:編譯
  69. [INFO] + - org.apache.tiles:瓦片-API:罐:2.2.2:編譯
  70. [INFO] + - org.apache.poi:poi:jar:3.7:compile
  71. [INFO] + - org.apache.poi:poi-ooxml:jar:3.7:compile
  72. [INFO] | + - org.apache.poi:poi-ooxml-schemas:jar:3.7:compile
  73. [INFO] | | + - org.apache.xmlbeans:xmlbeans:jar:2.3.0:compile
  74. [INFO] | | | - stax:stax-api:jar:1.0.1:編譯
  75. [信息] | | - org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0:compile
  76. [INFO] | - dom4j:dom4j:jar:1.6.1:compile
  77. [INFO] | - xml-apis:xml-apis:jar:1.0.b2:compile
  78. [INFO] + - org.springframework:spring-test:jar:3.0.5.RELEASE:test
  79. [INFO] + - org .easymock:easymock:jar:2.5.2:test
  80. [INFO] + - org.easymock:easymockclassextension:jar:2.5.2:test
  81. [INFO] | + - cglib:cglib-nodep:jar:2.2:test
  82. [INFO] | - org.objenesis:objenesis:jar:1.2:test
  83. [INFO] + - net.sf.ezmorph:ezmorph:jar:0.8.1:compile
  84. [INFO] + - jfree:jcommon:jar:1.0 0.9:編譯
  85. [INFO] + - 組織:jfreechart的:罐:1.0.14:編譯
  86. [INFO] + - 組織:JFreeCharts:罐子:1.0:編譯
  87. [INFO] + - 軸: axis:jar:1.4:compile
  88. [INFO] | + - org.apache.axis:axis-saaj:jar:1.4:compile
  89. [INFO] | - axis:axis-wsdl4j:jar:1.5.1:runtime
  90. [INFO] + - org.apache.axis:axis-jaxrpc:jar:1.4:compile
  91. [INFO] + - org.cpr:cpr :jar:1.0:compile
  92. [INFO] + - com.sun.jersey:jersey-core:jar:1.12:compile
  93. [INFO] + - com.sun.jersey:jersey-client:jar:1.12 :編譯
  94. [INFO] + - net.sf.json-lib:json-lib:jar:jdk15:2.3:compile
  95. [INFO] | - commons-beanutils:commons-beanutils:jar:1.8.0:compile
  96. [INFO] + - org.quartz-scheduler:quartz:jar:2.1.5:compile
  97. [INFO] - c3p0:c3p0:jar:0.9.1.1:compile
  98. [INFO] - javax.mail:mail:jar:1.4:compile
  99. [INFO] - javax.activation:activation:jar:1。1:編譯
  100. 任何人都面臨這個問題..任何指針將真正有幫助。謝謝。
+0

你有什麼SLF4J相關的jar文件?應該至少有兩個,API和綁定。他們的版本需要匹配。 – Thilo 2012-08-08 12:00:37

+0

57. [INFO] + - org.slf4j:slf4j-log4j12:jar:1.6.1:compile 58. [INFO] | - org.slf4j:slf4j-api:jar:1.6.1:編譯 – user1584586 2012-08-08 12:06:56

+0

我已經添加了依賴關係樹... – user1584586 2012-08-08 12:30:48

回答

10

"org.slf4j:jcl-over-slf4j:jar:1.5.8:compile"

一個需要升級到1.6.6。

它提供了發送到SLF4J的Commons Logging的實現。 (你應該也可以排除其他的commons-logging jar,因爲這個)。

+0

由於Thilo包含了jcl-over-slf4j並刪除了commons日誌記錄。它現在的作品.. – user1584586 2012-08-09 11:33:57

+0

你好,我面臨着simillar問題,因爲你已經整理出來,尋求你的幫助。我的依賴關係樹中有3個jar:org.slf4j:slf4j-api:jar:1.6.1:compile,org.slf4j:jcl-over-slf4j:jar:1.6.6:compile,org.slf4j:slf4j- log4j12:罐子:1.4.3:編譯。我甚至在pom中添加了jcl-over-slf4j的依賴項,並刪除了通用日誌記錄依賴項。我改正了,還是有什麼需要做的。 Bcoz米仍然得到相同的錯誤。請幫助 – Sudip7 2014-11-14 05:39:22

+0

@ Sudip7:1.4.3與1.6.6和1.6.1不能混用。獲得所有三個罐子的相同版本。 – Thilo 2014-11-14 05:41:42