« Back

New Liferay 6.1 Feature - Remote Development from Liferay IDE

Company Blogs December 14, 2011 By Gregory Amerson Staff

I'd like to mention one of the new features in the upcoming release of Liferay 6.1, which is the remote development and deployment support from Liferay IDE.  The idea is that with this feature you can build Liferay projects in Liferay IDE like normal but instead of the Liferay server running locally it is running on a remote host.  This is accomplished through two things, 1) new remote server adapter in Liferay IDE and 2) Server manager plugin (new in 6.1) deployed to the remote Liferay server 

This feature will be officially available with the Liferay 6.1 CE release, but since it is only in beta, now is a good time to try it out and give feedback.

For those who wish to try this out here are the steps to setting it up.

1. Download the Liferay Portal 6.1 Beta4 Tomcat bundle (Only tomcat is supported in beta4,  both JBoss and Glassfish will be supported by 6.1 GA release)

2. Start Tomcat bundle on remote host (or even localhost)

3. Download the Server Manager plugin for 6.1 Beta4 (This plugin provides the API needed by Liferay IDE to administer remote plugins)

4. Deploy Server Manager plugin into remote Tomcat server

5. Install the latest stable or nightly version of Liferay IDE (links are updatesite URLs to use in Eclipse install manager)

6. Create a new server in Liferay IDE, File > New > Server > Liferay > Remote Liferay Server

7. Specify a local tomcat bundle for the runtime stub (this is needed for libraries to compile project)

8. Specify the IP address of remote tomcat server along with Omni admin username/password

Once you have done this you should see the server console log messages printed in the normal Eclipse console view.

9. Create and deploy Liferay projects as usual then publish (deploy) them to the server, see Liferay IDE getting started guide for a walkthrough of this.

Now when you modify files in your project, every 15 seconds it will publish the delta of any changes to remote server.  However, you can publish changes immediately using the "publish" action in the servers view.  If you want to change the automatic publish rate you can do that in the server configuration editor (double click server in Servers view).

For anyone who decides to try this out and want to give feedback with suggestions or problems please either open a JIRA ticket for the IDE project or enter a new topic on the IDE forums.

Good luck and Happy Holidays!

Threaded Replies Author Date
Nice feature! Rafał Piotrowski December 15, 2011 12:20 AM
Nice stuff Greg! All plugins types can be... Thiago Leão Moreira December 15, 2011 4:15 AM
Hi Thiago, So I didn't mention that Ext is the... Gregory Amerson December 15, 2011 7:23 AM
Nice feature! Jonas Yuan December 15, 2011 7:42 AM
It doesn't seem to support loging into the... Puj Z December 15, 2011 8:48 AM
Correct, right now it just uses basic... Gregory Amerson December 15, 2011 8:53 AM
Good to know!!Nice feature Sohui Gu December 19, 2011 1:49 AM
Greg, this is amazing. Thanks. Bijan Vakili December 23, 2011 8:48 AM
Greg. Keep up the good work. Loving it Julius Kipkoech Bett December 28, 2011 11:24 AM
Very Super ;) Question. Should I open JIRA... Fuad Efendi January 26, 2012 11:33 AM
Hello Fuad Efendi, Could you create a new... Gregory Amerson January 26, 2012 4:34 PM
Cool one.. i will love this one. :) Mahipalsinh Rana January 30, 2012 4:04 AM
I am curious whether you have plans for... Dimitri Tischenko January 31, 2012 8:40 AM
Hi Dimitri, Liferay IDE 2.0 will have maven... Gregory Amerson January 31, 2012 4:33 PM
Hi Gregory, Maybe I didn't make myself clear.... Dimitri Tischenko February 15, 2012 4:36 AM
Oh I see, thanks for explaining. No, we don't... Gregory Amerson February 15, 2012 5:23 PM
Thanks. Any ETA on the IDE 2.0 BTW? Dimitri Tischenko March 13, 2012 9:01 AM
No ETA as of yet. I will try to update the... Gregory Amerson March 13, 2012 6:45 PM
Hi Gregory Amerson, I've read your blog with... Partha Baral March 19, 2012 4:37 AM
Hi Greg, ... Vijay Peddareddy March 22, 2012 10:04 AM
Hi Partha and Vijay, Can you ensure that your... Gregory Amerson March 22, 2012 10:10 AM
Hi Greg, Issue got resolved. Thanks for your... Vijay Peddareddy March 23, 2012 12:03 PM
[...] Hi Prakash, thank you for your reply.... Anonymous April 4, 2012 6:03 AM
Hey guys, i got a problem with my remote... lutz Bremen April 27, 2012 6:21 AM
[...] Here you go:... Anonymous July 6, 2012 12:03 AM
hi, can anyone tell me how do that with JBOSS... Le Minh August 20, 2012 3:52 AM
While connect remote server i am getting "... Kiran Kumar Yakkala September 6, 2012 4:14 AM
Hello Kiran, If you install the nightly build... Gregory Amerson September 7, 2012 3:29 AM
Hi Greg, Is the support for JBoss available as... Abhed Dekavadiya November 3, 2012 2:20 PM
Hey Abhed, Can you repost this question on the... Gregory Amerson November 6, 2012 1:41 AM

