WAR-file deployment / how to access reportdesignfiles

Sandro
edited February 11, 2022 in Analytics #1
Hello<br />
<br />
I have problem when I try do deploy my reporting application in a WAR-file on a TomCat-server.<br />
<br />
If I deploy my application in a WAR-file the method<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>design = birtReportEngine.openReportDesign(sc.getRealPath("/Reports") + "/" + reportName);</pre>
<br />
Thows an exception that says:<br />
<br />
30 Okt 2009 08:58:43,437 ERROR org.eclipse.birt.report.engine.api.EngineException: The design file null/anfragen_1.rptdesign can not be found. [http-8080-Processor20]<br />
<br />
<br />
But if I extract the WAR-File and deploy the files “normal” everything works fine.<br />
<br />
Until now I haven’t found an solution for this problem.<br />
<br />
My Reports are in the WAR-File in a folder named “Reports”.<br />
<br />
I have set BIRTHome to “” like I read it that you should do this for deploying BIRT in a WAR-file.<br />
<br />
Can anybody tell me how I can access the Reports in de WAR-file when I deploy my application this way?<br />
<br />
Greetings

Comments