console Posted November 11, 2008 Share Posted November 11, 2008 The following piece of code in ANT produces the error mentioned below. I have verified the that the JRAntCompileTask in ANT has xerces in the path. How do I get the task to use xerces instead of crimson. I do have this line but not sure where to inject it.<sysproperty key="org.xml.sax.driver" value="org.apache.xerces.parsers.SAXParser"/>Any help is appreciated. Thanks.Code:<target name="jasper-compile"> <taskdef name="jrc" classname="net.sf.jasperreports.ant.JRAntCompileTask" > <classpath refid="classpath.path" /> </taskdef> <jrc destdir="${dir.source.reports}"> <src> <fileset dir="${dir.source.reports}"> <include name="**/*.jrxml" /> </fileset> </src> <classpath refid="classpath.path" /> </jrc></target></target>jasper-compile: [echo] Report Folder: ./doc-root/reports [jrc] Compiling 10 report design files. [jrc] 6 [main] ERROR digester.Digester - Digester.getParser: [jrc] org.xml.sax.SAXNotRecognizedException: Feature: http://apache.org/xml/features/validation/dynamic [jrc] at org.apache.crimson.parser.XMLReaderImpl.setFeature(XMLReaderImpl.java:204) [jrc] at org.apache.crimson.jaxp.SAXParserImpl.setFeatures(SAXParserImpl.java:143) [jrc] at org.apache.crimson.jaxp.SAXParserImpl.<init>(SAXParserImpl.java:126) [jrc] at org.apache.crimson.jaxp.SAXParserFactoryImpl.newSAXParserImpl(SAXParserFactoryImpl.java:113) [jrc] at org.apache.crimson.jaxp.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:141) [jrc] at org.apache.commons.digester.parser.XercesParser.configureXerces(XercesParser.java:185) [jrc] at org.apache.commons.digester.parser.XercesParser.newSAXParser(XercesParser.java:138) Link to comment Share on other sites More sharing options...
teodord Posted November 12, 2008 Share Posted November 12, 2008 Hi,What version of ANT are you using and on what JDK?Thanks,Teodor Link to comment Share on other sites More sharing options...
console Posted November 13, 2008 Author Share Posted November 13, 2008 We have no problems on a Windows machine, but get the error in the Unix environment. [echo] Java Version: 1.5 [echo] Ant Version: Apache Ant version 1.6.5 compiled on June 2 2005 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now