0

NoClassDefFoundError: org/zkoss/zkplus/spring/DelegatingVariableResolver

asked 2011-05-11 10:31:54 +0800

paskos gravatar image paskos
30

zkspring-core version: zk-spring-core-bin-3.0-FL-2011-04-07
zk-version: 5.0.7.FL.20110509

When parsing zkspring-core: zkspring-core-3.0RC.jar!/metainfo/zk/config.xml
I get this exception when load class org.zkoss.spring.init.CoreWebAppInit

java.lang.NoClassDefFoundError: org/zkoss/zkplus/spring/DelegatingVariableResolver

SEVERE: Unable to load a listenr, [SYS jar:file:/C:/Documents%20and%20Settings/Pascal_Gehl/.m2/repository/org/zkoss/zk/zkspring-core/3.0RC/zkspring-core-3.0RC.jar!/metainfo/zk/config.xml line 23 col 12]
org.zkoss.zk.ui.UiException: Unable to load org.zkoss.spring.init.CoreWebAppInit, at [SYS jar:file:/C:/Documents%20and%20Settings/Pascal_Gehl/.m2/repository/org/zkoss/zk/zkspring-core/3.0RC/zkspring-core-3.0RC.jar!/metainfo/zk/config.xml line 23 col 12]
at org.zkoss.zk.ui.sys.ConfigParser.parseClass(ConfigParser.java:752)
at org.zkoss.zk.ui.sys.ConfigParser.parseListener(ConfigParser.java:261)
at org.zkoss.zk.ui.sys.ConfigParser.parseListeners(ConfigParser.java:256)
at org.zkoss.zk.ui.sys.ConfigParser.parseConfigXml(ConfigParser.java:187)
at org.zkoss.zk.ui.http.WebManager.<init>(WebManager.java:130)
at org.zkoss.zk.ui.http.DHtmlLayoutServlet.init(DHtmlLayoutServlet.java:111)
Caused by: java.lang.NoClassDefFoundError: org/zkoss/zkplus/spring/DelegatingVariableResolver
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.zkoss.spring.init.CoreWebAppInit.<clinit>(CoreWebAppInit.java:35)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.zkoss.lang.Classes.forNameByThread(Classes.java:271)
at org.zkoss.zk.ui.sys.ConfigParser.parseClass(ConfigParser.java:737)
... 37 more
Caused by: java.lang.ClassNotFoundException: org.zkoss.zkplus.spring.DelegatingVariableResolver
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 54 more

I have access to the source code and I can't find the place where this class is referenced of even loaded.

delete flag offensive retag edit

7 Replies

Sort by ยป oldest newest

answered 2011-05-11 12:19:50 +0800

paskos gravatar image paskos
30

strike that message. The error was 18 inches in front of my screen and is currently typing this post.

link publish delete flag offensive edit

answered 2011-05-11 15:22:09 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

lol.

link publish delete flag offensive edit

answered 2011-05-12 08:19:02 +0800

RyanWu gravatar image RyanWu
533 2
about.me/flyworld

updated 2011-05-12 08:19:16 +0800

lol again

link publish delete flag offensive edit

answered 2015-07-21 13:53:05 +0800

bahmedbaig gravatar image bahmedbaig
3

Any reply or resolution here please. I am having the same issue.

link publish delete flag offensive edit

answered 2015-07-29 03:51:19 +0800

JoeHuang gravatar image JoeHuang
1126 2

I think there are a miss in class DelegatingVariableResolver. You can solve the problem by adding zkplus.jar into your project.

link publish delete flag offensive edit

answered 2015-07-29 04:00:16 +0800

JoeHuang gravatar image JoeHuang
1126 2

for maven user, you can visit the following link for more detail: http://books.zkoss.org/wiki/ZKSpringEssentials/GettingStartedwithZKSpring/SettingUpZKSpringusing_Maven

link publish delete flag offensive edit

answered 2015-07-30 06:27:50 +0800

kleponboy gravatar image kleponboy flag of Indonesia
54 5
http://stupidprogrammers....

I think you should add zkplus.jar on your project classpath

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-05-11 10:31:54 +0800

Seen: 631 times

Last updated: Jul 30 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More