Jump to content
Changes to the Jaspersoft community edition download ×

can not load compiled scriptlets at runtime


2004 IR Help

Recommended Posts

By: Olaf Krause - housekatze

can not load compiled scriptlets at runtime

2005-10-25 04:54

Hello,

 

We use Jasperreports in our webapp (Servlet) Application.

We compile report.jrxml at runtime and the reportScriptlet.java at runtime.

Compiling sources is okay,cause we set the classpath to the outer directory.

Now we want to fill the report with the JRFiller.fillReport method. Deep in that it will invoke the JRClassLoader.loadClassForName(scriptletClassName).

 

This method throws ClassNotFound Exception caused by trying the JRClassLoader to load the imported classes in our Scriptlet.java, like JRAbstractScriptlet.

 

If we copy the .class files from the .jar's to our external directory, so the JRClassLoader finds needed classes.

 

Is it possible to extend the classpath of the (JR)ClassLoader? Or is there any way to extend the classpath at runtime?

 

setContextClassloader(ourOwnClassLoader) failes.

 

Thanks, Olaf

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