Saturday, April 13, 2013

How do you identify which version of WebSphere Portal Server has installed


To know the current installed version of WPS please perform below steps

1.      Go to  /web/IBM/WebSphere/PortalServer/bin/

2.      Run below command

-bash-3.2$ ./WPVersionInfo.sh


WVER0010I: Copyright IBM Corporation 2002, 2010; All rights reserved.

WVER0011I: WebSphere Portal

WVER0012I: VersionInfo reporter version 1.10.1.1, dated 20121128_1700

--------------------------------------------------------------------------------

IBM WebSphere Portal Product Installation Status Report
            --------------------------------------------------------------------------------

Report at date and time 2013-04-13T13:47:07-06:00

Installation
            --------------------------------------------------------------------------------

Product Directory   /web/IBM/WebSphere/PortalServer

 Installation Platform
            --------------------------------------------------------------------------------

Name           IBM WebSphere Portal

Version        7.0

Installed Product
           --------------------------------------------------------------------------------

Name           IBM WebSphere Portal MultiPlatform

Version        7.0.0.2

ID             MP

Build Level    wp7002CF19_001_13 2012-11-29

Build Date     11/29/2012

Installed Product
            --------------------------------------------------------------------------------

Name           IBM WebSphere Portal Configuration Framework

Version        7.0.0.2

ID             CFGFW

Build Level    wp7002CF19_001_13 2012-11-29

Build Date     11/29/2012

Installed Product
            --------------------------------------------------------------------------------

Name           IBM Lotus Web Content Management

Version        7.0.0.2

ID             WCM

Build Level    wp7002CF19_001_13 (70x.CF36.3)

Build Date     11/29/2012
           --------------------------------------------------------------------------------

End Installation Status Report

---------------------------------------------------------------------------------

How do you identify whether the installed WebSphere Application Server is a 32 bit or a 64 bit


To know the current installed version of WAS please perform below steps. It will display whether the installed WAS version is 32 bit or 64 bit.

1.      Go to /web/IBM/WebSphere/AppServer/bin

2.      Run below command

-bash-3.2$ ./versionInfo.sh


WVER0010I: Copyright (c) IBM Corporation 2002, 2005, 2008; All rights reserved.

WVER0012I: VersionInfo reporter version 1.15.5.1, dated 6/15/11

--------------------------------------------------------------------------------

IBM WebSphere Application Server Product Installation Status Report

--------------------------------------------------------------------------------
 
Report at date and time April 13, 2013 1:40:44 PM MDT

Installation

--------------------------------------------------------------------------------

Product Directory        /web/IBM/WebSphere/AppServer

Product List

--------------------------------------------------------------------------------

ND                       installed

Installed Product

--------------------------------------------------------------------------------

Name                     IBM WebSphere Application Server - ND

Version                  7.0.0.25

ID                       ND

Build Level              cf251235.04

Build Date               8/30/12

Architecture             AMD (64 bit)
            --------------------------------------------------------------------------------
            End Installation Status Report
            --------------------------------------------------------------------------------

Wednesday, April 3, 2013

How to Customize Portal Login Messages


The error messages that get displayed when the user does an unsuccessful login can be customized via editing the problem.properties and problem_en.properties files within the wp.ui.jar file in “/web/IBM/WebSphere/PortalServer/ui/wp.ui/shared/app". You can set the error message of your own choice as per user requirement.

After changing the error messages, don't forgot to restart the portal server.

Enabling Developer Mode in IBM WebSphere Portal 7


One of the mistakes that developers do while working with WebSphere Portal Server is they don't use the Developer Mode for their development purpose. The result is low productivity because most of the time is consumed in starting and stopping the portal server. When portlet application is developed on your local box it is very annoying to wait for server start up taking 15 to 20 minutes. The portal server start up time can be reduced to half when you enable developer mode in WebSphere portal 7. Like version 6, IBM WPS version 7 also facilitates a developer to start the server in a Developer mode.

This is one of the best tweaks that I like to apply on my DEV environment when working on WebSphere Portal Server especially when the hardware resources are limited.

This setting will disable non-essential applications from getting started when the server starts. In case any one of these applications are required after the server has started, WebSphere will lazy load the application. From the end users view this means that the first time someone tries to render a portlet they could receive a portlet unavailable message. In the background the application will be started and the next time the user renders the portlet the application will be available. Without a lot of custom applications, enabling developer mode can improve the startup time by about 50%.
Below are the steps to enable developer mode:

1.      Stop the server

2.      Go to <portalserver_root>\wp_profile\ConfigEngine

3.      Execute the following command

ConfigEngine.bat enable-develop-mode-startup-performance
Below are the steps to disable developer mode:

1.      Stop the server

2.      Go to <portalserver_root>\wp_profile\ConfigEngine

3.      Execute the following command

ConfigEngine.bat disable-develop-mode-startup-performance

 

How to get HttpServletRequest in JSR 168/286 portlet as it doesn't extend Servlet


In doview() method, you can use the below code.

HttpServletRequest httpServletRequest = (HttpServletRequest) (com.ibm.ws.portletcontainer.portlet.PortletUtils.getHttpServletRequest(renderRequest));

Tuesday, April 2, 2013

Portal Migration

Migration is the process of reconstructing an existing IBM WebSphere Portal Server environment on to a higher version  IBM WebSphere Portal environment so that the latter is identical to the former.

Below are the artifacts which we need to take care during migration.


     ·       Themes/Skins
·         Pages
·         Screens
·         Portlet Applications
·         Access Control
·         User Customization
·         Virtual Portals
·         Markups
·         Global Settings
·         Portal Resources
·         Workplace Web Content Manager (WCM) content and components
·         Document Manager content
·         Personalization (PZN) rules
·         Credential Vault Slots

 

How to set the default authenticated or unauthenticated pages in WebSphere Portal


Below is the tech note which provides complete information about this scenario.

How to reset WebSphere Portal and WebSphere Application Server administrative passwords

Have you ever been in a situation where you have spent lot of hours in installing and configuring WebSphere Portal and WebSphere Application Server as per your project’s requirement and after some time you forgot the password that you set for both the servers.

Here is the way how you can achieve this. Very useful tech note from IBM.

http://www-01.ibm.com/support/docview.wss?rs=688&context=SSHRKX&dc=DB560&dc=DB520&uid=swg21392427&loc=en_US&cs=UTF-8&lang=en&rss=ct688websphere