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


Powered by WP Hashcash


Lily FlowerLoons on LakeSummer rain storm on Canada LakeSummer RainDead Wood & FlowersLily Pacmen

Recently Played Tunes

  • Radiohead Radiohead
    8 Jun 2010
    12:26 am

  • Ottmar Liebert Ottmar Liebert
    8 Jun 2010
    12:23 am

  • Talking Heads Talking Heads
    8 Jun 2010
    12:18 am

Google Search

Google

Categories