Nice feature!
Posted on 12/15/11 12:20 AM.
Nice stuff Greg!
All plugins types can be deployed remotely? Even ext?
Posted on 12/15/11 4:15 AM in reply to Rafał Piotrowski.
Hi Thiago,

So I didn't mention that Ext is the exception, it can't be deployed remotely yet.
Posted on 12/15/11 7:23 AM.
Nice feature!
Posted on 12/15/11 7:42 AM in reply to Gregory Amerson.
It doesn't seem to support loging into the server by using public-private key pairs (and not normal passwords). Right?
Posted on 12/15/11 8:48 AM.
Correct, right now it just uses basic authentication to connect to the server-manager plugin.
Posted on 12/15/11 8:53 AM in reply to Puj Z.
Good to know!!Nice feature
Posted on 12/19/11 1:49 AM in reply to Gregory Amerson.
Greg, this is amazing. Thanks.
Posted on 12/23/11 8:48 AM in reply to Sohui Gu.
Greg. Keep up the good work. Loving it
Posted on 12/28/11 11:24 AM.
Very Super ;)

Question. Should I open JIRA issue? I can't see "Remote Liferay" option even in nightly builds... thanks
Posted on 1/26/12 11:33 AM in reply to Julius Kipkoech Bett.
Hello Fuad Efendi,

Could you create a new topic on the Liferay IDE Forums? I'd like to ask a few questions first before you open a JIRA issue, we may be able to figure out why you can't see the Remote Liferay option there.

http://www.liferay.com/community/forums/-/message_boards/category/4627757
Posted on 1/26/12 4:34 PM in reply to Fuad Efendi.
Cool one.. i will love this one. emoticon
Posted on 1/30/12 4:04 AM.
I am curious whether you have plans for integration with 3d party tools like cargo / maven? I would like to be able to use the remote deployment feature to deploy from Jenkins / maven.
Posted on 1/31/12 8:40 AM in reply to Mahipalsinh Rana.
Hi Dimitri,

Liferay IDE 2.0 will have maven support so you will be able to use any maven 3rd party plugin, like cargo, webby, etc.
Posted on 1/31/12 4:33 PM in reply to Dimitri Tischenko.
Hi Gregory,

Maybe I didn't make myself clear. What I mean is that the maven cargo plugin has various options for remote deployment servers, like tomcat or glassfish. Do you have plans to add liferay as a cargo remote deployment option?
Posted on 2/15/12 4:36 AM in reply to Gregory Amerson.
Oh I see, thanks for explaining. No, we don't have any plans for that currently.
Posted on 2/15/12 5:23 PM in reply to Dimitri Tischenko.
Thanks. Any ETA on the IDE 2.0 BTW?
Posted on 3/13/12 9:01 AM in reply to Gregory Amerson.
No ETA as of yet. I will try to update the roadmap for IDE as soon as I know more.
Posted on 3/13/12 6:45 PM in reply to Dimitri Tischenko.
Hi Gregory Amerson,

