Spring配置AOP出現(xiàn)的問題
出現(xiàn)的異常:
ERROR - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Line 6 in XML document from ServletContext resource [/WEB-INF/applicationContext_security.xml] is invalid; nested exception is org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".
解決辦法:
最終發(fā)現(xiàn)原因了,原來有兩點(diǎn):一、spring.jar不是2.0的,而是1.2的,這屬版本問題;二、所需要jar包沒有導(dǎo)入工程。
java.lang.NoSuchMethodError: org.springframework.beans.factory.config.ConfigurableListableBeanFactory.registerResolvableDependency(Ljava/lang/Class;Ljava/lang/Object;)V
原因:Spring 和 Hibernate 共用的一些 jar 文件發(fā)生了版本沖突.
解決辦法:刪除 WEB-INF/lib/asm-2.2.3.jar 然后重啟 Tomcat.
posted on 2010-01-26 15:27 Rabbit 閱讀(544) 評(píng)論(0) 編輯 收藏