Jump to content
We've recently updated our Privacy Statement, available here ×

JRAntCompileTask - org.xml.sax.SAXNotRecognizedExc


console

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...