Jump to content
Changes to the Jaspersoft community edition download ×

Scriptlet classpath


2005 IR Help

Recommended Posts

By: ciracus - ciracus

Scriptlet classpath

2005-05-26 09:04

Bonjour,

 

I work with iReport 0.4.1, my report that use the scriptlet work fine! and finally i want deploye this report in tomcat struts. And when i want execute this report java.lang.ClassNotFoundException... for the scriptlet class

 

I read in the documentation version 1.0 that is a classpath problem, i put my scriptlet class in my web-inf directory and in other places but always the same error.

 

Can you help me?

thank you very much and excuse me for my very bad english.

 

 

 

 

 

By: Giulio Toffoli - gt78

RE: Scriptlet classpath

2005-05-26 16:02

Put it into WEB-INF/classes

Put ireport.jar to WEB-INF/lib

 

 

Giulio

 

 

 

 

By: ciracus - ciracus

RE: Scriptlet classpath

2005-05-27 00:40

Bonjour,

 

Thank you for your answer.

ireport.jar is already in WEB-INF/lib. I have other reports generated by iReport and all is ok. But this new report work with charts. This is the reason of scriptlet (I think).

 

I have tested this re^port without chart and it work fine!

 

I think that is not an ireport problem, but i have no more idea to get the solution.

 

The Scriptlet the original generate by iReport, it begins by :

import net.sf.jasperreports.engine.*;

 

public class jsr_stat_jvScriptlet extends it.businesslogic.ireport.IReportScriptlet {

 

/** Creates a new instance of JRIreportDefaultScriptlet */

public jsr_stat_jvScriptlet() {

...

 

The error trace begin with :

java.lang.ClassNotFoundException: jsr_stat_jvScriptlet

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)

at java.lang.ClassLoader.loadClassInternal(Unknown Source)...

 

in fact, all the jar who are in the ireport/lib are present in my WEB-INF/lib.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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