Jump to content
Changes to the Jaspersoft community edition download ×

Ant builds fail


2005 IR Help

Recommended Posts

By: David Karnowski - karnowski

Ant builds fail

2005-12-01 09:29

Hi,

 

When I compile jrxml files with an ant "jrc" taskdef I get the following error:

[jrc] SEVERE: Parse Fatal Error at line 4 column 186: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

 

This occurs even in the "antcompile" sample directory, and for any sample directory that uses the "jrc" taskdef in build.xml.

 

I have no problem compiling the sample reports that do not use the "jrc" taskdef. So for example, I can compile the "query" and "text" samples OK with "ant javac" followed by "ant compile".

 

Any ideas?

 

Here's the full error stack trace:

 

$ pwd

/etrade/home/dkarnows/work/jasper/jasperreports-1.1.1/demo/samples/antcompile

$ ant

Buildfile: build.xml

 

compile1:

[mkdir] Created dir: /etrade/home/dkarnows/work/jasper/jasperreports-1.1.1/demo/samples/antcompile/build/reports

[jrc] Compiling 2 report design files.

[jrc] Dec 1, 2005 12:12:55 PM org.apache.commons.digester.Digester fatalError

[jrc] SEVERE: Parse Fatal Error at line 4 column 186: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

[jrc] org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

[jrc] at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

[jrc] at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)

[jrc] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

[jrc] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

[jrc] at org.apache.xerces.impl.dtd.XMLNSDTDValidator.startNamespaceScope(Unknown Source)

[jrc] at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)

[jrc] at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)

[jrc] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

[jrc] at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)

[jrc] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

[jrc] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

[jrc] at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

[jrc] at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

[jrc] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

[jrc] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

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

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

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

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

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

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

[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.Task.perform(Task.java:341)

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

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

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

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

[jrc] at org.apache.tools.ant.Main.runBuild(Main.java:609)

[jrc] at org.apache.tools.ant.Main.start(Main.java:196)

[jrc] at org.apache.tools.ant.Main.main(Main.java:235)

[jrc] File : /etrade/home/dkarnows/work/jasper/jasperreports-1.1.1/demo/samples/antcompile/reports/com/bar/BarReport.jrxml ... FAILED.

[jrc] Error compiling report design : /etrade/home/dkarnows/work/jasper/jasperreports-1.1.1/demo/samples/antcompile/reports/com/bar/BarReport.jrxml

[jrc] org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

[jrc] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

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

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

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

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

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

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

[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.Task.perform(Task.java:341)

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

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

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

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

[jrc] at org.apache.tools.ant.Main.runBuild(Main.java:609)

[jrc] at org.apache.tools.ant.Main.start(Main.java:196)

[jrc] at org.apache.tools.ant.Main.main(Main.java:235)

 

[jrc] NESTED BY :

[jrc] net.sf.jasperreports.engine.JRException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

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

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

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

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

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

[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.Task.perform(Task.java:341)

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

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

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

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

[jrc] at org.apache.tools.ant.Main.runBuild(Main.java:609)

[jrc] at org.apache.tools.ant.Main.start(Main.java:196)

[jrc] at org.apache.tools.ant.Main.main(Main.java:235)

[jrc] Caused by: org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

[jrc] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

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

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

[jrc] ... 15 more

[jrc] Dec 1, 2005 12:12:55 PM org.apache.commons.digester.Digester fatalError

[jrc] SEVERE: Parse Fatal Error at line 4 column 186: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

[jrc] org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

[jrc] at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

[jrc] at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)

[jrc] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

[jrc] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

[jrc] at org.apache.xerces.impl.dtd.XMLNSDTDValidator.startNamespaceScope(Unknown Source)

[jrc] at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)

[jrc] at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)

[jrc] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

[jrc] at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)

[jrc] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

[jrc] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

[jrc] at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

[jrc] at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

[jrc] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

[jrc] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

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

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

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

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

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

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

[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.Task.perform(Task.java:341)

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

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

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

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

[jrc] at org.apache.tools.ant.Main.runBuild(Main.java:609)

[jrc] at org.apache.tools.ant.Main.start(Main.java:196)

[jrc] at org.apache.tools.ant.Main.main(Main.java:235)

[jrc] File : /etrade/home/dkarnows/work/jasper/jasperreports-1.1.1/demo/samples/antcompile/reports/com/foo/FooReport.jrxml ... FAILED.

[jrc] Error compiling report design : /etrade/home/dkarnows/work/jasper/jasperreports-1.1.1/demo/samples/antcompile/reports/com/foo/FooReport.jrxml

[jrc] org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

[jrc] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

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

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

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

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

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

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

[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.Task.perform(Task.java:341)

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

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

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

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

[jrc] at org.apache.tools.ant.Main.runBuild(Main.java:609)

[jrc] at org.apache.tools.ant.Main.start(Main.java:196)

[jrc] at org.apache.tools.ant.Main.main(Main.java:235)

 

[jrc] NESTED BY :

[jrc] net.sf.jasperreports.engine.JRException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

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

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

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

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

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

[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.Task.perform(Task.java:341)

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

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

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

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

[jrc] at org.apache.tools.ant.Main.runBuild(Main.java:609)

[jrc] at org.apache.tools.ant.Main.start(Main.java:196)

[jrc] at org.apache.tools.ant.Main.main(Main.java:235)

[jrc] Caused by: org.xml.sax.SAXParseException: Attribute "" bound to namespace "null" was already specified for element "jasperReport".

[jrc] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

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

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

[jrc] ... 15 more

 

BUILD FAILED

file:/etrade/home/dkarnows/work/jasper/jasperreports-1.1.1/demo/samples/antcompile/build.xml:29: Errors were encountered when compiling report designs.

 

Total time: 7 seconds

 

Thanks,

David

 

 

 

 

By: David Karnowski - karnowski

RE: Ant builds fail

2005-12-01 13:40

Resolved: The problem is the version of Ant that I was using (1.5.3). I upgraded to version 1.6.5 and the build works. I believe Ant changes the CLASSPATH and some of the JARs shipped with earlier Ant versions are incompatible with the current Jasper.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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