![](http://content.invisioncic.com/i328763/set_resources_3/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
console
-
Posts
4 -
Joined
-
Last visited
Content Type
Forum
Downloads
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Security Advisories
Events
Profiles
Posts posted by console
-
-
Were you able to resolve this issue? What version of Jasper were you using? I have no problems on windows but on Unix I get the same error. Since it is Java AP, the OS should not matter
-
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 -
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)
3.1.2-JRRuntimeException: Error creating SAX parse
in Products
Posted
I have updated to the new version of Jasper reports in the hope of eliminating my problem. No such luck however. Things work fine on Windows, but not so much on Unix.
[echo] Java Version: 1.5
[echo] Ant Version: Apache Ant version 1.6.5 compiled on June 2 2005
net.sf.jasperreports.engine.JRRuntimeException: Error creating SAX parser
I am attaching the complete classpath listing as a text attachment.