Jar Class finder Eclipse Plugin

The Jar Class Finder is a must have eclipse plug-in for all the WebSphere developer. Every now and then we run into NoClassDefFound error, the JAR class finder utility helps in those scenarios in finding the class.

First download and install the JAR class finder eclipse plug-in in your IDE by following the instructions on the download page.

Once it is installed icon of eye will appear in your Eclipse IDE toolbar, click on that icon to get Jar Class finder dialog box. Enter name of the class and the classpath where you want to find it like this


Click on Find it will take few minutes to find the JAR file that contains the class that your looking for and list out all the .jar files that contain the class like this

Accessing Database using Eclipse/ Rational Application Developer

If your someone like me who is using Eclipse/ RAD for most of the development work and want to connect to database then you might want to consider using Database development perspective in Eclipe/RAD. The database perspective allows you to work with any database using JDBC. It is almost same in both Eclipse and RAD. I took these screen shots in Eclipse Galileo but the basics remain same in RAD.

In my case i am using Apache Derby database and i wanted to work with it. Before i do that i will have to configure the Derby driver. These are the steps that you can follow to configure and use your database


  1. In your IDE click on Windows -< Preferences and it will open preferences window. In the preferences window click on Data -< Connectivity -< Driver definitions.



  2. Click on Add and it will open New Driver Definition dialog box like this. Since i want to connect to Network version of Apache Derby 10.2, i will select it like this


  3. As you can see when we select the Derby Client JDBC Driver, it is giving an error message "Unable to locate JAR/zip in file system as specified by the driver definition: derbyclient.jar.", that is because Eclipse is not able to find the .jar file containing the database driver for Apache Derby.
  4. Switch to the Jar list tab like this, on this tab you will notice that derbyclient.jar is already added but it is not pointing to actual file on your machine so remove empty derbyclient.jar and add the derbyclient.jar on your machine like this


  5. Save your changes and it will take you back to the Driver definitions list, Since i configured only Apache Derby so far, it is listed here. If you want to connect to additional databases configure them over here.




Now once the Database driver is configured, next step is to configure Database connection follow these steps for that.

  1. Switch to Database development perspective and in the Datasource Explorer view click on New Connection Profile to get Connection Profile dialog like this


  2. On the next page configure your database connection properties such as DB Name, user id password, same properties as you will use to connect to that database using JDBC.


  3. After setting properties, click on Test Connection button to verify that your actually able to connect to database. If everything works fine click on Finish

  4. Once the connection is open you should be will get a view like this, you can use the SQL scrapbook to write one or more query and execute them against the database or you can use database explorer view to explore the database structure.



Whats new in Websphere Portal 615

Today morning i did attend the Whats new in WebSphere Portal 6.1.5 call. It was bit early for west coast time zone (7.00 AM) but it was really good.

Marshal Lamb, who is Senior technical staff member was the main speaker in this call, He talked about how IBM WebSphere Portal is used by lots of user facing internet site (Search for /wps/portal in Google and you will find quite few sites) and IBM is planning to make it easier for them to build internet facing sites using WebSphere Portal.

It seems that IBM has made lot of investment in improving IBM's Worplace web content management solution from the perspective of end user, content authors and also for companies by providing lot of pre-built templates. They added social computing by giving support for Blogs and Wikis built on top of IBM' WWCM. The integration in WWCM and portal is much more tighter now. They are also investing on newer technologies such as widgets now widgets are primary citizens in the WebSphere portal world.

In all it seems that WPS 6.1.5 is really cool and seems to have lot of features that we were waiting for. Marshal also indicated that there might be a new version of portal sometime in 2010.

I did install WPS 615 on my machine yesterday and now i am planning to try out some of the newer features

The Client side aggreagation theme works in IE 8 and Firefox 3.5

One of the major problem with the WPS 6.1 was that it ships with Dojo 1.1 and since Dojo 1.1 does not work with Internet Explorer 8 or Mozilla's Firefox 3.5, If you tried using the client side aggregation (CSA) theme it use to throw the this browser is not supported error and it use to automatically switch the theme to Server side aggregation (SSA) theme.

