Configuring IBM Cognos BI with WebSphere Portal
If you are using IBM® Cognos® Business Intelligence with WebSphere® Portal, you must update the ProxyServlet_Servlet section of the web.xml file.
About this task
For complete information about configuring Business Space to work with WebSphere Portal, see "Configuring widgets to work with WebSphere Portal."
Procedure
- Export the WebSphere Portal enterprise
archive (EAR) file, wps.ear, according to your
network configuration. If you have a cluster environment, the WebSphere Portal EAR file must
be exported from the WebSphere Application
Server Network
Deployment machine.
- At a command line, change to the application_server_profile_root/bin directory.
- Run the following command to export the wps.ear file
to a temporary directory (make sure that all commands are entered
on one line):
- wsadmin.bat -user admin_user_id -password admin_password -c "$AdminApp export wps directory/wps.ear"
- ./wsadmin.sh -user admin_user_id -password admin_password -c '$AdminApp export wps directory/wps.ear'
where admin_user_id is the administrator's user ID, admin_password is the administrator's password, and directory is the temporary directory.
- Create the /wps_expanded subdirectory.
Use the EARExpander scripting tool to expand the
contents of the exported EAR file (make sure that all commands are
entered on one line).
- EARExpander.bat -ear directory\wps.ear -operationDir directory\wps_expanded -operation expand
- ./EARExpander.sh -ear directory/wps.ear -operationDir directory/wps_expanded -operation expand
- Make a backup copy of directory/wps_expanded/wps.war/WEB-INF/web.xml.
- Update directory/wps_expanded/wps.war/WEB-INF/web.xml.
- Open web.xml.
- Find the following section:
<servlet id="ProxyServlet_Servlet"> <servlet-name>ProxyServlet</servlet-name> <servlet-class>com.ibm.wps.proxy.servlet.ProxyServlet</servlet-class> </servlet>
- Replace the section with the following text:
<servlet id="ProxyServlet_Servlet"> <servlet-name>ProxyServlet</servlet-name> <servlet-class>com.ibm.wps.proxy.servlet.ProxyServlet</servlet-class> <init-param> <param-name>useCtxPathForCookies</param-name> <param-value>true</param-value> </init-param> </servlet>
- Delete the original wps.ear file from the directory where you initially exported it.
- Use the EARExpander command to collapse
the EAR file directory back into an EAR file.
- EARExpander.bat -ear directory\wps.ear -operationDir directory\wps_expanded -operation collapse
- ./EARExpander.sh -ear directory/wps.ear -operationDir directory/wps_expanded -operation collapse
- Use the wsadmin command to update the WebSphere Portal EAR file. Note: If you have a managed cell (with or without a cluster), perform this step on the deployment manager machine.
- wsadmin.bat -user admin_user_id -password admin_password -c "$AdminApp install directory/wps.ear {-update -appname wps -nodeployejb}"
- ./wsadmin.sh -user admin_user_id -password admin_password -c '$AdminApp install directory/wps.ear {-update -appname wps -nodeployejb}'
where admin_user_id is the administrator's user ID, admin_password is the administrator's password, and directory is the temporary directory.
- Restart WebSphere Portal server. In a cluster configuration, restart the cluster.
- Add the IBM Cognos BI host
name and port number to the list of trusted servers in IBM Cognos BI.
Otherwise, you will not be able to view the pages in Business Space.
- Open the IBM Cognos BI Configuration client. To open the client, run the cogconfig.bat or cogconfig.sh file located in cognos_installation_root/bin64 .
- Select Local Configuration > Security > IBM Cognos Application Firewall.
- Click the pencil icon next to Valid domains or hosts and add the IBM Cognos BI host and port number configured in the endpoint from Business Space. For example, add lc2d266009.example.com:9080. If you have multiple hosts, click Add to add more entries.
- Click OK. Click Save.
- Restart the server that is running IBM Cognos BI.
Parent topic: Configuring IBM Cognos BI
Related information: