org.xml.sax.SAXNotRecognizedException: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' is not recognized
ant, jaxb, unix, xml
Solution
If you have Maven, add this to pom.xml
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.11.0</version>
</dependency>
Problem
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 ``` This ant task is working fine in eclipse and jar got created , but it is throwing errors in unix environment. The Error is: java.lang.IllegalStateException: org.xml.sax.SAXNotRecognizedException: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' is not recognized. 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 build jar- it has only few classes unix build jar- it has impl folder and so many classes In both the cases the jaxb jars were the same. Please help me with this issue....Please...................