Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Rosetta

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Rosetta
    3. Knowledge Articles
    4. Adjusting local BIRT reports after upgrading to Rosetta SP 4.1

    Adjusting local BIRT reports after upgrading to Rosetta SP 4.1

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Additional Information
    • Article Type: General
    • Product: Rosetta
    • Product Version: 4.1

    Problem Symptoms:
    After upgrading to Rosetta SP 4.1 or higher, local / customized BIRT reports give errors such as:
    ReportDesign (id = 1):
    - Unhandled exception when executing script.

    ...
    TypeError: Cannot find function getInstitutionPath. (/report/method[@name="initialize"]#2).

    Cause:
    After moving from JBoss (Rosetta 4.0.1 or earlier) to Tomcat (Rosetta 4.1 and onwards), a modification is needed to BIRT reports that are using the institution tag (and getInstitutionPath function).

    Resolution:
    Replace the method section from:
    <method name="initialize"><![CDATA[if (reportContext != null &amp;&amp; reportContext.getHttpServletRequest() != null &amp;&amp; reportContext.getHttpServletRequest().getUserPrincipal() !=null){
    params["inst"] = reportContext.getHttpServletRequest().getUserPrincipal().getInstitutionPath();
    }else {
    params["inst"] = '%';
    }]]></method>

    to the updated version:
    <method name="initialize"><![CDATA[importPackage(Packages.com.exlibris.core.infra.common.security);
    if (UserPrincipalRetriever.getInstitutionPathNoException() !=null){
    params["inst"] = UserPrincipalRetriever.getInstitutionPathNoException();
    }else {
    params["inst"] = '%';
    }]]></method>

    Additional Information

    All reports (*.rptdesign files) should be situated at $dps_dev/ system.dir/thirdparty/tomcat/rosetta-webapps/dps-report-web.war/report.

    Category: Rosetta -


    • Article last edited: 3/12/2015
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Update IE representation lock the IE and update never ends
      • Advanced Search with Solr in Rosetta failing after 3.2.2 upgrade
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Content Type
      Knowledge Article
      Language
      English
      Product
      Rosetta
    2. Tags
      1. 4.1
      2. contype:kba
      3. Prod:Rosetta
      4. Rosetta -
      5. Type:General
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved