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



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.(PropertyPlaceholderHelper.java:40)

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



缺少包spring包和common包 

全部导入

你可能感兴趣的:(java)