I've read your blog with the help of this I am doing the same thing in Liferay Developer Studio 1.5.2.v201203030830 with Liferay JBoss bundled (liferay-portal-jboss-6.1.10-ee-ga1-20120223174854827) but sut some how unable to get the desired result. I am getting the this type of error ---------

Liferay Portal Community Edition is only available if a valid installation of Liferay Portal Enterprise Edition version 6.1 is also configured.
So can you please help me what i am missing?As I am a newbee to liferay.
Posted on 3/19/12 4:37 AM in reply to Gregory Amerson.
Hi Greg, I'm also facing same issue mentioned by Partha Baral.
"Liferay Portal Community Edition is only available if a valid installation of Liferay Portal Enterprise Edition version 6.1 is also configured."

I have a licensed Liferay Developer Studio 1.5.2 with Liferay Tomcat bundled (liferay-portal-6.1.10-ee-ga1).

Please help me what I'm doing wrong here.

Partha Baral,

Please let me know if you are able to solve this issue.

Thanks.
Posted on 3/22/12 10:04 AM in reply to Partha Baral.
Hi Partha and Vijay,

Can you ensure that your licensed EE server is configured as a local server (liferay portal 6.1 EE) in your Studio? make sure that you have started the server once to make sure that the license manager can create a valid license. Because Developer Studio needs to check with the License Manager of the Portal EE server to verify it has valid license.
Posted on 3/22/12 10:10 AM in reply to Vijay Peddareddy.
Hi Greg,

Issue got resolved. Thanks for your help.
Posted on 3/23/12 12:03 PM in reply to Gregory Amerson.
[...] Hi Prakash, thank you for your reply. Sorry for not mentioning it, but I am talking about EE. If I understand correctly, it's enough to have one server installed with Liferay that all developers will... [...] Read More
Posted on 4/4/12 6:03 AM.
Hey guys, i got a problem with my remote server. It is sooooo sloooooow. What is a possible reason for this?
Posted on 4/27/12 6:21 AM.
[...] Here you go: http://www.liferay.com/web/gregory.amerson/blog/-/blogs/11789178 Flag Please sign in to flag this as inappropriate. Mark as an Answer [...] Read More
Posted on 7/6/12 12:03 AM.
hi, can anyone tell me how do that with JBOSS AS 7. Use Liferay bundled Jboss.
Posted on 8/20/12 3:52 AM.
While connect remote server i am getting " Could not connect to the server manager. Make sure the server manager plugin is installed on remote Liferay instance."

Can anyone tell me how install the server manager plugin into remote server.
Posted on 9/6/12 4:14 AM in reply to Le Minh.
Hello Kiran, If you install the nightly build of IDE (1.6.1) then in the new remote server wizard there is a hyperlink that will redirect you to the portal instance and automatically setup the marketplace portlet to install the correct application (remote ide connector). I hope to make a blog post about this very soon.
Posted on 9/7/12 3:29 AM in reply to Kiran Kumar Yakkala.
Hi Greg,

Is the support for JBoss available as remote server ?
I cannot see JBoss server for "Liferay bundle type" in above step-7.

I am using JBoss Developer Studio. I have installed Liferay IDE plugin from 1.6.1 update site: http://sourceforge.net/projects/lportal/files/Liferay%20IDE/1.6.1/updatesite/

I want to use "JBoss Dev Studio" with Liferay IDE plugin as IDE, standalone JBoss-AS-7.1.1 as runtime and Liferay-6.1.1 war installed on JBossAS.

Any suggestions/help?
Posted on 11/3/12 2:20 PM.
Hey Abhed,

Can you repost this question on the IDE forums? I'll follow up there with a full response. Thanks!
http://www.liferay.com/community/forums/-/message_boards/category/4627757­
Posted on 11/6/12 1:41 AM in reply to Abhed Dekavadiya.