Liferay install and liferay home directory
- Create the Websphere Application Server.
- Deploy liferay.war
- 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
- Create websphere-deploy in the liferay home folder.
- 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
- 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.
- 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.
Thanks, this was helpful
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteFor 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.
ReplyDeleteThe same setup should also work for Liferay 6.2.
http://www.devops-insight.com/2014/08/liferay-62-in-websphere-application.html
Thanks It's So hard to find an good article.....
ReplyDeleteWebsphere Training In Hyderabad