我将我的项目导出为runnable jar并在java 8环境中执行。但我得到了
org.xml.sax.SAXNotRecognizedException: http://javax.xml.XMLConstants/feature/sec
ure-processing
at org.apache.xerces.parsers.AbstractSAXParser.setFeature(Unknown Source
)
at org.apache.xerces.jaxp.SAXParserImpl.setFeatures(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParserImpl(Unknown
Source)
我尝试使用xercesImpl.2.11.0并得到:
javax.xml.bind.UnmarshalException - with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 63; columnNumber: 9; The string "--"
is not permitted within comments.]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalExcept
ion(AbstractUnmarshallerImpl.java)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.cr
eateUnmarshalException(UnmarshallerImpl.java:)
请提供解决方案?
答案 0 :(得分:0)
如果您的XML或HTML出现问题,则会出现以下错误:
The string "--" is not permitted within comments.
HTML评论从"<!--",
开头,以"-->"
结尾,评论中的任何位置都不包含"--"
或">"
。
浏览此网址(HTML Comments)了解详情。