Jump to content
Changes to the Jaspersoft community edition download ×

error when compiling compileReport


Recommended Posts

By: nay - nay

error when compiling compileReport

2002-09-09 07:47

Hi,

 

When I compile a jasperDesign to create a jasperReport object I have this error :

 

JasperTemplateXML.java:4: Package dori.jasper.engine not found in import.

 

Where is JasperTemplateXML.java create ? Can someone help me please...

Thanks

 

 

By: Teodor Danciu - teodord

RE: error when compiling compileReport

2002-09-09 08:03

 

Hi,

 

Make sure jasperreports.jar is in the classpath

when you launch the JVM.

If it is a Java Web server like Tomcat that you are

running, then this would be equivalent to copying

this jar file to the LIB directory from which the

server loads its default libraries.

 

I hope this helps.

Teodor

 

 

 

By: nay - nay

RE: error when compiling compileReport

2002-09-09 08:22

But when I copy jasperreports.jar to the Tomcat common lib directory, it s make this error when I request my servlet....

 

java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester

at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:368)

at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:333)

.......

 

when I copy the jasperrepports.jar in my webapp/lib or in TOMCAT/lib directory It seem not find the jar....Do you have an idea ?

 

 

- another problem, I try to test the war it s seem not to work too :(....

org.apache.jasper.JasperException: Unable to compile class for JSPerror: Invalid class file format in C:Program FilesJavaj2re1.4.0librt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.

 

Do you have another .war test ?

 

Thank ! :)

 

 

By: Teodor Danciu - teodord

RE: error when compiling compileReport

2002-09-09 08:35

 

Hi,

 

Are you sure you need to compile de report

designs every time the user request the report?

Are the report designs dynamic themselves.

 

The normal way to use the library is to have

the .jasper files created only once, at design time

and to use them only for filling with data.

 

Anyway, if you compile the report templates every

time, you encounter this classpath problem

because now Tomcat loads the jar from the LIB

and does not find the rest of the jar files.

So, the next step is to copy in the LIB also the

other jar files that come with the JasperReports

project.

 

I'll dig into this compilation classpath problem and

maybe come up with a better solution.

 

Thank you,

Teodor

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