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)
How to access a rptlibrary inside a war file?
Gnana
Hi,
I am deploying a war file(not a birt viewer) which contains my rptdesign and rptlibrary files. I have my rptdesign files in the classpath, so I am using classloader to get them as inputstream to the IReportEngine.openReportDesign() method. But I am not finding a way to locate my rptlibrary files.
I am currently using something like this to locate the library files folder and this works fine:
engineConfig.setResourcePath("C:/libraries");
I have tried the following but didnt workout:
1. Placing the rptlibrary file in "WEB-INF/resources" folder and set the engineConfig.setResourcePath("/WEB-INF/resources");
2. Placing the rptlibrary file in the same directory as the rptdesign files
Please suggest me some way to place the rptlibrary files inside the war file and access them. Please let me know if you need more info from my side.
Thanks,
Gnana
Find more posts tagged with
Comments
Virgil Dodson
Have you tried in the webcontent folder... this post mentions this at <a class='bbc_url' href='
http://www.birt-exchange.org/forum/eclipse-birt-newsgroup-mirror/9552-library-items-masterpage-relative-resource-path-setting.html'>http://www.birt-exchange.org/forum/eclipse-birt-newsgroup-mirror/9552-library-items-masterpage-relative-resource-path-setting.html</a>
;