IBM Rational
ClearQuest Report Launcher
1.1 Who should consider this solution?
3 Deploying the ClearQuest Report Launcher
3.1 Installing the ClearQuest Report Launcher
3.2 Configuring the ClearQuest Report Launcher
4 Deploying the BIRT server runtime
4.1 Choosing a BIRT runtime version
4.2 Downloading the BIRT runtime archive
4.3 Creating the BIRT enterprise archive file
4.4 Installing BIRT enterprise archive
4.5 Configuring BIRT in WebSphere Application Server
4.6 Configuring the ClearQuest Reporting Driver
5 Deploying the Crystal Reports server runtime
6 Using the ClearQuest Report Launcher
6.2 Navigating directly to a subdirectory
7 BIRT report design considerations
7.1.1 Create BIRT parameters for UserId and Password
7.1.2 Update the ClearQuest Query Data Source to use
parameters
7.1.3 Verify report launcher parameter names
7.1.4 Clear user and password settings
8 BIRT Report Viewer customizations
9 Sharing reports on the server
9.2 File Transfer Protocol (FTP)
9.3 Source Configuration Management System
12 Known problems and limitations
12.1 BIRT Version mismatch using Firefox 3.0
12.2 Issues with BIRT drill through reports
12.3 There is no report design object available
12.4 Cannot find or process the
com.ibm.rational.clearquest.oda.jdbc.dataSource
12.5 CRVAP0049E Cannot instantiate protocol provider:
cqjniproxy (Not found in java.library.path)
The
The report launcher includes adapters to support server
invocation of BIRT reports and
For a Crystal Reports runtime target, the Report Server for
Crystal Reports must be installed and configured using the instructions in the
For a BIRT server environment, follow the BIRT configuration instructions to install the BIRT server runtime.
Before deploying the IBM Rational ClearQuest Report Launcher, please view the license agreement in the directory /ReportLauncher/license. Click here to open the English version of the license.
This section provides instructions for installing and configuring the report launcher on the WebSphere Application Server.
The instructions in the sections that follow assume a WebSphere Application Server is already installed. Installation of ClearQuest server components automatically installs the WebSphere Application Server.
Unzip the cqrlauncher.zip archive to a temporary directory. This will create a base directory named ReportLauncher. After unzipping the archive, use the WebSphere Integrated Solutions Console to deploy the required web applications.
The report launcher download includes an enterprise archive file named cqreportlauncher.ear which must be deployed to the application server. Follow the steps below to use the WebSphere Integrated Solutions Console for installing the report launcher.
1. From a browser, access the web page: http://server_host:12060/ibm/console/login.do
2. Select
Applications ->
3. Click Install button
4. From Preparing for the application installation page, click the Browse button and navigate to the directory where the report launcher is extracted.
5. Select the file cqreportlauncher.ear
6. Click the Next button
7. From Select installation options page, click Next
8. From Map modules to servers, select ClearQuest Report Launcher
9. Click Next
10. From Summary page click Finish
11. After successful deployment, click the Save link to save changes to the master configuration.
Configuration of the Report Launcher is customized using a configuration file named
reportlauncher.properties. From a command prompt, use the command below to navigate to the configuration directory.
Windows:
cd "%RATIONAL_COMMON%\CM\profiles\cmProfile\installedApps\dfltCell\RationalClearQuestReportLauncher.ear\CQReportLauncher.war\WEB-INF\classes
UNIX or Linux:
cd
/opt/rational/common/CM/profiles/installedApps/dfltCell/RationalClearQuestReportLauncher.ear/CQReportLauncher.war/
After navigating to the target directory, use the instructions below to update the report launcher configuration.
1. Using an editor, open the file reportlauncher.properties
2. Change the entry reports.launcher.baseDirectory to point to one or more base directories where reports are stored. The report launcher can navigate to the subdirectories of the base directory. Multiple base directory definitions are separated using a semicolon.
3.
If you plan to use a BIRT version that is higher than
2.3.1, you must also enable the setting shown below:
reports.launcher.birt.reportPathPrefix=file:///
4. For most cases, the other configuration properties should not require modification. Read the comments in the reportlauncher.properties file to determine if additional property modifications are needed.
5. Save the updated reportlauncher.properties.
6. If the report launcher web application is started, it must be stopped and restarted to capture configuration changes.
The report launcher builds the appropriate URL to invoke a BIRT report; however, the BIRT runtime for report execution must be separately installed. This section provides the steps necessary for acquiring the BIRT runtime and installing on a WebSphere Application Server.
Report launcher verification was performed using BIRT versions 2.3.1, 2.3.2.2, and 2.5.1. Before deciding on a BIRT version, please view Known Problems and Limitations.
Download the Runtime archive which is suitable for usage with Java/J2EE applications.
http://www.eclipse.org/birt/phoenix/
Extract the contents of the archive to a temporary directory.
1. Copy
the file birt.war from the BIRT
runtime archive to the ReportLauncher/birt subdirectory of the extracted
2. Open a Command Prompt, and navigate to the ReportLauncher/birt directory.
3. Create
the BIRT enterprise archive file required for WebSphere installation. The instruction below creates a file named birt.ear
that contains the birt.war server runtime.
jar
-cvf birt.ear
NOTE: The “jar” command required for step #3 is only available for users that have a Java JDK installed on their system. If the “jar” command is not available on the target system, an alternative archive tool can be used to build the birt.ear. For example:
zip –r birt.ear ./
See http://wiki.eclipse.org/Birt_WebSphere_Deployment for additional information about creating the BIRT ear file.
This section describes the steps for deploying the BIRT enterprise archive file to the WebSphere Application Server.
1. From a browser, access the web page: http://server_host:12060/ibm/console/login.do
2.
Select Applications
->
3. Click Install button
4. From Preparing for the application installation page, click the Browse button and navigate to the directory where the BIRT enterprise archive file was created.
5. Select the file birt.ear
6. Click the Next button
7. From Select installation options page, click Next
8. From Map modules to servers, select Eclipse BIRT Report Viewer
9. Click Next
10. From Map virtual hosts for Web modules page, select Eclipse BIRT Report Viewer, and click Next
11. From Summary page, review settings and click Finish
12. After successful deployment, click the Save link to save changes to the master configuration.
After installing BIRT on the application server, several configuration settings must be changed. Follow the instructions below to complete the configuration.
1. From a web browser, navigate to the WebSphere Integrated Solutions Console URL http:// server_host:12060/ibm/console/login.do
2. Select
Applications ->
3. Select the link labeled “BIRT Application”. This opens a Configuration tab to allow customization of BIRT settings.
4. From the Detail Properties section, select Class loading and update detection
5. For Polling interval for updated files, supply an integer value (ie. 60)
6. For Class loader order, select Classes loaded with application class loader first
7. For WAR class loader policy, select Single class loader for application
8. Click OK to save the updated settings
9. Click Save link to save the settings back to the master configuration
When using BIRT version 2.3.2 or higher, you must update the BIRT web.xml using the instructions below. See Known Problems and Limitations for information about this change.
1.
Edit the BIRT web.xml file at the path below <profileName>/installedApps/dfltCell/birtEAR.ear/birt.war/WEB-INF/web.xml
2.
Change
the setting of the parameter WORKING_FOLDER_ACCESS_ONLY
from true to false as shown below
<context-param>
<param-name>WORKING_FOLDER_ACCESS_ONLY</param-name>
<param-value>false</param-value>
</context-param>
3.
Save
the file
For additional information on BIRT deployment, see http://wiki.eclipse.org/BIRT/FAQ/Deployment.
To run BIRT reports that require the ClearQuest Reporting Driver, you must copy the Eclipse plugins for the ClearQuest Reporting Driver to the appropriate directory of the BIRT web application. The plugins for the ClearQuest Reporting Driver are:
com.ibm.rational.clearquest.core.lib
com.ibm.rational.clearquest.jdbc
com.ibm.rational.clearquest.jdbc.nl1
com.ibm.rational.clearquest.oda.jdbc
com.ibm.rational.clearquest.oda.jdbc.nl1
com.ibm.rational.stp
If the Rational ClearQuest Client component is installed on the server machine, the required plugins can be copied from the shared Installation Manager directory:
Windows:
\Program Files\
UNIX or Linux:
/opt/ibm/IMShared/plugins
Otherwise, the plugins can be downloaded from the /plugins directory of your Installation Manager repository.
The ClearQuest Reporting Driver plugins must be copied to the BIRT server directory shown below.
Windows:
\Program Files\
UNIX or Linux:
/opt/rational/common/CM/profiles/cmprofile/installedApps/dfltCell/<BIRT
ear>/birt.war/
After the driver plugins are copied, restart the BIRT application to activate the changes. This can be done using the WebSphere Integrated Solutions Console (http://server_host:12060/ibm/console/login.do)
.
The Crystal Reports adapter of the report launcher uses the ClearQuest Report Server for Crystal Reports as the launch target for data-pull reports created with Crystal Reports. Instructions for configuring the Report Server for Crystal Reports can be found at https://publib.boulder.ibm.com/infocenter/cqhelp/v7r1m0/topic/com.ibm.rational.clearquest.webadmin.doc/topics/t_rpt_rs4crystal_config.htm.
The report launcher is invoked from a web browser, using a URL of the form below:
http://server_host:12080/cqreportlauncher/ReportLauncherMain.jsp
The user interface for the report launcher is intentionally very lightweight and simple. The left navigation pane displays a collection of folders and reports available on the server file system. Clicking a folder link drills down into the selected folder, and clicking a report causes the report to be launched on the server and rendered in the right browser pane.
The Set credentials link of the report launcher allows the user to specify credentials that are stored and passed when launching reports. When user credentials are saved, the name of the user is displayed in the upper left portion of the page. Use the Clear credentials link to remove the saved credentials.
Crystal Reports and BIRT both provide a mechanism for passing user credentials to be used during report execution. If no credentials are provided during report launch, Crystal Reports automatically prompts for the user credentials of the target data source. BIRT reports can also be designed to prompt for user credential information, but special steps must be completed when creating the report design. See BIRT report design considerations for information.
You can navigate directly to the report launcher credentials page using a URL like the one below.
http://server_host:12080/cqreportlauncher/ReportLauncherCredentials.jsp
For report launcher installations that include deeply nested subdirectories, you may wish to navigate directly to a specific path rather than drill down to the target subdirectory. This can be accomplished by specifying a dir parameter in the report launcher URL string. The value of the dir parameter is the relative path for the desired file location. For example:
Special steps are needed if you want to build BIRT reports that allow user credentials to be passed or entered at runtime. This section describes how to define ClearQuest data sources in BIRT that allow for user and password information to be passed as invocation parameters by the report launcher at runtime.
NOTE: Password
information is not automatically encrypted when passing parameters to BIRT
reports on the report server. It is
strongly recommended that BIRT and the Report Launcher be deployed using a
secure connection (https). Instructions
for configuring secure sockets for ClearQuest web components can be found in
the
To enable passing of credentials to a BIRT report, perform the following steps:
1. Open the target report
2. Select the Data Explorer tab
3. Select Report Parameters
4. Right-click, and select New Parameter
5. Enter the name for the parameter (ie. “UserId”)
6. Customize the parameter as desired. Most settings effect how the parameter is displayed by the BIRT parameter prompter.
7. When finished, click OK
8. Repeat the steps above to define the “Password” parameter.
1. Select the target ClearQuest data source
2. Right-click and select Edit
3. From the Edit Data Source dialog, select Property Binding
4. For User Name, click the button to the right of the text box
5. From Expression Builder Category list, select Report Parameters
6. From the Sub-Category list, select ---All---
7. Double-click the UserId item to create the parameter expression
8. Click OK to save the parameter retrieval code
9. For Password, click the button to the right of the text box
10. From Expression Builder Category list, select Report Parameters
11. From the Sub-Category list, select ---All---
12. Double-click the Password item to create the parameter expression
13. Click OK to save the parameter retrieval code
The names for the UserId and Password parameters can be changed in the BIRT report, but the values must match the settings in the report launcher configuration file. If your reports use different parameter names for the UserId and Password parameters, update the report launcher configuration file to specify the correct names for the properties below. See Configuring the ClearQuest Report Launcher.
reports.launcher.birt.userParameterName=UserId
reports.launcher.birt.passwordParameterName=Password
If the user and password parameter values are not saved in the report or passed by the report launcher, BIRT will prompt for the values prior to running the report.
When creating a data source for a BIRT report, the BIRT report designer saves the user name and an encrypted representation of the password in the report design (rptdesign) file. If you want to require each user to specify their ClearQuest credentials at runtime, you must clear the user name and password settings in the report design before copying the report design file to the report launcher directory structure. To remove the credentials, do the following:
The BIRT report samples included with the
Windows:
\Program Files\
UNIX or Linux:
/opt/ibm/IMShared/plugins/com.ibm.rational.clearquest.report.samples_7.x.x/BIRT
The UserId and Password parameters are defined in a reusable BIRT report library called CQSamples.rptlibrary.
The generated launch URL for the BIRT Report Viewer can be customized by changing the reports.launcher.birt.serverPath setting in the reportlauncher.properties file.
For example, to suppress the display of the report viewer toolbar, update the setting as shown below:
reports.launcher.birt.serverPath=/birt/frameset?__report=%reportPath&__title=%title& __toolbar=false
For a description of other viewer settings, see http://www.eclipse.org/birt/phoenix/deploy/viewerUsage2.2.php
The ClearQuest Report Launcher does not provide a mechanism for uploading reports to the report server. However, report files can be shared using basic facilities that already exist in most organizations. This section offers a few simple ideas for surfacing report files that can be launched using the report launcher.
One simple way to make reports visible in the report launcher is to store report files on a shared drive that is accessible by the report launcher server and by client computers that are used to create and share reports. Access to the shared drive can be restricted using the built-in capabilities of the operating system.
The File Transfer Protocol is another commonly available mechanism that can be used to transport report files from a client machine to the report launcher server. FTP server security is managed by the FTP software.
Report files that are accessible from the report launcher server
machine can be made visible to the report launcher. Using a source configuration management (
Report parameters and user credentials are not automatically
encrypted when using the report launcher.
It is strongly recommended that the report launcher be deployed using a
secure connection (https). Instructions
for configuring secure sockets for ClearQuest web components can be found in
the
The report launcher does not restrict visibility to report files that are hosted in a configured report launcher directory. A user with access to the report launcher server can browse the list of reports that exist in the report launcher directories for that server. However, in order to run a report that uses the ClearQuest Reporting Driver, the user must be authorized to run the ClearQuest queries used by the report. For example, if the user named ‘user’ attempts to run a report that requires access to a query in the Personal Queries folder of the user ‘admin’, an error like the one below occurs during report execution:
Cannot get the
result set metadata. SQL statement does not return a ResultSet object. SQL
error #1: CRVAP0237E Resource 'cq.query:Personal Queries/All
Defects@7.0.0/SAMPL': not found.
ClearQuest access
control capability can be used to restrict access to report data so that
reports which consume restricted queries can only be run by those who have
access to those queries.
BIRT Report Viewer versions prior to version 2.3 may display a “Version mismatch” error for reports launched with a Firefox 3.0 browser. Information about this problem can be found at http://www.birt-exchange.org/forum/deploying-integrating-birt-report-engine-applications/11073-version-mismatch-firefox-3-a.html
There are some general issues with drill-through for BIRT 2.3.2.x and 2.5.x. See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=282961
Error: “There is no report design object available” occurs when attempting to launch a report or drill through to a subreport using BIRT 2.3.2 or higher. For a discussion of this issue, see:
http://www.eclipse.org/forums/index.php?t=msg&goto=367339&S=164ca6c5cc1ce4c34abcf0e29c563893
Workaround/solution:
1.
Edit the report launcher configuration file reportlauncher.properties
2. Verify
the setting below is specified:
reports.launcher.birt.reportPathPrefix=file:///
3.
Save
the file
4.
Edit the BIRT file <profileName>/installedApps/dfltCell/birtEAR.ear/birt.war/WEB-INF/web.xml
5.
Change
the setting of the parameter WORKING_FOLDER_ACCESS_ONLY
from true to false as shown below
6.
Save
the file
7.
Restart
the server to activate the changes
<context-param>
<param-name>WORKING_FOLDER_ACCESS_ONLY</param-name>
<param-value>false</param-value>
</context-param>
org.eclipse.birt.report.engine.api.EngineException: An exception occurred during processing. Please see the following message for details: Cannot find or process the com.ibm.rational.clearquest.oda.jdbc.dataSource driver's data source extension configuration. com.ibm.rational.clearquest.oda.jdbc.dataSource
The ClearQuest Reporting Driver is not properly deployed to the BIRT server runtime application. See Configuring the ClearQuest Reporting Driver for driver deployment information.
This error occurs when two different web applications
attempt to access ClearQuest using the JNI adapter of the Change Management
API. For example, if both BIRT and the
ClearQuest Report Server for Crystal Reports are deployed to the same web
server, only one of the server applications can run reports that use a Change
Management API JNI data source. This
problem does not occur for reports that use a Change Management Server data
source. See the