Jump to content
Changes to the Jaspersoft community edition download ×

Recommended Posts

By: Ryan - louier79

Compile Help

2003-11-03 16:57



I am trying to compile the xml file into a .jasper file using the build.xml and ant, but I get this error:


$ ant compile

Searching for build.xml ...

Buildfile: ../WEB-INF/classes/build.xml



[java] Exception in thread "main" java.lang.NoSuchMethodError: javax.xml.parsers.SAXParser: method getXMLReader()Lorg/xml/sax/XMLReader; not found

[java] at dori.jasper.engine.xml.JRXmlLoader.prepareDigester(JRXmlLoader.java:419)

[java] at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:370)

[java] at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:357)

[java] at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:337)

[java] at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:323)

[java] at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:102)

[java] at JasperApp.main(Compiled Code)

[java] Java Result: 1


Here is my build.xml:


<project name="JasperReports" default="javac" basedir=".">


<target name="compile">

<java classname="JasperApp" fork="true">

<sysproperty key="org.xml.sax.driver" value="org.apache.xerces.parsers.SAXParser"/>

<arg value="-Tcompile"/>

<arg value="-FStudentOnlineBillStatement1.xml"/>


<pathelement location="./"/>

<pathelement location="./"/>

<fileset dir="../lib">

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








Any help would be greatly appreciated!


Thank you!


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