analytics

Thursday, March 24, 2011

Changing default port of IBM Websphere

About a month back, I wrote how to deploy Cognos 10.1 on Websphere. However, I missed an important setting in it. Though logically, IBM Websphere detects and uses a free port for its application server, I didn't point out flexibility of changing it.

Users had to change the port in their IBM Cognos configuration, as mentioned in step 4 of preparing Cognos 10.1. Let me now show you how to configure IBM Websphere on a port that you want Cognos 10.1 to run.

1. Launch admin console of IBM Websphere.

2. Click on Application Servers, under Servers in the left side pane. You'll see server1, your Node and your version in right pane.

3. Click on server1, you'll  a lot of properties related to your IBM Websphere profile. Under Communications, expand Ports.


4. Clicking on Ports, will lead you to a page where you can modify ports used by IBM Websphere.

5. Click on WC_defaulthost to change it. It'll open up a new page, where you can change it. Since, Cognos by default uses port 9300, let's input that in here. Click on OK to apply changes.

6. If any of your applications running on your IBM Websphere is currently using the old WC_defaulthost port, it'll throw up something like this. You don't need to worry. Just click on save changes. Stop your applications. Modify ports in those applications and upgrade applications.

If no application was running, click on save and restart IBM Websphere server profile to apply the changes. For deploying Cognos, the steps remain the same.



If you face any problems or would like to discuss more on this, please leave a comment.

Monday, February 7, 2011

Deploying IBM Cognos 10.1 on IBM Websphere 6.1

Prerequisites:


1. IBM Cognos 10.1 installation.
2. IBM Websphere 6.1 installation.


Preparing IBM Websphere

1. After you have installed IBM Websphere, a profile is created by default.
2. It is recommended that you create a new profile for Cognos.
3. Launch “Profile Management Tool” from IBM Websphere installation.


4. Click Next

5. Select “Application Server” and click “Next”.


6. Choose “Typical Profile Creation” and click on “Next”

7. If you want to enable administrative security, provide a username and password.

8. Review the profile settings, also note down the HTTP transport port from here (this would be used in configuring Congos). Click on “create” to to finish.

9. Your profile would be created in few minutes. Window would be like this


 

10. When complete, it'll ask you to launch “first steps console”. Click on finish to launch that.

11. In first steps console, click on “start server” to start your server. Administrative console can only be launched after the server has started. Alternatively, you can start server by

12. While starting a server, screen would look like this



13. On successful start of server, the above window closes automatically. Then launch administrative console by


14. Administrative console would look like this. Provide credentials which were used while creating profile to login.

15Welcome page of IBM Websphere would look like this.

16. On the left hand side, expand “servers” then click on “application servers”. You'll see “server1” in the right pane

17. Click on “server1”. You'll see a lot of configuration settings.


18. Under “Server Infrastructure”, navigate to “Java and Process Management” → “Process Definition”.

19. Under “Additional Properties”, click on “Java Virtual Machine” to set JVM parameters for Cognos.


20. Set Initial and Max heap sizes for JVM. Click on OK to finish.

21. Now, under “Java Virtual Machine”, click on “Environment Entries”.

22. Click on New to create a new environment variable.



23. Give name as “PATH” and value as “<your Cognos 10 installation>\bin”. Click on OK. 


24. Click on “Save” to save your changes to configuration.







Preparing Cognos 10.1

1. Copy “bcprov-jdk14-134.jar” from
 <%Cognos 10 Installation%>\bin\jre\6.0\lib\ext to <%IBM Websphere%>AppServer\java\jre\lib\ext.

2. Create an environment variable “JAVA_HOME” with value
<%IBM Websphere%>AppServer\Java\jre.

3. Launch Cognos 10.1 Configuration.
4. Using the port number identified in step 9 of “preparing IBM Websphere”. In our case it's 9081. Modify the port numbers in URI of dispatcher and content manager


5. Don't forget to modify port in Portal Services.

6. Delete Cognos Tomcat Service Configuration under IBM Cognos Services.
7.  Save Cognos Configuration.



8. In menu, go to Actions-> Build Application Files.

9. By default, IBM Cognos is selected and Application Server Type is Websphere. No need to change, click on Next.

10. Again, by default EAR file is selected. Change location path where .ear file would be generated, if required.


11. After finishing, 'p2pd.ear' file would be generated in your <%Cognos 10 Installation%>.



Integrating Cognos 10.1 with Websphere.

1. Launch Websphere Administrative Console. Provide credentials and login.
2. On left hand side, expand “Applications”, click on “Install new application” and browse and select 'p2pd.ear' that was build in earlier steps. No need to provide any information in context root. Click next.


3. Continue with default settings. Click next.


4. On next page, select the check-box before IBM Cognos. And click on next.



5. Again on next page, select the IBM Cognos module. And click next.



6. On summary page, click finish to complete deployment.


7. After you click finish, Websphere will install the application for you. Your page would look like this. Click on save to save the changes. Restart Websphere to start Cognos.