フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Francis Franco Freich
How to deploy Liferay portlets using Glassfish Administration Console?
2012/10/29 18:00
答え

Francis Franco Freich

ランク: New Member

投稿: 10

参加年月日: 2011/05/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 0:59
答え

Sampsa Sohlman

LIFERAY STAFF

ランク: Regular Member

投稿: 225

参加年月日: 2007/09/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 13:28
答え

Juan Gonzalez

LIFERAY STAFF

ランク: Liferay Legend

投稿: 2798

参加年月日: 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/05/01 20:33
答え

Francis Franco Freich

ランク: New Member

投稿: 10

参加年月日: 2011/05/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.