Adding a Redirect Page for instance when OBIEE Presentation Service Is Down

Similar steps can be implemented on Unix

  1. Create a working folder called work in C: Create 2 sub-folders under it called ear_extract and war_extract.
  2. Copied analytics.ear from MW_HOME\Oracle_BI1\bifoundation\jee to c:\work.
  3. Run the command from c:\work\ear_extract folder – MW_HOME\Oracle_BI1\jdk\bin\jar -xvf MW_HOME\Oracle_BI1\bifoundation\jee\analytics.ear
  4. Run the command from c:\work\war_extract folder – MW_HOME\Oracle_BI1\jdk\bin\jar -xvf c:\work\ear_extract\analytics.war
  5. Add the following lines (error-page sections) to the web.xml in the working directory C:\work\war_extract\WEB-INF folder after </welcome-file-list> section –
  6. <error-page>
    <error-code>500</error-code>
    <location>/maintenence.jsp</location>
    </error-page>
    <error-page>
    <error-code>404</error-code>
    <location>/maintenence.jsp</location>
    </error-page>
  7. Create a maintenance.jsp & copy to MW_HOME\Oracle_BI1\bifoundation\web\appv2 folder AND to c:\work\war_extract folder
    The maintenance.jsp is the custom html or jsp page to be displayed instead of the generic 500 or 404 error when OPMN or PresentationServices are down.
  8. To rebuild the war and ear files – Run the following command in c:\work\war_extract folder:
    MW_HOME\Oracle_BI1\jdk\bin\jar cvf ..\ear_extract\analytics.war *
    The new analytics.war file is now created in c:\work\ear_extract folder
  9. Run the following command in c:\work\ear_extract folder:
    MW_HOME\Oracle_BI1\jdk\bin\jar cvf ..\analytics.ear *
    The new analytics.ear is created in c:\work folder
  10. Copy the new analytics.ear file from c:\work folder TO MW_HOME\Oracle_BI1\bifoundation\jee.
  11. Deploy it following KM – OBIEE 11g: How To Re-deploy the Analytics.ear File (Doc ID 1459445.1)
  12. Stop the Presentation Service. Now when hitting http://<server&gt;:9704/analytics, the custom html or jsp page should be displayed instead of the generic error page.
Advertisements