Starting with WPS 6.1.5 the Portal ships Dojo 1.3.2 version and as a result the CSA theme works in both Internet Explorer 8.0 and Mozilla Firefox 3.5




As you can see i am using Firefox 3.5.5 (3.6 beta) and you can see that i am using a CSA theme and portal is making call ATOM service to get parts of the theme.



This is my screen shot of Client side aggregation theme being used in Internet Explorer 8 and as you can see i dont have to switch to the compatibility mode (IE 8 has concept of compatibility mode, if the website that your accessing is not compatible with IE 8 then you can switch into compatibility mode and IE 8 will behave like IE7)

Describe the purpose for log files created during installation, maintenance, and operation of the portal

The installation logs are located in the /log directory:
  • wpinstalllog.txt
  • installmessages.txt
  • LocalizeTrace.archive[1..5].log
The configuration logs are located in the /ConfigEngine/log directory:
  • ConfigTrace.log
  • ConfigMessages.log
The runtime logs are located in the /logs/WebSphere_Portal:
  • SystemOut.log
  • SystemErr.log

Configure Login / Logout / Session Filter

In Portal 6.1, you can customize the behavior of the Portal in specific authentication situations, through the Authentication Filters. The Authentication Filters use the same pattern as defined by the J2EE servlet filter facility, and make use of filter chains

