Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Themes missing when deploying to Tomcat(Theme's are not being shown when deploying to Tomcat 6.0)
icon4.gif  Themes missing when deploying to Tomcat [message #878662] Tue, 29 May 2012 17:11 Go to next message
Ian Donaldson is currently offline Ian DonaldsonFriend
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 #878674 is a reply to message #878662] Tue, 29 May 2012 17:50 Go to previous messageGo to next message
Ian Donaldson is currently offline Ian DonaldsonFriend
Messages: 3
Registered: May 2012
Junior Member
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;
Re: Themes missing when deploying to Tomcat [message #878796 is a reply to message #878674] Wed, 30 May 2012 00:24 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 Go to previous messageGo to next message
Ian Donaldson is currently offline Ian DonaldsonFriend
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 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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?
Previous Topic:Facing an issue while adding a New iServer Profile
Next Topic:Question on BIRT 3.7.2 export PDF
Goto Forum:
  


Current Time: Fri Apr 26 23:03:16 GMT 2024

Powered by FUDForum. Page generated in 0.03185 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top