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

Ant & Eclipse : SEVERE: Digester.getParser:


Recommended Posts

By: Rian - rian123

Ant & Eclipse : SEVERE: Digester.getParser:

2006-03-10 08:25

Hi

Probably a silly question:

I can compile my Jasper reports using the following ant file, but when I try to do it from Eclipse I get the errors as displayed below.

I am using Eclipse 3.1.1 and in this instance JasperReports 1.0.0.

From what I can see it looks as if Eclipse is picking up the wrong SAX parser.

 

Any ideas will be appreciated.

 

Regards,

Rian

 

* Ant section :

<property name="web.dir" value="war"/>

<property name="report.dir" value="${web.dir}/WEB-INF/report"/>

<property name="build.dir" value="${web.dir}/WEB-INF/classes"/>

<property name="lib.dir" value="C:/j2sdk1.4.2_08/jasperreports-1.0.0/" />

 

<path id="classpath">

<pathelement location="./"/>

<fileset dir="${lib.dir}">

<include name="**/*.jar"/>

</fileset>

</path>

 

<target name="compile" description="Compiles the XML report design and produces the .jasper file.">

<taskdef name="jrc" classname="net.sf.jasperreports.ant.JRAntCompileTask">

<classpath refid="classpath"/>

</taskdef>

<jrc destdir="${build.dir}">

<src>

<fileset dir="${report.dir}">

<include name="**/*.jrxml"/>

</fileset>

</src>

<classpath refid="classpath"/>

</jrc>

</target>

 

* Errors :

[jrc] Compiling 2 report design files.

[jrc] 10-Mar-2006 17:30:38 org.apache.commons.digester.Digester getParser

[jrc] SEVERE: 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:219)

[jrc] at org.apache.crimson.jaxp.SAXParserImpl.setFeatures(SAXParserImpl.java:150)

[jrc] at org.apache.crimson.jaxp.SAXParserImpl.<init>(SAXParserImpl.java:133)

[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)

[jrc] at org.apache.commons.digester.ParserFeatureSetterFactory.newSAXParser(ParserFeatureSetterFactory.java:71)

[jrc] at org.apache.commons.digester.Digester.getParser(Digester.java:692)

[jrc] at org.apache.commons.digester.Digester.getXMLReader(Digester.java:899)

[jrc] at org.apache.commons.digester.Digester.parse(Digester.java:1666)

[jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:225)

[jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:209)

[jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:163)

[jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:147)

[jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:107)

[jrc] at net.sf.jasperreports.ant.JRAntCompileTask.compile(JRAntCompileTask.java:398)

[jrc] at net.sf.jasperreports.ant.JRAntCompileTask.execute(JRAntCompileTask.java:252)

[jrc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

[jrc] at org.apache.tools.ant.Task.perform(Task.java:364)

[jrc] at org.apache.tools.ant.Target.execute(Target.java:341)

[jrc] at org.apache.tools.ant.Target.performTasks(Target.java:369)

[jrc] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

[jrc] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

[jrc] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)

[jrc] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)

[jrc] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

[jrc] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)

[jrc] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

 

 

 

By: Rian - rian123

Ant & Eclipse : SEVERE: Digester.getParser:

2006-03-10 08:27

Sorry, I mean to post that in Help.

Rian

 

 

By: Teodor Danciu - teodord

Ant & Eclipse : SEVERE: Digester.getParser:

2006-03-10 08:34

 

Hi,

 

This seems to be a Digester bug.

We'll try to look into it deeper and see how to

avoid it if possible.

 

http://issues.apache.org/bugzilla/show_bug.cgi?id=38894

 

Thank you,

Teodor

 

 

 

By: roskha - roskha

Ant & Eclipse : SEVERE: Digester.getParser:

2006-04-14 08:05

You have to overide crimson parser on the rt.jar, which does not support certain features.

 

To do that, go to Ant Perspective in Eclipse, right click on your ant build file select Run As and choose second Ant Build. Select Classpath tab, click on User Entries and click Add Jars.

 

I added xml-apis.jar and xercesImpl.jar

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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...