ibrahim.baradji Posted May 5, 2017 Share Posted May 5, 2017 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.26iReport-5.6.0jasperreports-server-cp-5.6.1jdk1.7.0_80I 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 : TestScriptletcom.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 Link to comment Share on other sites More sharing options...
ibrahim.baradji Posted May 8, 2017 Author Share Posted May 8, 2017 Is this working with community edition ? 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