java.lang.NoClassDefFoundError: Could not initialize class org.zkoss.zk.ui.http.WebManager

Java.net JIRA | Allan Thrane Andersen | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Reported exception: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C:/Users/mrpono/AppData/Local/Temp/jetty-localhost-8080-pineapple-web-applicatio n-war.war-_-any-6099852128990826429.dir/webapp/WEB-INF/lib/logback-classic-0.9.9.jar!/org/slf4j/impl/StaticLoggerBinder. class] SLF4J: Found binding in [jar:file:/C:/Users/mrponoAppData/Local/Temp/jetty-localhost-8080-pineapple-web-applicatio n-war.war-_-any-6099852128990826429.dir/webapp/WEB-INF/lib/slf4j-jdk14-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.clas s] SLF4J: Found binding in [jar:file:/C:/tools/temp-pineapple/pineapple-standalone-web-client-1.6.0-Canary/lib/slf4j-log4j1 2-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: slf4j-api 1.6.x (or later) is incompatible with this binding. SLF4J: Your binding is version 1.5.5 or earlier. SLF4J: Upgrade your binding to version 1.6.x. Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.zkoss.zk.ui.http.WebManager at org.zkoss.zk.ui.http.HttpSessionListener23.attributeAdded(HttpSessionListener23.java:87) at org.eclipse.jetty.server.handler.ContextHandler$Context.setAttribute(ContextHandler.java:2119) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:337) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:800) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:446) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:792) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:296) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1359) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1352) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:744) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:497) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.server.Server.start(Server.java:357) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60) at org.eclipse.jetty.server.Server.doStart(Server.java:324) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at com.alpha.pineapple.web.jetty.JettyStarter.<init>(JettyStarter.java:111) at com.alpha.pineapple.web.jetty.JettyStarter.main(JettyStarter.java:185) Three SLF4J bindings is encountered: 1) .../webapp/WEB-INF/lib/logback-classic-0.9.9.jar!/org/slf4j/impl/StaticLoggerBinder.class] - This dependency is resolved from zkspring-core => org.reflections : reflections: 0.9.5-RC2 => ch.qos.logback : logback-classic : 0.9.9 Dependency to zkspring-core is removed, dependency the gson is added since it is used be the web application. 2) .../webapp/WEB-INF/lib/slf4j-jdk14-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] - This dependency is resolved from ZK 7.0.x, as described here: http://books.zkoss.org/wiki/ZK_Developer's_Reference/Supporting_Utilities/Logger - By default, ZK maven setting will bundle the slf4j-jdk14 implementation as its default logging. - Can be reconfigured by excluding the dependency to slf4j-jdk14: <dependency> <groupId>org.zkoss.common</groupId> <artifactId>zcommon</artifactId> <version>${zk.version}</version> <exclusions> <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-jdk14</artifactId> </exclusion> </exclusions> </dependency> 3) .../pineapple-standalone-web-client-1.6.0-Canary/lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]

    Java.net JIRA | 3 years ago | Allan Thrane Andersen
    java.lang.NoClassDefFoundError: Could not initialize class org.zkoss.zk.ui.http.WebManager
  2. 0

    Reported exception: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C:/Users/mrpono/AppData/Local/Temp/jetty-localhost-8080-pineapple-web-applicatio n-war.war-_-any-6099852128990826429.dir/webapp/WEB-INF/lib/logback-classic-0.9.9.jar!/org/slf4j/impl/StaticLoggerBinder. class] SLF4J: Found binding in [jar:file:/C:/Users/mrponoAppData/Local/Temp/jetty-localhost-8080-pineapple-web-applicatio n-war.war-_-any-6099852128990826429.dir/webapp/WEB-INF/lib/slf4j-jdk14-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.clas s] SLF4J: Found binding in [jar:file:/C:/tools/temp-pineapple/pineapple-standalone-web-client-1.6.0-Canary/lib/slf4j-log4j1 2-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: slf4j-api 1.6.x (or later) is incompatible with this binding. SLF4J: Your binding is version 1.5.5 or earlier. SLF4J: Upgrade your binding to version 1.6.x. Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.zkoss.zk.ui.http.WebManager at org.zkoss.zk.ui.http.HttpSessionListener23.attributeAdded(HttpSessionListener23.java:87) at org.eclipse.jetty.server.handler.ContextHandler$Context.setAttribute(ContextHandler.java:2119) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:337) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:800) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:446) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:792) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:296) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1359) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1352) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:744) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:497) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.server.Server.start(Server.java:357) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60) at org.eclipse.jetty.server.Server.doStart(Server.java:324) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at com.alpha.pineapple.web.jetty.JettyStarter.<init>(JettyStarter.java:111) at com.alpha.pineapple.web.jetty.JettyStarter.main(JettyStarter.java:185) Three SLF4J bindings is encountered: 1) .../webapp/WEB-INF/lib/logback-classic-0.9.9.jar!/org/slf4j/impl/StaticLoggerBinder.class] - This dependency is resolved from zkspring-core => org.reflections : reflections: 0.9.5-RC2 => ch.qos.logback : logback-classic : 0.9.9 Dependency to zkspring-core is removed, dependency the gson is added since it is used be the web application. 2) .../webapp/WEB-INF/lib/slf4j-jdk14-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] - This dependency is resolved from ZK 7.0.x, as described here: http://books.zkoss.org/wiki/ZK_Developer's_Reference/Supporting_Utilities/Logger - By default, ZK maven setting will bundle the slf4j-jdk14 implementation as its default logging. - Can be reconfigured by excluding the dependency to slf4j-jdk14: <dependency> <groupId>org.zkoss.common</groupId> <artifactId>zcommon</artifactId> <version>${zk.version}</version> <exclusions> <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-jdk14</artifactId> </exclusion> </exclusions> </dependency> 3) .../pineapple-standalone-web-client-1.6.0-Canary/lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]

    Java.net JIRA | 3 years ago | Allan Thrane Andersen
    java.lang.NoClassDefFoundError: Could not initialize class org.zkoss.zk.ui.http.WebManager

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      Could not initialize class org.zkoss.zk.ui.http.WebManager

      at org.zkoss.zk.ui.http.HttpSessionListener23.attributeAdded()
    2. ZK Kernel
      HttpSessionListener23.attributeAdded
      1. org.zkoss.zk.ui.http.HttpSessionListener23.attributeAdded(HttpSessionListener23.java:87)
      1 frame
    3. Jetty
      ContextHandler$Context.setAttribute
      1. org.eclipse.jetty.server.handler.ContextHandler$Context.setAttribute(ContextHandler.java:2119)
      1 frame
    4. Spring
      ContextLoaderListener.contextInitialized
      1. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:337)
      2. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
      2 frames
    5. Jetty
      AbstractLifeCycle.start
      1. org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:800)
      2. org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:446)
      3. org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:792)
      4. org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:296)
      5. org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1359)
      6. org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1352)
      7. org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:744)
      8. org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:497)
      9. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
      10. org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
      11. org.eclipse.jetty.server.Server.start(Server.java:357)
      12. org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
      13. org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60)
      14. org.eclipse.jetty.server.Server.doStart(Server.java:324)
      15. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
      15 frames
    6. com.alpha.pineapple
      JettyStarter.main
      1. com.alpha.pineapple.web.jetty.JettyStarter.<init>(JettyStarter.java:111)
      2. com.alpha.pineapple.web.jetty.JettyStarter.main(JettyStarter.java:185)
      2 frames