Add a portlet to Liferay (deployed via WebSphere's admin console)

Also see this post

In this post i try to descripe how to deploy a portlet in liferay's portlet container using the administrative console of a WAS 6.1 installation.
I will use the sample-jsp-portlet for demonstration.
Steps:
1. Stop Liferay / Server
2. Copy portal-kernel.jar to "WebSphere_System_Root"/lib/ext/
3. Restart Liferay / Server
4. Edit the web.xml of your portlet-war-file.
4.1. Add following entries (for sample-jsp-portlet):


<web-app>
<display-name>sample-jsp-portlet</display-name>
<listener>
<listener-class>com.liferay.portal.kernel.servlet.PortletContextListener</listener-class>
</listener>
<context-param>
<param-name>com.ibm.websphere.portletcontainer.PortletDeploymentEnabled</param-name>
<param-value>false</param-value>
</context-param>
<servlet>
<servlet-name>sample_jsp_portlet</servlet-name>
<servlet-class>com.liferay.portal.kernel.servlet.PortletServlet</servlet-class>
<init-param>
<param-name>portlet-class</param-name>
<param-value>com.liferay.sample.jsp.portlet.JSPPortlet</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>sample_jsp_portlet</servlet-name>
<url-pattern>/sample_jsp_portlet/*</url-pattern>
</servlet-mapping>
<taglib>
<taglib-uri>http://java.sun.com/portlet_2_0</taglib-uri>
<taglib-location>/WEB-INF/tld/liferay-portlet.tld</taglib-location>
</taglib>
</web-app>
Link to complete Web.xml for sample-jsp-portlet


Hint: Use Winrar to edit the web.xml in the war-file.
4.2 Edit the portlet.xml
4.2.1 Edit portletName-Tag to
<portlet-name>sample_jsp_portlet</portlet-name>

5. Deploy the portlet via administrative console of WebSphere.
5.1 Go to Enterprise applications > "Select your Liferay application" > Click "Update" > Select " Replace or add a single module"
5.2. Browse to the edited portlet-war-file.
5.3 Set "Specify the path beginning with the installed application archive file to the module to be replaced or added." to the portlet's name (in this case: sample-jsp-portlet).
5.3 Set the context path to a correct value (in this case i used: sample-jsp-portlet).



5.4. Click "Next" to start the deployment dialogs
5.5. Click through all deployment steps (change context path to "sample-jsp-portlet" (Step 7)).
5.6. Click "Finish" to deploy the portlet.
6. The portlet will be installed to the liferay-folder and can be added via the "Add application"-menu in Liferay (perhaps you have to restart Liferay/the server).

Download the complete sample-jsp-portlet for websphere here.


Special thanks to "Mate".
Links:
Liferay Forum Posts
IBM PK34915