Jump to content

Jar files on server


silvi

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...