【问题标题】:'http://javax.xml.XMLConstants/feature/secure-processing' is not recognized'http://javax.xml.XMLConstants/feature/secure-processing' 无法识别
【发布时间】:2017-10-27 07:14:06
【问题描述】:

我们将应用程序升级到 Java8 和 Xerces 2.8 版本,我们收到以下警告:

Warning: org.apache.xerces.parsers.SAXParser: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' is not recognized.
Warning: org.apache.xerces.parsers.SAXParser: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
Warning: org.apache.xerces.parsers.SAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.

请告诉我们为什么会收到此警告?

跳过此属性/警告有什么影响?

如果出现以下警告,“entityExpansionLimit”和“accessExternalDTD”的值将是多少。它是默认值还是将为空?

【问题讨论】:

  • 更新格式

标签: java xerces


【解决方案1】:

应用程序将运行:

"-Djava.endorsed.dirs=C:\WorkAxis\AxisTest\endorsed"

并且目录C:\WorkAxis\AxisTest\endorsed 包含以下文件:

xalan-2.7.2.jar;
serializer-2.7.2.jar; 
xml-apis-1.4.01.jar;
xercesImpl-2.11.0.jar;

【讨论】:

    猜你喜欢
    • 2015-11-22
    • 1970-01-01
    • 2017-11-04
    • 2021-02-10
    • 2021-06-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-13
    相关资源
    最近更新 更多