How to deploy Liferay Portal to Jelastic cloud
Here is a step-by-step instruction on deploying Liferay Portal, a popular enterprise web platform for building business solutions, to Jelastic cloud. Jelastic can run and scale any Java application with no code changes required so the steps we describe here are applicable to most Java applications.
Let’s get started!
1. Create the environment
- Go to jelastic.com and sign up if you haven’t done it yet or log in with your Jelastic credentials by clicking the Sign In link on the page.
- Click Create environment to set up a new environment in Jelastic.

- In the Environment topology window, select Tomcat 6 as your application server, set the Cloudlets limit (e.g. 12), type your environment name, for example, liferay, and click Create:

In a minute your environment will be created and appears in the environments list.
2. Upload Java package
- Go to the Liferay web site, navigate to Downloads and download Liferay Portal Community Edition.

- Extract the files from this archive on your computer.
- On Liferay web site, navigate to Additional Files and download the latest Liferay’s distribution WAR archive. (Below we selected Liferay Portal CE GA4 WAR). Also you can simply copy Liferay Portal CE GA4 URL and then upload Java WAR package using the URL.

- Switch to Jelastic and upload the downloaded tomcat libraries Liferay application needs: liferay-portal-tomcat-6.0.6-20110225/liferay-portal-6.0.6/ tomcat-6.0.29/lib/ext.
- After the upload is complete, navigate to Tomcat section and click Config button.
The config tab opens next to Deployment manager tab.


- Navigate to the home folder and click the New file button to create a new portal-ext.properties configuration file. Type the following: resource.repositories.root=${user.home}/liferay and click Save.
- Upload the liferay-portal-6.0.6-20110225.WAR Java package to the deployment manager:

- Once the package is in Jelastic, deploy it to the environment you have just created by clicking the Deploy button near the package name.

Now you can finally navigate to Liferay Portal, create your account and use all capabilities of this application!

And here is a video version of the same procedure:

