cvc-elt.1: Cannot find the declaration of element 'taglib'的解决方法
2013-09-03 19:19
579 查看
项目一直都是好好的,但经常不经意间会报出以下错误:
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'taglib'.
原因:Tomcat下Server.xml中设置了xmlValidate=true,也就是说Tomcat会进行XML文件验证
解决方法一:将修改Tomcat/conf下的server.xml文件中的xmlValidation=true为false即可(改为false后,不再进行xml文档的验证自然不会报错,但我再次修改为true后,仍旧没报错,诧异啊~~);
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'taglib'.
原因:Tomcat下Server.xml中设置了xmlValidate=true,也就是说Tomcat会进行XML文件验证
解决方法一:将修改Tomcat/conf下的server.xml文件中的xmlValidation=true为false即可(改为false后,不再进行xml文档的验证自然不会报错,但我再次修改为true后,仍旧没报错,诧异啊~~);
相关文章推荐
- org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'taglib'. 异常
- Cannot find the declaration of element 'beans'. 的解决方法
- Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- Cannot find the declaration of element 'beans'. 的解决方法
- Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- Multiple annotations found at this line: - cvc-elt.1: Cannot find the declaration of element 'ehcac
- Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'xml-bod
- cvc-elt.1: Cannot find the declaration of element 'beans'.
- cvc-elt.1: Cannot find the declaration of element 'ehcache'.
- Spring 2.0.8 和 2.5 applicationContext.xml 头文件写法 Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
- Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
- Cannot find the declaration of element 'beans'. 的解决方法
- Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
- nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
- 解决eclipse spring配置报错:cvc-elt.1: Cannot find the declaration of element
- 开发日志:解决spring版本导致的Cannot find the declaration of element 'beans',查看jar中的spring的版本
- Spring 配置文件报错: cvc-elt.1: Cannot find the declaration of element ""beans""
- Spring cvc-elt.1: Cannot find the declaration of element 'beans'.