Posted on 2007-02-03 09:33
Zou Ang 閱讀(3701)
評論(1) 編輯 收藏 所屬分類:
這幾天突然遇到了一個問題:Tomcat跑不起來了!提示錯誤信息:
Error Listener Start
org.springframework.web.context.ContextLoaderListener
Error Listener Start
....
就這么2行,讓人一頭霧水。昨天檢查了一個下午也沒發現問題。今天突然在查看錯誤日志時發現:
Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Line 14 in XML document from ServletContext resource [/WEB-INF/springctx-datareport.xml] is invalid; nested exception is org.xml.sax.SAXParseException: Element type "bean" must be followed by either attribute specifications, ">" or "/>".
仔細查看了一下配置文件,原來是同組的組員在寫配置文件的時候在class="...."后面多了一個引號!
這個Listener Start的問題太隱蔽,如果沒有做錯誤日志估計一直很難發現了
不過這次有了教訓,以后也有方向了