java.lang.ClassNotFoundException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • vraptor - Jetty 8 + VRaptor 4 erro
    via by Unknown author,
  • 启动jetty时候出错。
    via GitHub by cnbillow
    ,
  • If we don't specify a zkplus in a pom.xml with zkspring-core, the error below will happen: {quote} SEVERE: Unable to load a listenr, [null:jar:file:/Users/hawk/.m2/repository/org/zkoss/zk/zkspring-core/3.1.1/zkspring-core-3.1.1.jar!/metainfo/zk/config.xml:23:12] org.zkoss.zk.ui.UiException: jar:file:/User...ar!/metainfo/zk/config.xml:23:12: Unable to load org.zkoss.spring.init.CoreWebAppInit at org.zkoss.zk.ui.sys.ConfigParser.parseClass(ConfigParser.java:744) at org.zkoss.zk.ui.sys.ConfigParser.parseListener(ConfigParser.java:253) at org.zkoss.zk.ui.sys.ConfigParser.parseListeners(ConfigParser.java:248) at org.zkoss.zk.ui.sys.ConfigParser.parseConfigXml(ConfigParser.java:188) at org.zkoss.zk.ui.http.WebManager.<init>(WebManager.java:132) at org.zkoss.zk.ui.http.HttpSessionListener23.contextInitialized(HttpSessionListener23.java:140) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at runjettyrun.Bootstrap.main(Bootstrap.java:97) Caused by: java.lang.NoClassDefFoundError: org/zkoss/spring/DelegatingVariableResolver at org.zkoss.spring.init.CoreWebAppInit.<clinit>(CoreWebAppInit.java:35) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.zkoss.lang.Classes.forNameByThread(Classes.java:268) at org.zkoss.zk.ui.sys.ConfigParser.parseClass(ConfigParser.java:729) ... 15 more Caused by: java.lang.ClassNotFoundException: org.zkoss.spring.DelegatingVariableResolver at runjettyrun.ProjectClassLoader.loadClass(ProjectClassLoader.java:91) ... 20 more {quote} The spring's pom.xml should be specified to depend on zkplus. h2. Benefits * avoid user frustration and human errors. * simplify dependency configuration http://books.zkoss.org/wiki/ZK_Spring_Essentials/Getting_Started_with_ZK_Spring/Setting_Up_ZK_Spring_using_Maven
    via by hawk,
  • If we don't specify a zkplus in a pom.xml with zkspring-core, the error below will happen: {quote} SEVERE: Unable to load a listenr, [null:jar:file:/Users/hawk/.m2/repository/org/zkoss/zk/zkspring-core/3.1.1/zkspring-core-3.1.1.jar!/metainfo/zk/config.xml:23:12] org.zkoss.zk.ui.UiException: jar:file:/User...ar!/metainfo/zk/config.xml:23:12: Unable to load org.zkoss.spring.init.CoreWebAppInit at org.zkoss.zk.ui.sys.ConfigParser.parseClass(ConfigParser.java:744) at org.zkoss.zk.ui.sys.ConfigParser.parseListener(ConfigParser.java:253) at org.zkoss.zk.ui.sys.ConfigParser.parseListeners(ConfigParser.java:248) at org.zkoss.zk.ui.sys.ConfigParser.parseConfigXml(ConfigParser.java:188) at org.zkoss.zk.ui.http.WebManager.<init>(WebManager.java:132) at org.zkoss.zk.ui.http.HttpSessionListener23.contextInitialized(HttpSessionListener23.java:140) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at runjettyrun.Bootstrap.main(Bootstrap.java:97) Caused by: java.lang.NoClassDefFoundError: org/zkoss/spring/DelegatingVariableResolver at org.zkoss.spring.init.CoreWebAppInit.<clinit>(CoreWebAppInit.java:35) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.zkoss.lang.Classes.forNameByThread(Classes.java:268) at org.zkoss.zk.ui.sys.ConfigParser.parseClass(ConfigParser.java:729) ... 15 more Caused by: java.lang.ClassNotFoundException: org.zkoss.spring.DelegatingVariableResolver at runjettyrun.ProjectClassLoader.loadClass(ProjectClassLoader.java:91) ... 20 more {quote} The spring's pom.xml should be specified to depend on zkplus. h2. Benefits * avoid user frustration and human errors. * simplify dependency configuration http://books.zkoss.org/wiki/ZK_Spring_Essentials/Getting_Started_with_ZK_Spring/Setting_Up_ZK_Spring_using_Maven
    via by hawk,
    • java.lang.ClassNotFoundException: com.sun.xml.bind.v2.model.annotation.RuntimeAnnotationReader at runjettyrun.ProjectClassLoader.loadClass(ProjectClassLoader.java:94) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.privateGetMethodRecursive(Class.java:3048) at java.lang.Class.getMethod0(Class.java:3018) at java.lang.Class.getMethod(Class.java:1784) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:242) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:234) at javax.xml.bind.ContextFinder.find(ContextFinder.java:441) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:641) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584) at org.hibernate.validator.internal.xml.ValidationXmlParser.unmarshal(ValidationXmlParser.java:114) at org.hibernate.validator.internal.xml.ValidationXmlParser.parseValidationXml(ValidationXmlParser.java:78) at org.hibernate.validator.internal.engine.ConfigurationImpl.getBootstrapConfiguration(ConfigurationImpl.java:287) at org.hibernate.validator.internal.cdi.ValidationExtension.<init>(ValidationExtension.java:120) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.jboss.weld.util.ServiceLoader.prepareInstance(ServiceLoader.java:240) at org.jboss.weld.util.ServiceLoader.loadService(ServiceLoader.java:214) at org.jboss.weld.util.ServiceLoader.loadServiceFile(ServiceLoader.java:182) at org.jboss.weld.util.ServiceLoader.reload(ServiceLoader.java:153) at org.jboss.weld.util.ServiceLoader.iterator(ServiceLoader.java:297) at org.jboss.weld.bootstrap.ExtensionBeanDeployer.addExtensions(ExtensionBeanDeployer.java:109) at org.jboss.weld.bootstrap.WeldStartup.startInitialization(WeldStartup.java:312) at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:73) at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:140) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:771) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:763) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) at org.eclipse.jetty.server.Server.doStart(Server.java:277) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at runjettyrun.Bootstrap.main(Bootstrap.java:80)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,