Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
setResourcePath: accessing .properties file in jar
indie
Hi,<br />
<br />
<strong class='bbc'>Is there a way that BIRT is looking in a jar file for .properties files ???</strong><br />
<br />
I'm using BIRT in a webapp and <strong class='bbc'>language property files are stored in a folder together with the *.rptdesign files</strong>.<br />
<br />
So I'm setting the ResourcePath to the rptdesign directory:<br />
config.setResourcePath( /*resolved path to resource file*/ );<br />
<br />
<strong class='bbc'>Deployed locally this works great, but deployed on a server where tomcat isn't unpacking the war/jar files, BIRT isn't finding the resource file.</strong><br />
<br />
<strong class='bbc'>resource path is locally resolved to:</strong><br />
"D:/dev/workspace/myapplicaton/target/classes/com/company/application"<br />
<br />
here BIRT is finding the .properties file I declared in the *.rptdesign file.<br />
<br />
<strong class='bbc'>deployed on server</strong> (with unpackWARs="false")<strong class='bbc'> the resourcepath is correctly resolve and set to:</strong><br />
file:www/tomcat/webapps/myapplication/WEB-INF/lib/myapplication_1.2-SNAPSHOT.jar!/com/company/application/<br />
<br />
but here the content of the properties files isn't found by BIRT any more.<br />
<br />
<strong class='bbc'>It seems that it's not possible to pass a path pointing to a packed jar file to the config.setResourcePath() method ... </strong><br />
<br />
has anybody a hint how to solve that problem?<br />
<br />
Thanks in advance for your help!!!
Find more posts tagged with
Comments
Aurelien78
hi, did you manage to resolve that problem ?
I'm running an RCP application, using birt runtime, but i can't get my messages to work ...
thanks