Blog
Twitter
YouTube
Facebook
Google+
Habrahabr
Nice Guide!
I’m new to Jelastic but I’ve been checking out Liferay for a while. I’m actually thinking of putting my dummy liferay instance in my own Jelastic Account.
Thank you for this!
how to upload my spring-hibernet portlet application war file inside jelastic-liferay cloud.
Hi Murali! You have to upload your .WAR archive to the deployment manager and deploy it to web-server where Liferay is installed.
give clear idea “web-server where Liferay is installed” means.
i need to deploy my application war file inside a ROOT directory or any where.. already in ROOT directory liferay standlone server is there.. how life-ray will recognize my portal application war.
It seems that you have to add your .war file via admin page of Liferay..there you will be able to chose in which context deploy your .war.
how to chose context deploy path..can please you give step by step procedure.?
Thanks for the Detailed Article , here is the Video I have created using screenr , and installed liferay on jelastic
http://blog.wasimshaikh.com/2011/11/05/install-liferay-ce-on-cloud/
And Liferay Instance can be found here http://lr-themes.jelastic.servint.net/
If jelastic keep this as free then I will use this url for theme preview.
Thanks,
Wasim Shaikh
blog.wasimshiakh.com
i need how to deploy my spring-hibernet war file inside a liferay on jelastic cloud…….
Hello! We are waiting for your answer here http://support.jelastic.com/discussions/problems/154-how-to-pluggin-custom-liferay-portlet-applicationsspringmvc-portlet-inside-liferay-jelastic-cloud to help you.
Quick note – it seems that multiple uploads and large uploads are not working, so:
When you come to the section about uploading the Library bits – expand your environment (little arrow) and the mouseover Tomcat 7 (in my case) and click on configure.
In the lower pane, open the Lib directory in the tree and mouse over next to the lib directory – click on Upload.
Browse to the ext directory as said above and then upload all those jar files ONE AT A TIME!
I tried several times to upload them en masse and the just didn’t appear.
With the WAR file, it uploaded it, apparently, but it never appeared on the list. So instead, go to Liferay.com and get the Direct Url for the file from the sourceforge download page (that you land on when you download normally.) Use that and put it in the URL field in Jelastic when you use the deployment manager to upload.
Hello Joss! Thanks for your report! This problem is being fixed now by our team. You can try to divide jar files into several parts and upload them in turn.
hello… how to deploy the custom portlet application inside liferay on jelastic cloud?
Hi I am trying to upload liferay 6 beta 4 war in jelastic and its getting stuck in between complaining about the size. Is there a restriction on the size max size = 157286400
Is there any workaround fro the same
Hi! Yes, we have the restriction on the size of .WAR archive – 150MB. Since our 1.4 version users have an opportunity to use external storages for deploying their .war archives, all you need is just store your .war archive on an external storage and then use link (ftp, http) to this file in Jelastic Deployment Manager. Please visit our docs at http://jelastic.com/docs/file-uploading.
Thanks Marina for very prompt response. Yeah i tried to do that as well. I used the direct link url provided in sourceforge. It immediately shows the war as uploaded but while i deploy, it gives zip reading exception, not being able to extract properly.
Is it a standart .WAR archive? Are you sure that all is ok with this .WAR?
Yes I am using this Link to upload liferay war. http://sourceforge.net/projects/lportal/files/Liferay Portal/6.1.0 B4/liferay-portal-6.1.0-ce-b4-20111110.war/download?use_mirror=voxel
I dont know how to check if the war is valid coz all i have to do is give this url and it shows me uploaded in frontend.
Hi,
I deleted the war that was deployed and the uploaded file and again did the same. I got the zip exception. But then I restarted the server and it is working
Thanks for the support
It is great! Feel free to ask us!
There is a tunnel-web war file that liferay needs if you want to expose Liferay web services. I was trying to upload the same and setting the context to tunnel-web but jelastic is not allowing me to add hyphen(-) in context name. Liferays webservices can be accessed by http://domain/tunnel-web/axis/ and it requires the context name to be tunnel-web
We are fixing this problem now. You can try to upload your .WAR to Tomcat/webapps.
Thanks Marina. Can i know what decides the number of cloudlets that i see. I saw cloudlets being used going upto 9. So i stopped the environment and it still doesnt seem to come down. How do I know what is eating the cpu and memory when I have completely stopped the environments
Hi! Give us the name of your environment, please, and we’ll try to help you.
Hi Marina
I have tried as you suggested. It is working find for me.
It’s awesome….:)
Regards
Satish Babu
Hello!
It’s great! Thanks!
After click on few pages on Liferay Portal installed on Jelastic the maximum space of 1Gb of storage get reached due JSP compilation process and temp files used….
Hi, Marco!
We have to know the name of your environment to increase a limit.
Hi Marina,
Hope you are doing good. I was today trying to use same environment that i used to configure my previous version of Liferay with new version of liferay. Today what i did was i deleted ROOT and removed old dependency jars and was trying to upload new dependency jars in lib folder and it would say Please only upload files that have extensions: .jar
Hi!
What is the name of your environment?
Its liferayb4
Can you upload these jars to other environment?
Ok you want me to create a new environment and upload jars into that. I could do that. But the reason i was doing the way i did was, normally in Liferay when we upgrade from one version to another we just change the war and replace the dependency jars and point to the same database. Thats how we uprgade to a newer version of Liferay
No, we just want to be sure that all is ok with your jar files. Give us the link to these dependency jars, please.
http://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.1.0%20RC1/liferay-portal-dependencies-6.1.0-ce-rc1-20111219113511317.zip/download
Did you extract files from this zip or upload all archive?
I have just tried to upload these jars and all is ok.
I have extracted and was trying to upload jars one by one. Let me try again.
No its not working for me. If you can access my environment and try uploading jars in lib it would be great. Or is there any way i can give access of my environment to you?
Hi!
We have just uploaded these jar files to your environment without any problems. Here’s detailed instruction on how to do this: http://jelastic.com/docs/upload-jar-archieves
I have tried the same way, as I had already tried this exercise before. I still am not able to do the same. Seems like a bug to me. I am giving the links of the screenshot.
http://dl.dropbox.com/u/40943977/1.JPG
http://dl.dropbox.com/u/40943977/2.JPG
We’ll analyze your problem. Sorry for any inconvenience.
Its working fine in latest version of firefox. Turned out to be issue with firefox 3.5.6
I am having problems deploying from the sourceforge url. It says it is running after deployment but I get an error: Oops! This link appears to be broken. I’ve started and stopped the server,but it didn’t help.
Are you sure that it is a direct link?
Yes I used :
http://sourceforge.net/projects/lportal/files/Liferay%20Portal/6.1.0%20GA1/liferay-portal-6.1.0-ce-ga1-20120106155615760.war/download?use_mirror=superb-dca2
Hi, I’m have created a new environment, upload LR 6.1 and deploy it.
Then I connected to it (without having restarted tomcat…) and I got in catalina.out this error:
ERROR [DirectServletRegistry:187] java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Map
After restarting tomcat, I have now on screen :
“The server encountered an internal error () that prevented it from fulfilling this request.”
org.apache.jasper.JasperException: java.lang.IllegalStateException: No output folder
No error recorded in catalina.out. Do anyone has any clue ?
Hi!
We need the name of your environment to help you.
Hi Marina,
Is it possible for you to write a next blog entry on how Liferay can be deployed in a clustered environment.
http://www.liferay.com/documentation/liferay-portal/6.0/administration/-/ai/unbreakable-liferayvirtual-hostingto-infinity-and-beyondmultip-3
Thanks Sandeep
Hi, Sandeep!
It’s great idea! Thanks.
After deploying the liferay war file to ROOT, still getting tomcat home page when access the domain.
I got the same error as Philippe -
10:56:07,133 ERROR [DirectServletRegistry:187] java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Map
java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Map
The name of our environment is liferayone. Could you check to see what’s the issue?
Thanks.
Hello!
Looks like there is some problem with your war file. Did you try to deploy it locally?