Deploy Liferay 5 in WebSphere Application Server 6.1

For the latest install guides click here
#####################################################

Several problems need to be solved before Liferay 5 works correct in WAS 6.1.
Steps for installation:
1. Add ibm-web-bnd.xmi and ibm-web-ext.xmi to the WEB-INF-folder in the Liferay 5 WAR-file. (These files determinate that WAS is compiling Liferay 5 with JRE/JDK 1.5).
2. Create the Liferay 5 datasource (jdbc/LiferayPool - take a look at this post)
3. Deploy Liferay 5 WAR-File (with dependencies)
4. Move the JAR-files icu4.jar and portlet.jar from "Liferay-Root-Path"/WEB-INF/lib/ to /"WebSphere System Root"/java/jre/lib/ext (or change class load order :)
5. Somehow the WAS JSP-Compiler doesn't accept a JSP-Print-Tag (<%=... %>)
which contains quotes or double quotes (' or "). So you need to rewrite/replace some JSP-Files.
Current list of not working JSP-files:

  • ../html/portal/layout/edit/common.jspf
  • ../html/portlet/tagged_content/display_full_content.jsp
  • ../html/portlet/enterprise_admin/edit_organization_profile.jspf
  • ../html/portlet/enterprise_admin/edit_role_permissions_resource.jsp
  • ../html/portlet/enterprise_admin/organisation_action.jsp
  • ../html/portlet/enterprise_admin/user_group_action.jsp
  • ../html/portelt/rss/configuration.jsp
  • ../html/portlet/wiki/page_iterator.jsp
  • ../html/portlet/calender/edit_event.jsp
You can download the correct JSP-Files here. This step seems not to be necessary in Liferay 5.1.2.

6. For Liferay 5.1.2 geronimo-annotation_1.0_spec-1.1.1.jar (contained in apache geronimo) needs to be added to /Web-INF/lib [Temp fix - not for production - some spring releated database errors still occure in Liferay 5.1.2]

7. Edit the jdbc data source for higher load (especially for Oracle Databases)
7.1 In administrative console go to Resources > JDBC > Data sources > jdbc/LiferayPool > Connection pool properties
7.2 Adjust the connection properties for your needs

Guideline:
Connection Timeout -> decrease
Maximum Connections -> increase dramatically
Minimum Connections -> 1
Reap time -> decrease
Unused timeout -> decrease dramatically
Aged timeout -> 0

8. For Liferay 5.1.2 you need to go to Enterprise Admin > Settings and adjust the virtual host value