The following authentication filter chains are available for the developer:

  • Explicit login: This is a login by user name and password as represented by the interfacecom.ibm.portal.auth.ExplicitLoginFilter. For example, this can be a login by using the login portlet or the login URL.
  • Implicit login: For example, this can be when a user is already authenticated by WAS, but not yet to Portal. This is represented by the interface com.ibm.portal.auth.ImplicitLoginFilter.
  • Explicit logout: This means that the user triggers a logout action directly, for example by clicking the Logout button in the user interface, interface com.ibm.portal.auth.ExplicitLogoutFilter.
  • Implicit logout: For example, this can be after a session timeout, or if an authenticated user accesses a public page, or if the user navigates to a virtual portal without being member of the associated user realm. This is represented by the interface com.ibm.portal.auth.ImplicitLogoutFilter.
  • Session Timeout: This is called immediately after an idle timeout of the user session occurred. This is represented by the interface com.ibm.portal.auth.SessionTimeoutFilter.
  • Session Validation: This is called for every request before actions are triggered and the page is rendered. This is represented by the interface com.ibm.portal.auth.SessionValidationFilter.

  • You can configure them through the Portal configuration services. You can no longer set these properties by simply changing the property value in the properties file and restarting the portal. The configuration for each service is stored in and accessible through the IBM WebSphere Application Server administrative console.

    Use the following properties to define the custom filters in the various authentication filter chains in the portal. Each of these properties takes a comma-separated list of the fully qualified class names of the custom filter implementations.
    login.explicit.filterchain =
    Use this property to specify the custom filters for the filter chain that is triggered for an explicit login by user name and password. The classes listed in this property must implement the interface com.ibm.portal.auth.ExplicitLoginFilter.
    login.implicit.filterchain =
    Use this property to specify the custom filters for the filter chain that is triggered for an implicit login, that is if the user is already authenticated to WebSphere Application Server but has no portal session yet. The classes listed in this property must implement the interface com.ibm.portal.auth.ImplicitLoginFilter.
    logout.explicit.filterchain =
    Use this property to specify the custom filters for the filter chain that is triggered for an explicit logout. The classes listed in this property must implement the interface com.ibm.portal.auth.ExplicitLogoutFilter.
    logout.implicit.filterchain =
    Use this property to specify the custom filters for the filter chain that is triggered for an implicit logout, that is if the user got a session timeout. The classes listed in this property must implement the interface com.ibm.portal.auth.ImplicitLogoutFilter.
    sessiontimeout.filterchain =
    Use this property to specify the custom filters for the filter chain that is triggered directly after an idle timeout of the session occurred. The classes listed in this property must implement the interfacecom.ibm.portal.auth.SessionTimeoutFilter.
    sessionvalidation.filterchain =
    Use this property to specify the custom filters for the filter chain that is triggered for every request before the action handling and rendering is processed. The classes listed in this property must implement the interfacecom.ibm.portal.auth.SessionValidationFilter.
    filterchain.properties.. =
    Use an arbitrary set of properties according to the above pattern to specify properties for any of your custom filters. The property value is then available to the specified filter class in the SecurityFilterConfig object passed to its init method.

    WebSphere Portal 6.1.5

    New version of WebSphere Portal 6.1.5 was released before thanks giving. It seems that it has quite few nice features such as Integrated Site analysis support, Mashup Integration Support, Page builder, New version of dojo.

    This is the link to the Info center of 6.1.5

    IBM also release 6.1.0.3 along with 6.1.5

    Dojo and WebSphere portal 6.1.5

    One of the most common questions about WebSphere Portal is, which version of Dojo does IBM WebSphere Portal use and what should i do if i want to use newer version of Dojo.

    WebSphere Portal 6.1 is using Dojo Version 1.1.1 and replacing dojo version is not supported by IBM (i.e. if you change it then your own your own). The CSA theme depends heavily on the Dojo in fact almost all of the client side functionality is built using Dojo so even if your using Server side aggregation theme, features like client side wires or setting Preferneces, reading PUMA properties might break

    Starting with WebSphere Portal 6.5, IBM is shipping two versions of Dojos

    • Dojo V 1.3.2. This is packaged in its own Web application named Dojo_Resources. You can manage it in the WebSphere Application Server administration console. By default it is deployed at the context root /portal_dojo . The path for the Dojo V 1.3.2 files is wp_profile_root/installedApps/node_name/Dojo_Resources.ear/dojo.war .

    • Dojo V 1.1.1. This is packaged in the directory wp_profile_root/installedApps/node_name/wps.ear/wps.war/themes/dojo/portal_dojo.



    The Portal and PortalWeb2 themes use version 1.3.2 by default in WebSphere Portal Version 6.1.5. The Page Builder features and widgets are currently supported on Dojo 1.3.2 only.

    IBM Support policy remains same that the version of dojo that is shipped with portal might be replaced entirely

    Understand how to leverage feeds using WebSphere Portal

    There is a very nice portlet in the Business Catalog called Syndicated Feed Portlet, sometimes called Feed Reader Portlet after its previous version. It's a sweet AJAX-enabled configuration interface where users themselves can add RSS or ATOM feeds at their leisure, create categories of feeds, and drag and drop feeds between these categories.

    Here are a few screenshots:




    The key to know here is that the easiest way to deploy is just to give the users permission to configure their own version of the portlet (Privileged User), adding and removing feeds as they please.

    Rational Application Framework for WebSphere

    For last few days i am spending time on learning about Rational Application Framework for websphere(RAFW) which is optional feature for Rational Build forge. We can use it to automate either the installation and configuration of the enterprise level WebSphere Application Server, WebSphere Portal Server, WebSphere Process server or we can use it to deploy applications, other artifacts on the WebSphere Environment.

    Most of the customers will have customized version of WebSphere Installation. By that i mean they will have multi cell WebSphere ND environment, then they will have to integrate it with some time of TAI, such as Tivoli access manager, or netegrity siteminder,.. in case of WebSphere Portal you will want to move data to some other Database, such as Oracle, DB2,.., apply fixes and fix packs, customize environment by adding custom attributes in WMM. In the end your installation guide for the client will be at least couple of hundred pages. Other problem will be when you try to create new environment based on that big document manually, it will take long time and we will make some mistakes. The RAFW helps in these issues by automating the installation process.

    Second issue is how do you allow your development team to deploy there applications, create data sources, queues, shared libraries. let them restart environment. The RAFW allows us to automate deployment. You can combine it with Build forge to do end to end deployment, which might start from checking out code from CVS, building and deploying code on WAS, Testing it and sending emails to every one if the test fails.

    You can also use RAFW in the performance tuning phase. Most of the customer have dedicated performance environment, during Performance testing we tune that environment to find out what is the optimal size of connection pool, connection time out,... Once the performance environment is tuned we need to apply same changes to other environment, In order to do that you will have to keep noting the changes you made in the performance environment and apply those changes to other environment, thats not very easy. RAFW simplifies that because it can import all the settings from your performance environment and compare it with your production or other environments, it can also apply the difference to all environments.

    I am planning to post my RAFW notes on this blog