title: JasperReports: Can't locate subreport
body: <p>It's drives me crazy.. Last hour I am trying to figure out why my report stopped to worked right after I added a subreport to it.. 
  I already checked and tried all similar issues <a href="https://stackoverflow.com/questions/10598958/jasper-sub-report-error">here</a>, <a href="http://forum.springsource.org/showthread.php?21340-Error-JasperReports-Locating-Subreport-from-Parent" rel="nofollow noreferrer">here</a> and <a href="http://community.jaspersoft.com/questions/530526/subreport-could-not-load-object-location" rel="nofollow noreferrer">here</a>.
  Without success..  Subreport is in the same directory for sure..
  The definition looks like:</p>
  
  <pre><code>&lt;subreport isUsingCache="false"&gt;
                  &lt;reportElement uuid="db816b3c-a13d-440f-a6a2-f899762e61e4" x="0" y="89" width="555" height="100"/&gt;
                  &lt;subreportParameter name="footerAddress"&gt;
                      &lt;subreportParameterExpression&gt;&lt;![CDATA[$P{footerAddress}]]&gt;&lt;/subreportParameterExpression&gt;
                  &lt;/subreportParameter&gt;
                  &lt;subreportParameter name="footerManager"&gt;
                      &lt;subreportParameterExpression&gt;&lt;![CDATA[$P{footerManager}]]&gt;&lt;/subreportParameterExpression&gt;
                  &lt;/subreportParameter&gt;
                  &lt;subreportParameter name="footerContact"&gt;
                      &lt;subreportParameterExpression&gt;&lt;![CDATA[$P{footerContact}]]&gt;&lt;/subreportParameterExpression&gt;
                  &lt;/subreportParameter&gt;
                  &lt;subreportParameter name="footerBank"&gt;
                      &lt;subreportParameterExpression&gt;&lt;![CDATA[$P{footerBank}]]&gt;&lt;/subreportParameterExpression&gt;
                  &lt;/subreportParameter&gt;
                  &lt;subreportExpression class="net.sf.jasperreports.engine.JasperReport"&gt;&lt;![CDATA[$P{SUBREPORT_DIR}]]&gt;&lt;/subreportExpression&gt;
              &lt;/subreport&gt;
  </code></pre>
  
  <p>Where $P{SUBREPORT_DIR} is <code>"/valid/path/sub.report.jasper"</code></p>
  
  <p>And I still getting an error: <code>Resource not found at /valid/path/sub.report.jasper</code></p>
  
  <p>WHY??</p>