SAE项目报错Provider for javax.xml.parsers.DocumentBuilderFactory cannot be found的解决方

阅读更多

web项目部署到SAE,启动报错

nested exception is javax.xml.parsers.FactoryConfigurationError: 

Provider for javax.xml.parsers.DocumentBuilderFactory cannot be found

删除/xml-apis*.jar可解决!网上都说增加 seXXX.jar包,增加只会报新的错误。

=============================================

- [29/Oct/2015:11:03:18 +0800] JAVA_Error: Failed startup of context c.s.s.w.SaeWebAppContext{/1/dmsupport,file:/data1/jetty_work/461/dmsupport/jetty-0.0.0.0-12755-dmsupport.war-_1_dmsupport-any-/webapp/},/data1/www/htdocs/461/dmsupport/1/dmsupport.war
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/conf/spring-beans.xml]; nested exception is javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.DocumentBuilderFactory cannot be found
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:45 yq37.javaruntime

 

你可能感兴趣的:(SAE项目报错Provider for javax.xml.parsers.DocumentBuilderFactory cannot be found的解决方)