org.dom4j.DocumentException: Error on line 1 of document : Premature end of file. Nested exception:

来源:互联网 发布:为什么wifi网络不稳定 编辑:程序博客网 时间:2024/06/01 09:09


log4j:WARN No appenders could be found for logger (bs.com.web.BsMmWeb).
log4j:WARN Please initialize the log4j system properly.
org.dom4j.DocumentException: Error on line 1 of document  : Premature end of file. Nested exception: Premature end of file.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.DocumentHelper.parseText(DocumentHelper.java:278)
at bs.com.common.XMLBeanUtils.readStringXmlOut(XMLBeanUtils.java:74)

at bs.com.common.XMLBeanUtils.xmlTo2Bean(XMLBeanUtils.java:35)


 Exception sending context initialized event to listener instance of class org.springframework.web.util.Log4jConfigListener
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.springframework.util.PropertyPlaceholderHelper.<clinit>(PropertyPlaceholderHelper.java:40)

at org.springframework.util.SystemPropertyUtils.<clinit>(SystemPropertyUtils.java:49)
at org.springframework.util.Log4jConfigurer.initLogging(Log4jConfigurer.java:66)



缺少包spring包和common包 

全部导入

0 1