XSD、dtd不联网情况下可能出现的报错。

XSD不联网情况下可能出现的报错。不是必现。貌似可以去掉版本号或者配置本地路径,不过联网就好了,暂时没处理。

 

2015-10-03 20:18:19,468 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Line 1 in XML document from file [E:\xxxxx\server\default\deploy\XXXX\WEB-INF\classes\conf\sql-map-config.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.
Caused by:
org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.

XML content:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"
        "http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
<sqlMapConfig>


2015-10-03 15:56:41,640 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Line 5 in XML document from file [E:\XXXX\server\default\deploy\jbossweb-tomcat55.sar\conf\web.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'web-app'.
Caused by:
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'web-app'.

 

XML content:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
   version="2.4">

 

 

---------------------------再次出现----------------------

到jar包中把DTD拷贝到本地目录,把DTD路径指向本地路径

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值