2004 IR Help Posted August 23, 2006 Share Posted August 23, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now