How to get the Jetspeed Login Portlet to work with IBM’s WebSphere 6.1. The default Jetspeed login Portlet doesn’t with WAS, it does work with Tomat, there is an alternative Login Portlet that can be used that will work with WAS. Follow the steps below to disable the LoginPortlet and enable the PortalLoginPortlet.

1. WAS version

First make sure you’ve running at least WAS 6.1.3 or higher.

2. PortalFilter & web.xml

Edit the web.xml file that’s in the Portal’s WAR file and uncomment the PortalFilter:

  <filter>
    <filter-name>PortalFilter</filter-name>
    <filter-class>org.apache.jetspeed.login.filter.PortalFilter</filter-class>
  </filter>

  <filter-mapping>
    <filter-name>PortalFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

3. LoginPortlet & PortalLoginPortlet

Replace the LoginPortlet in your default-page.psml with the PortalLoginPortlet:

<fragment id="dp-12" type="portlet" name="j2-admin::LoginPortlet">
      <property layout="TwoColumns" name="row" value="1" />
      <property layout="TwoColumns" name="column" value="1" />
</fragment>
 <fragment id="dp-12" type="portlet" name="j2-admin::PortalLoginPortlet">
      <property layout="TwoColumns" name="row" value="1" />
      <property layout="TwoColumns" name="column" value="1" />
</fragment>

You may need to change the  “fragment id” also.
4.Edit jetspeed-portlet.xml

Add this to your j2-admin’s WEB-INF/jetspeed-portlet.xml, immediately below the first portlet entry:

<portlet>
        <portlet-name>PortalLoginPortlet</portlet-name>
        <js:security-constraint-ref>public-view</js:security-constraint-ref>
        <dc:title>Portal Login Portlet</dc:title>
        <dc:creator>J2 Team</dc:creator>
</portlet>

5. Custom PSML?

If your using Maven 2 to build a custom Portal, override the the default page by putting the modified copy of your page in

portal/src/webapp/WEB-INF/pages


One Response to “Jetspeed Login Portlet & WebSphere 6.1”  

  1. 1 Mick

    If your doing this with Jetspeed Portal that’s already been deployed read the following. Also, the PortalFilter filter definition may be in the wrong location in the web.xml of some versions or builds of Jetspeed:

    http://www.nabble.com

Leave a Reply



Dark Sky Over KenmoreSunset over the Charles riverMisty day in BostonSunset over Donegal Bay.Er ...Bye bye Ireland

Recently Played Tunes

  • Rufus Wainwright Rufus Wainwright
    13 May 2012
    12:24 am

  • Sting Sting
    13 May 2012
    12:13 am

  • Sasha & John Digweed Sasha & John Digweed
    28 Apr 2012
    7:46 pm

Google Search

Google

Categories