2006 IR Open Dicussion Posted August 27, 2006 Share Posted August 27, 2006 By: MadMax - motogod Scriptlet not found solution 2006-04-06 02:12 there is no need to write a classloader for loading a scriptlet as suggested in some of the posts in this forum ... i created a seperate jar file containing all the scriptlets .. included the jar file in the manifest classpath of the actual jasper helper ejb ... so the jrxml .. the report generator script and the scriptlet can be deployed as different components .. Link to comment Share on other sites More sharing options...
johnokrasa Posted November 11, 2009 Share Posted November 11, 2009 not sure what u mean "included the jar file in the manifest classpath of the actual jasper helper ejb " I'm using netBeans... I'm trying hard to get this chart.jrxml to be compiled. It can't find the scriptlet class in full path "org.springframework.webflow.samples.jasper.JFreeChartScriptlet" or anything I can think of trying as in jrxml... <?xml version="1.0" encoding="UTF-8"?><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="chart" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" scriptletClass="org.springframework.webflow.samples.jasper.JFreeChartScriptlet"> <parameter name="pieDS" class="org.jfree.data.general.DefaultPieDataset" isForPrompting="false"/> <field name="name" class="java.lang.String"/> <field name="value" class="java.lang.Double"/> <variable name="chart1" class="net.sf.jasperreports.engine.JRRenderable"/> <background> <band splitType="Stretch"/> </background> <title> <band splitType="Stretch"/> </title> <pageHeader> <band splitType="Stretch"/> </pageHeader> <columnHeader> <band splitType="Stretch"/> </columnHeader> <detail> <band height="207" splitType="Stretch"> <image scaleImage="Clip" hAlign="Center" vAlign="Middle" isLazy="true"> <reportElement key="chart1" mode="Transparent" x="0" y="15" width="327" height="175"/> <imageExpression class="net.sf.jasperreports.engine.JRRenderable"><![CDATA[$V{chart1}]]></imageExpression> </image> </band> </detail> <columnFooter> <band splitType="Stretch"/> </columnFooter> <pageFooter> <band splitType="Stretch"/> </pageFooter> <summary> <band splitType="Stretch"/> </summary></jasperReport> tried everything towards including the class (add folder to nbeans project libs, add class as jar to nbeans project libs) nothing works. Is there some system enviroment to be set such as %JASPER_HOME% or something to set as jasper.compile.path or ??? Please Help! 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