Jump to content
Changes to the Jaspersoft community edition download ×

Problem compiling - Document class not found

Recommended Posts

By: teepee - tpatzner

Problem compiling - Document class not found

2006-07-17 19:01

I'm completely stumped on this one and can't find much online about it.


I have the following code to compile a report that uses an XML data source:

JasperDesign jasperDesign = JRXmlLoader.load(new File("CustomersReport.jrxml"));

JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);


I get the following error during runtime:

CustomersReport_1153184413079_944042.java:170: cannot resolve symbol

symbol : class Document

location: package dom

SystemErr R value = (java.lang.Object)(((org.w3c.dom.Document)parameter_XML_DATA_DOCUMENT.getValue()));

SystemErr R ^


I am using Websphere Application Developer 5.1.0 with compiler compliance level 1.3. I'm wondering if there a problem with the JDK 1.3 and using XML data sources?


I'm using JasperReports 1.2.4. I had a look at the example 'XmlDataSourceApp.java' but I don't see where they actually compile the reports.


Perhaps I'm missing something?


Many Thanks,





By: teepee - tpatzner

RE: Problem compiling - Document class not fo

2006-07-18 01:52

I've just discovered that I have a dom4j.jar in my WEB-INF/lib directory. Could this be the cause of the error?

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