title: iReport and external objects
body: <p>I am trying to use an external objects in my report.</p>
  
  <ol>
  <li>I added the jar file with external objects to iReport classpath (in settings)</li>
  <li>The static text (with I18n)</li>
  </ol>
  
  <pre class="lang-java prettyprint-override"><code>msg($R{pdf.invoice.finalTitle}, $P{invoice.number})
  </code></pre>
  
  <ol>
  <li>I have added such definitions into xml:</li>
  </ol>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;import value="crm.object.objects.Invoice"/&gt;
  
  &lt;parameter name="invoice" class="crm.object.objects.Invoice" isForPrompting="false"&gt;
          &lt;property name="number" value=""/&gt;
          &lt;defaultValueExpression&gt;&lt;![CDATA[]]&gt;&lt;/defaultValueExpression&gt;
  &lt;/parameter&gt;
  ...
  </code></pre>
  
  <p>But still it fails during compilation with error: <code>net.sf.jasperreports.engine.design.JRValidationException: Report design not valid :       1. Parameter not found : invoice.number</code></p>
  
  <p>What I am doing wrong?
  Thank you</p>