2 qq 28829573 qq_28829573 于 2016.04.01 14:42 提问

applicationContext.xml解读出错

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ssf' defined in URL [file:/E:/apache-tomcat-7.0.67/webapps/myHobby/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [E:\apache-tomcat-7.0.67\webapps\myHobby\WEB-INF\classes\applicationContext.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 13; columnNumber: 108; 文档根元素 "beans" 必须匹配 DOCTYPE 根 "null"。

1个回答

xiaoyao880609
xiaoyao880609   2016.04.01 15:51

可能是包冲突导致的,检查一下包试试。

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
加载spring时applicationContext.xml文件出错
<br /><br />今天联系Spring+Hibernate基础,没办法,SSH配置一直一直在出问题,只能一点一点的调了~<br />首先在新建工程的时候就出现了问题,用MyEclipse加入Spring支持的时候就出现了错误提示,T_T~~~~我明明嘛都米开始干呢。。。。。<br />applicationContext.xml头出现了问题,MyEclipse提示如下错误:<br />Referenced file contains errors(http://www.springframework.
读取applicationContext.xml报错
错误日志: Exception in thread "AWT-EventQueue-0" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from file [F:\茂名\UVIEW绘图\UVIEW绘图\applicationContext.xml] i
Spring中的applicationContext.xml配置错误
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [applicationContext.xml]; nested exception is java.lang.IllegalStateException: Context namespace element 'annotation-config'
spring配置文件详解(applicationContext.xml)
spring配置文件详解
ApplicationContext读取xml配置文件 报错
配置文件: public class App { public static void main( String[] args ) { ApplicationContext appContext = new ClassPathXmlApplicationContext("/applicationContext-aop.xml"); Studen
Tomcat启动读取applicationContext.xml出错的解决方式
nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.          at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefin
applicationContext.xml中提示的错误
cvc-complex-type.2.3: Element 'security:http' cannot have character [children], because the type's content type is element-only. 这
spring读取applicationContext.xml,加载xsd错误
maven打包后启动程序遇到遇到解析spring的applicationContext.xml文件报错,错误如下: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring
找不到spring的applicationContext.xml异常
请问一下各位,我的Action里面老是抱找不到spring的applicationContext.xml的错误,尝试了很多路径,都不行,希望各位帮忙解答一下. 我的Action里面的路径 ApplicationContext context=new FileSystemXmlApplicationContext("src/applicationContext.xml"); 包错信
shiro整合applicationContext.xml
shiro整合applicationContext.xml