Friday, September 7, 2012

Installing LIferay 6.1 on Websphere 8.


Liferay install and liferay home directory


  1. Create the Websphere Application Server.
  2. Deploy liferay.war
  3. Create the liferay home folder and create portal-ext.properties with the following properties            liferay.home=e:/myapps/liferay/sandbox         auto.deploy.dest.dir=e:/myapps/liferay/sandbox/websphere-deploy
  4. Create websphere-deploy in the liferay home folder.
  5. Once the liferay is installed, it will create all other necessary folders in the liferay home directory(data, deploy, logs)


Deploying Liferay Portlets in Websphere

Deploying the liferay portlets on websphere is 2 step process

  1. Put the .war in the deploy folder. Here the liferay will massage the .war file and add the necessary liferay dependent files and moves it to websphere-deploy folder. 
  2.        Install the application (.war) in the websphere-deploy folder from the admin console.


Specifying the portal-ext properties to liferay.war


Need to specify the liferay about the portal-ext.properties. So we do this by adding the app server JVM argument. For doing this do the following


Open Websphere Admin Console
Select the App server you created, on which you install liferay
In the configuration tab, Server Infrastructure-->Java and Process Management--> Process definition --> Additional Properties ---> Java Virtual Machine ---> Generic JVM arguments, add the following

-Dfile.encoding-UTF-8
-Dexternal-properties=e:/myapps/liferay/sandbox/portal-ext.properties

And in the Custom Properties add the following
java.net.preferIPv4Stack =true
java.net.preferIPv6Addresses=false

Adding the Shared Libraries and class loaders

Liferay requires the shared jars that it provides along with the liferay war file.

Change the Class Loader Order and add the shared libraries path

Application Servers --> <<App Server Name>> Class Loader --->
Class Loader Order = Classes loaded with parent class loader first

Application Servers --> <<App Server Name>> Class Loader ---> Additional Properties ---> Shared liferay references ---> and here create the library name  where is created in the:  Environment ---> Shared Libraries to refer the shared libraries folder of the liferay.

That is pretty much it. You are ready to go.





4 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. For Liferay working correctly you have to setup the class loaders and shared libraries before starting liferay the first time. Otherwise a ton of exceptions occur.

    The same setup should also work for Liferay 6.2.
    http://www.devops-insight.com/2014/08/liferay-62-in-websphere-application.html

    ReplyDelete