2011-02-10 86 views
0

当我启动连接到我的Java EE项目的Tomcat服务器时,出现下面列出的错误。另外两个人在Eclipse/Tomcat/Java中使用相同的存储库,并且没有任何问题。它创建我的包层次结构,但类缺失。 Tomcat开发了我的WEB-INF/classes/com文件夹,但内容都是空的。谁能帮我这个?谢谢。eclipse为什么不编译我的web应用程序?

 
SEVERE: Context initialization failed 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0' defined in ServletContext resource [/WEB-INF/LightStanza-servlet.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.lightfoundryllc.lightstanza.login.LoginValidator] for bean with name 'loginValidator' defined in ServletContext resource [/WEB-INF/LightStanza-servlet.xml]; nested exception is java.lang.ClassNotFoundException: com.lightfoundryllc.lightstanza.login.LoginValidator 
+0

你是否在eclipse中运行你的tomcat服务器?还是你手动启动你的tomcat? – davogotland 2011-02-10 00:06:31

+0

是的,我在eclipse中运行tomcat。当我右键单击服务器并按下“开始”时出现此错误。 – Dan 2011-02-10 00:23:30

回答

0

感谢您的帮助。我为TOMCAT_HOME和PATH设置了我的环境变量,现在似乎正在工作:)。

相关问题