Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Francis Franco Freich
How to deploy Liferay portlets using Glassfish Administration Console?
29 de Outubro de 2012 18:00
Resposta

Francis Franco Freich

Ranking: New Member

Mensagens: 10

Data de entrada: 16 de Maio de 2011

Mensagens recentes

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?
30 de Outubro de 2012 00:59
Resposta

Sampsa Sohlman

LIFERAY STAFF

Ranking: Regular Member

Mensagens: 217

Data de entrada: 27 de Setembro de 2007

Mensagens recentes

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?
11 de Dezembro de 2012 12:48
Resposta

Rob Hall

Ranking: Junior Member

Mensagens: 47

Data de entrada: 30 de Novembro de 2011

Mensagens recentes

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?
11 de Dezembro de 2012 13:28
Resposta

Juan Gonzalez

LIFERAY STAFF

Ranking: Liferay Legend

Mensagens: 1842

Data de entrada: 28 de Outubro de 2008

Mensagens recentes

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?
1 de Maio de 2013 20:33
Resposta

Francis Franco Freich

Ranking: New Member

Mensagens: 10

Data de entrada: 16 de Maio de 2011

Mensagens recentes

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.