2011-02-10 85 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設置了我的環境變量,現在似乎正在工作:)。

相關問題