Themes missing when deploying to Tomcat [message #878662] |
Tue, 29 May 2012 17:11 |
Ian Donaldson Messages: 3 Registered: May 2012 |
Junior Member |
|
|
We have three distinct report themes defined with in a library, they all consist of header colors, text justification, text color, data sources, etc. We apply a theme to a report and the changes show up in the BIRT Web Viewer within Eclipse, but when we deploy our application that uses the BIRT viewer to Tomcat, the themes are no longer displayed.
We also have four data sources defined within the library that all the reports use, and those stay put after the deployment, it is just the CSS coming over that is ignored or dropped.
I have searched and searched for this, and the only thing I've found was an issue on stackoverflow from 2008ish.
Any thoughts, or suggestions?
Thanks,
Ian
Eclipse Indigo SR2
BIRT 3.7.1
Tomcat v6.0
|
|
|
|
Re: Themes missing when deploying to Tomcat [message #878796 is a reply to message #878674] |
Wed, 30 May 2012 00:24 |
|
I just tried this with Tomcat 6.0.20 and BIRT 3.7.1 and it worked for
me. I did not set the resource folder, I just put the rptlibrary and
rptdesign in the same directory. Attached is the report I used and it
works on the sample db.
Jason
On 5/29/2012 1:50 PM, Ian Donaldson wrote:
> Ran a report in both the Web Viewer within Eclipse, and the Web Viewer
> within our flex application and compared the html source code.
>
> The only difference is the Eclipse Web Viewer has
>
> Constants.request.isDesigner = true;
>
> and the deployed version has the same Constant set as
>
> Constants.request.isDesigner = false;
-
Attachment: mytheme.zip
(Size: 2.81KB, Downloaded 136 times)
|
|
|
Re: Themes missing when deploying to Tomcat [message #879132 is a reply to message #878796] |
Wed, 30 May 2012 15:18 |
Ian Donaldson Messages: 3 Registered: May 2012 |
Junior Member |
|
|
Jason,
I downloaded those files, and added them to our application. The theme works as long as the report and report library are in the same directory. The problem I am facing with that is I have roughly 85 reports, and they are broken down into the various departments they belong too. The report library is in the root "reports" directory, with all the reports falling into sub directories. How can we reference this?
Currently we have it set to
<property name="theme">mytheme.mytheme</property>
<property name="iconFile">/templates/blank_report.gif</property>
<property name="bidiLayoutOrientation">ltr</property>
<property name="imageDPI">96</property>
<list-property name="libraries">
<structure>
<property name="fileName">WebContent/reports/mytheme.rptlibrary</property>
<property name="namespace">mytheme</property>
</structure>
</list-property>
The reports directory looks like:
Reports
----College 1
----College 2
----College 3
-------AccountsReceivable
-------Finance
-------StudentInformation
***********report.rptdesign
----mytheme.rptlibrary
Ideally I would only have one rptlibrary, and be able to reference it from within any sub directory. Is this possible?
[Updated on: Wed, 30 May 2012 15:24] Report message to a moderator
|
|
|
Re: Themes missing when deploying to Tomcat [message #879319 is a reply to message #879132] |
Thu, 31 May 2012 00:58 |
|
Ian
The best way to do this is to set a resource folder in your designer and
put your libs in it. When you items form the library they will be
relative to the resource folder like:
<list-property name="libraries">
<structure>
<property name="fileName">mytheme.rptlibrary</property>
<property name="namespace">mytheme</property>
</structure>
</list-property>
Then in the web.xml of the viewer set the resource folder relative to
the context. For example if I create a folder in my top level of the
viewer name resourcefolder I would then set this in the web.xml
<context-param>
<param-name>BIRT_RESOURCE_PATH</param-name>
<param-value>resourcefolder</param-value>
</context-param>
Jason
On 5/30/2012 11:18 AM, Ian Donaldson wrote:
> Jason,
> I downloaded those files, and added them to our application. The theme
> works as long as the report and report library are in the same
> directory. The problem I am facing with that is I have roughly 85
> reports, and they are broken down into the various departments they
> belong too. The report library is in the root "reports" directory, with
> all the reports falling into sub directories. How can we reference this?
> Currently we have it set to
>
> <property name="theme">mytheme.mytheme</property>
> <property name="iconFile">/templates/blank_report.gif</property>
> <property name="bidiLayoutOrientation">ltr</property>
> <property name="imageDPI">96</property>
> <list-property name="libraries">
> <structure>
> <property name="fileName">WebContent/reports/mytheme.rptlibrary</property>
> <property name="namespace">mytheme</property>
> </structure>
> </list-property>
>
>
> The reports directory looks like:
>
> Reports
> -College 1
> -College 2
> -College 3
> -AccountsReceivable
> -Finance
> -StudentInformation
> *report.rptdesign
>
> -mytheme.rptlibrary
>
>
> Ideally I would only have one rptlibrary, and be able to reference it
> from within any sub directory. Is this possible?
|
|
|
Powered by
FUDForum. Page generated in 0.03623 seconds