org.xml.sax.SAXNotRecognizedException:特征的“http://javax.xml.XMLConstants/feature/secure-processing'无法识别 [英] org.xml.sax.SAXNotRecognizedException: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' is not recognized
问题描述
喜在我们的项目,我们后,我们使用XJC蚂蚁任务xsd2schema一代正在编制中的src文件,并将它们组合到一个模式罐子。
我们已经为类路径是:
Hi in our project we are using XJC ant task for xsd2schema generation after that we are compiling the src files and grouping them into a schema jar. the classpath we have for that is:
jaxb-ri-2.2.6 - jaxb-impl.jar,jaxb-api.jar,jaxb-xjc.jar
这Ant任务是Eclipse和jar做工精致得到了创建的,但它是在UNIX环境中抛出的错误。
This ant task is working fine in eclipse and jar got created , but it is throwing errors in unix environment.
该错误是:
java.lang.IllegalStateException:org.xml.sax.SAXNotRecognizedException:功能'的http:// javax.xml.XMLConstants /功能/ '不是安全处理。
java.lang.IllegalStateException: org.xml.sax.SAXNotRecognizedException: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' is not recognized.
这是错误了,当我们增加了xercesImpl-2.9.1.jar到UNIX构建类路径,但产生的罐子,从使用eclipse生成的jar不同。
That error gone , when we added "xercesImpl-2.9.1.jar" to unix build classpath, but the jar generated was different from the jar that generated using eclipse.
Eclipse构建JAR-它只有几班
UNIX构建JAR-它有IMPL文件夹等许多类
eclipse build jar- it has only few classes unix build jar- it has impl folder and so many classes
在这两种情况下的JAXB罐子是相同的。
请帮我这个问题....请...................
In both the cases the jaxb jars were the same. Please help me with this issue....Please...................
推荐答案
升级位于lib文件夹到xercesImpl 2.9.1您xercesImpl jar文件。您只需下载并更换。它必须工作。
谢谢
Upgrade your xercesImpl jar file located in lib folder to xercesImpl 2.9.1. You can simply download it and replace it. It must work. Thanks
这篇关于org.xml.sax.SAXNotRecognizedException:特征的“http://javax.xml.XMLConstants/feature/secure-processing'无法识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!