Jump to content
Changes to the Jaspersoft community edition download ×

WebReport error: Package does not exist...


Recommended Posts

By: Erno Hajdu - odonbattya

WebReport error: Package does not exist...

2003-06-03 05:36

We'd like to run a web application, using servlet, custom datasource, etc. The servlet first sets the "jasper.reports.compile.class.path" system property, instantiates a custom datasource,makes a JasperDesign as follows:

 

MyDataSource myDataSource = new MyDataSource(dataSourceMap);

MyDesignApp myDesignApp = new MyDesignApp();

JasperDesign jd = myDesignApp.getJasperDesign(myDataSource.getListHeaders());

JasperReport masterReport = dori.jasper.engine.JasperCompileManager.compileReport(jd);

 

When we deploy the .war file we didn't get any error, but in runtime we get the followings:

 

13:21:57,038 ERROR [sTDERR] /usr/local/jboss-3.2.1_tomcat-4.1.24/bin/MyDesignReport.java:4: package dori.jasper.engine does not exist

13:21:57,039 ERROR [sTDERR] import dori.jasper.engine.*;

13:21:57,041 ERROR [sTDERR] ^

13:21:57,046 ERROR [sTDERR] /usr/local/jboss-3.2.1_tomcat-4.1.24/bin/MyDesignReport.java:5: package dori.jasper.engine.fill does not exist

13:21:57,047 ERROR [sTDERR] import dori.jasper.engine.fill.*;

13:21:57,048 ERROR [sTDERR] ^

13:21:57,185 ERROR [sTDERR] /usr/local/jboss-3.2.1_tomcat-4.1.24/bin/MyDesignReport.java:17: cannot resolve symbol

13:21:57,186 ERROR [sTDERR] symbol : class JRCalculator

13:21:57,186 ERROR [sTDERR] location: class MyDesignReport

13:21:57,186 ERROR [sTDERR] public class MyDesignReport extends JRCalculator

etc.

 

We realize that the errors come after JasperCompileManager.compileReport(jd) method. It seems the jasperreport.jar file cannot be found by

the servlet. We tried to place it to the WEB-INF/lib/ directory, unpack it and copy the contents (dori and org packages) to the /classes directory,

but there're no changes.

I have read Enrico's problem (http://sourceforge.net/forum/forum.php?thread_id=870084&forum_id=113530) and his solution, but it seems a little

bit hacking :-)

Have you got any idea ?

Thanks your fast reply: Odon.

 

 

 

 

 

By: Teodor Danciu - teodord

RE: WebReport error: Package does not exist..

2003-06-03 07:10

 

Hi,

 

The next version of JasperReports will introduce

support for report expression evaluation using BeanShell.

This way the bytecode compilation process won't be

needed anymore in such deployment scenarios.

However, with BeanShell, the report filling process

seems to be slower.

 

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