日期:2014-05-18  浏览次数:20747 次

这个异常是什么意思呢????急求回答....
2007-4-24   10:37:16   org.apache.coyote.http11.Http11Protocol   init
信息:   Initializing   Coyote   HTTP/1.1   on   http-8080
2007-4-24   10:37:16   org.apache.catalina.startup.Catalina   load
信息:   Initialization   processed   in   2000   ms
2007-4-24   10:37:16   org.apache.naming.NamingContext   lookup
警告:   Unexpected   exception   resolving   reference
java.io.UTFDataFormatException:   Invalid   byte   2   of   2-byte   UTF-8   sequence.
at   org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown   Source)
at   org.apache.xerces.impl.io.UTF8Reader.read(Unknown   Source)
at   org.apache.xerces.impl.XMLEntityScanner.load(Unknown   Source)
at   org.apache.xerces.impl.XMLEntityScanner.scanData(Unknown   Source)
at   org.apache.xerces.impl.XMLScanner.scanComment(Unknown   Source)
at   org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanComment(Unknown   Source)
at   ....

------解决方案--------------------
解析XML的错误.XML中有非法的字符.试试看用Notepad打开这个XML,然后编码选择UTF,不行再试试看GBK,另存为.
------解决方案--------------------
把XML文件用记事本 "另存为 "的时候选择 "编码 "为UTF-8保存,就 OK啦 ~