silvi Posted February 9, 2012 Share Posted February 9, 2012 Hello all, I have a report with parameters using customized class. Report is working fine in i-report and jasper server reporsitory plugin too. I have added my .jar file that contains the class in "Add resources" section of server. But when I am running its throwing me an error saying "Error evaluating expression $P{dateUtils}.getEndDate( $P{DateChoice}, $P{Time_Interval}, $P{InputDate})". In the parameter I have specified the class which is com.redhat.eng.JasperDateUtils.<parameter name="dateUtils" class="com.redhat.eng.JasperDateUtils" isForPrompting="false"> <defaultValueExpression><![CDATA[com.redhat.eng.JasperDateUtils.getInstance()]]></defaultValueExpression> </parameter> <parameter name="endDate" class="java.util.Date" isForPrompting="false"> <defaultValueExpression><![CDATA[$P{dateUtils}.getEndDate( $P{DateChoice}, $P{Time_Interval}, $P{InputDate})]]></defaultValueExpression> </parameter>I am wondering why is it not working in japser server. Most probably, it is not able to get the classpath. Please help... Link to comment Share on other sites More sharing options...
silvi Posted February 10, 2012 Author Share Posted February 10, 2012 Please, can someone tell me, how can we specify the class path on server ??? I did lot of reading and surfing but have not found anything. 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