Jump to content
Changes to the Jaspersoft community edition download ×

please help!!!!!.JRXmlLoader Problem.


Recommended Posts

By: sundile - sundile

please help!!!!!.JRXmlLoader Problem.

2005-04-22 01:25

Hi every one

 

I have a problem regarding JRXmlLoader.

 

My program gives me a rather gibberish message.

 

32InputStreaminput=newFileInputStream(newFile("C:/celsoft/reports/example2.xml"));

33 JasperDesign design = JRXmlLoader.load(input);//this line crashes

34JasperReportreportJasperCompileManager.compileReport(design);

 

This is the kind of message I get.

 

Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.commons.digester.Digester

at nelson main(nelson.java)

 

 

 

By: jorge - sirion_oef

RE: please help!!!!!.JRXmlLoader Problem.

2005-04-30 14:59

What editor are you using? some editors needs include (manually some times) in its path all the libs that your aplication uses

 

Are you including all the libs that comes with the jasperreports lib? some classes of jasperreports needs these libs, thats why they come in the zip

 

 

By: Alexandr - alexadr

RE: please help!!!!!.JRXmlLoader Problem.

2005-07-19 22:24

2 sundile

As for your problem, - this error occurs because you have not include "commons-digester-1.3.jar" in classpath(I don't know what IDE do you use, for example in IDEA you need to include this jar in settings). This jar you can find in jasperreports-0.6.8lib

 

But Then, I want to describe my ERROR:

I have the same code as sundile!!!!

 

And I get such an error report:

20.07.2005 9:02:30 org.apache.commons.digester.Digester startElement

SEVERE: Begin event threw exception

java.lang.ClassCastException: net.sf.jasperreports.engine.xml.JRXmlLoader

 

 

By: jorge - sirion_oef

RE: please help!!!!!.JRXmlLoader Problem.

2005-07-20 12:14

include all the libs, maybe this works

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