![](http://content.invisioncic.com/i328763/set_resources_3/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
ibrahim.baradji
-
Posts
2 -
Joined
-
Last visited
Content Type
Forum
Downloads
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Security Advisories
Events
Profiles
Posts posted by ibrahim.baradji
-
-
Hi all,
I have a problem in generating a report that use a scriptlet on jasperserver but all work perfectly on ireport.
below is the environment :
apache-tomcat-5.5.26
iReport-5.6.0
jasperreports-server-cp-5.6.1
jdk1.7.0_80
I have copied the jar of the scriptlet in commonlib folder of tomcat. Also I putted there the jar of jasperreport 5.6.1.
below is the structure of scriptlet java code :
/** BEGIN JAVA CODE */
import net.sf.jasperreports.engine.JRAbstractScriptlet;import net.sf.jasperreports.engine.JRScriptletException;public class TestScriptlet extends JRAbstractScriptlet {***/** END JAVA CODE */
Below is the error log :
Error creating scriptlet class instance : TestScriptlet
com.jaspersoft.jasperserver.api.JSExceptionWrapper: net.sf.jasperreports.engine.JRException: Error creating scriptlet class instance : TestScriptlet at ...net.sf.jasperreports.engine.JRException: Error creating scriptlet class instance : TestScriptlet...net.sf.jasperreports.engine.JRException: Error creating scriptlet class instance : TestScriptlet at ...java.lang.ClassCastException: TestScriptlet cannot be cast to net.sf.jasperreports.engine.JRAbstractScriptlet...java.lang.ClassCastException: TestScriptlet cannot be cast to net.sf.jasperreports.engine.JRAbstractScriptlet at...Please can you tell me what is wrong ?Thanks
ClassCastException JRAbstractScriptlet.
in Products
Posted
Is this working with community edition ?