我正在开发一个Eclipse RCP项目,在更改了新的Spring插件和其他插件后,我得到了一堆java.lang.ClassNotFoundException
。编译的项目没有错误......
我错过了什么?
Caused by: java.lang.ClassNotFoundException:
at java.net.URLClassLoader$1.run(URLClassLoader.java:366) ~[na:1.7.0_51]
at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[na:1.7.0_51]
at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0_51]
at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[na:1.7.0_51]
at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[na:1.7.0_51]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) ~[na:1.7.0_51]
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[na:1.7.0_51]
at org.eclipse.core.runtime.internal.adaptor.ContextFinder.loadClass(ContextFinder.java:131)
~[org.eclipse.osgi_3.8.2.v20130124-134944.jar:na]
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[na:1.7.0_51]
at org.springframework.util.ClassUtils.forName(ClassUtils.java:258)
~[org.springframework.core-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:417)
~[org.springframework.beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1283)
~[org.springframework.beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1254)
~[org.springframework.beans-3.1.4.RELEASE.jar:3.1.4.RELEASE]
答案 0 :(得分:0)
在您的应用程序配置中(单击调试图标,然后单击箭头以显示对话框)确保选中插件,在包含Spring类的plugin.xml中确保在插件编辑器的运行时选项卡中包列出在导出的包视图中。如果你已完成所有评论,我们可以尝试更多的东西。