新浪SAE服务器报如下错误:
- [02/Sep/2015:15:22:29 +0800] JAVA_Error: Failed startup of context c.s.s.w.SaeWebAppContext{/1/devcore,file:/data1/jetty_work/443/devcore/jetty-0.0.0.0-11893-devcore.war-_1_devcore-any-/webapp/},/data1/www/htdocs/443/devcore/1/devcore.warorg.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [file:/data1/jetty_work/443/devcore/jetty-0.0.0.0-11893-devcore.war-_1_devcore-any-/webapp/WEB-INF/classes/applicationContext.xml]; nested exception is javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.DocumentBuilderFactory cannot be found
可能原因:使用maven依赖dom4j.jar,同时下载了xml-apis.jar
解决方法1:删除xml-apis.jar
解决方法2:改用jdom