【发布时间】:2013-04-09 22:43:57
【问题描述】:
我正在尝试将旧项目从 Spring 2.5.6 升级到 Spring 3.1.0。该项目不是使用 Maven 构建的,因此我不得不手动将 jar 添加到构建路径中。
该应用程序使用 Eclipse RAP 以及 Spring。
我在构建路径中添加了所有 Spring 3.1 jar:
lib/org.springframework.aop-3.1.0.RELEASE.jar
lib/org.springframework.asm-3.1.0.RELEASE.jar
lib/org.springframework.aspects-3.1.0.RELEASE.jar
lib/org.springframework.beans-3.1.0.RELEASE.jar
lib/org.springframework.context-3.1.0.RELEASE.jar
lib/org.springframework.context.support-3.1.0.RELEASE.jar
lib/org.springframework.core-3.1.0.RELEASE.jar
lib/org.springframework.expression-3.1.0.RELEASE.jar
lib/org.springframework.instrument-3.1.0.RELEASE.jar
lib/org.springframework.instrument.tomcat-3.1.0.RELEASE.jar
lib/org.springframework.jdbc-3.1.0.RELEASE.jar
lib/org.springframework.jms-3.1.0.RELEASE.jar
lib/org.springframework.orm-3.1.0.RELEASE.jar
lib/org.springframework.oxm-3.1.0.RELEASE.jar
lib/org.springframework.test-3.1.0.RELEASE.jar
lib/org.springframework.transaction-3.1.0.RELEASE.jar
lib/org.springframework.web-3.1.0.RELEASE.jar
lib/org.springframework.web.portlet-3.1.0.RELEASE.jar
lib/org.springframework.web.servlet-3.1.0.RELEASE.jar
lib/org.springframework.web.struts-3.1.0.RELEASE.jar
我还在 MANIFEST.MF 中列出了它们。
项目构建良好,但在运行时尝试登录时出现以下错误:
java.lang.NoClassDefFoundError: org/springframework/beans/factory/ListableBeanFactory
我查看了 bean jar,课程肯定在那里。我还搜索了该项目,并且该类在任何地方都没有明确使用。
是什么原因造成的?提前谢谢你。
【问题讨论】:
标签: eclipse spring build eclipse-rcp