论坛

主页 » Liferay Portal » English » 3. Development

组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Francis Franco Freich
How to deploy Liferay portlets using Glassfish Administration Console?
2012年10月29日 下午6:00
答复

Francis Franco Freich

等级: New Member

帖子: 10

加入日期: 2011年5月16日

最近的帖子

I was thinking since the Private Plugin portlet is optional, how to deploy a Liferay portlet in the Glassfish Administration console instead?

I tried it but no portlet is showing up in the 'More..' in the add portlet menu. I tried changing the auto.deploy.default.dest.dir to my glassfish autodeploy directory but it still doesn't come up.
Sampsa Sohlman
RE: How to deploy Liferay portlets using Glassfish Administration Console?
2012年10月30日 上午12:59
答复

Sampsa Sohlman

LIFERAY STAFF

等级: Regular Member

帖子: 217

加入日期: 2007年9月27日

最近的帖子

Hi Francis,

Before Liferay does give the portlet plugin the application server deployment, Liferay modifies the the plugin package. So basically that is the reason why you should use Liferay's deployment procedure.

There is also possibility to package projects to direct deploy format, which means that that deployment time modifications are done on package time. This I do not have practical experience. So I cannot really help you further.

Look the issue about the direct deployment LPS-8735
Rob Hall
RE: How to deploy Liferay portlets using Glassfish Administration Console?
2012年12月11日 下午12:48
答复

Rob Hall

等级: Junior Member

帖子: 47

加入日期: 2011年11月30日

最近的帖子

Interesting. I'm struggling with this very issue currently with Liferay 6.1 EE GA2 (which doesn't have the Marketplace pre-installed) on Glassfish V3 cluster. I've tried deploying via the Glassfish admin console (as recommended by Liferay support) , and see the exploded war file on each node..but the Liferay instances doesn't pick them up. (i.e. I'm not seeing the theme or portlet available in Add> More.. or Plugins Configuration or Plugins Installation in the Control Panel of each LR instance.

I have a production support ticket open w/ Liferay but so far their suggestions aren't working.
Juan Gonzalez
RE: How to deploy Liferay portlets using Glassfish Administration Console?
2012年12月11日 下午1:28
答复

Juan Gonzalez

LIFERAY STAFF

等级: Liferay Legend

帖子: 1931

加入日期: 2008年10月28日

最近的帖子

This is how I do it:

  1. Deploy your portlet in tomcat as usual
  2. After portlet is deployed, simply compress the contents as ZIP where the portlet is exploded (<TOMCAT>/webapps/<yourportlet>. This file should have .war extension.
  3. Deploy that war using your glassfish console


Other way of doing this is enable autodeploy in liferay but disabling it in glassfish and tell Liferay to autodeploy in other "fake" directory, so after Liferay makes is changes to the portlet it will put the file in your directory, and this file would be ready to be deployed like any other .war.
Francis Franco Freich
RE: How to deploy Liferay portlets using Glassfish Administration Console?
2013年5月1日 下午8:33
答复

Francis Franco Freich

等级: New Member

帖子: 10

加入日期: 2011年5月16日

最近的帖子

I tried using this method to automatically deploy my Netbeans project into my Liferay installation.
What I'm using:
  • Netbeans 7.3
  • Liferay 6.1 with Glassfish Bundle
  • Ubuntu 12.04 OS as the server platform


I use this method:
  1. Go to your chosen project's 'dist' folder which is automatically created by Netbeans when building projects.
  2. Mount bind the Liferay/deploy folder to your chosen 'dist' folder. The deploy folder must be accessible and writeable for all.
  3. Whenever you want to deploy DO NOT use the 'Clean Build' option in Netbeans. Just use 'Build' or F11 because you cannot remove a binded folder.
  4. The produced 'war' file will automatically be deployed by Glassfish's deploy facility whenever a 'war' file is present in it.


This saved me heaps of time from manually deploying it through the "Private Plugin" portlet. It also autmatically updates your portlet whenever you "build".

I hope someday that it will be a native function of a plugin in Netbeans to save time for developing portlets in Glassfish bundle.