如何将Portlet部署到Liferay? [英] How to deploy portlets to Liferay?

查看:110
本文介绍了如何将Portlet部署到Liferay?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试将新portlet安装到在Glassfish域上运行的Liferay时遇到了问题。我很早就想出了这个流程,并且想与其他人分享。所以,请阅读答案,并希望这可以帮助某人:)



(问题的先决条件是我知道添加运行在 Glassfish 使用autodeploy文件夹完成,但在 Liferay 上显示它们是另一回事。)

因此,首先制作一个.war文件,让我们说一个名为your_file.war的portlet。您想在Liferay门户网站的glassfish域中运行它。



成功步骤:

1)导航到控制面板 - >在Liferay上安装插件

2)命中安装新portlet

3) code> Configuration

4)填入部署目录部署的新地方让我们说 [your domain] / autodeploy2

5)检查下一行目标是 [您的域名] / autodeploy (它是Glassfish默认的部署目录)

6)点击保存
现在部署完成通过将文件复制到该新目录 [your domain] / autodeploy2 。其余部分将自动处理。



完成部署:制作一个胜利夹具并享受:)

..你停止跳舞并面对一个错误。你需要部署一个新的修订版本。在这种情况下,请继续阅读。



因此,您已经重新构建了战争并希望重新部署。执行以下操作:

1)通过删除war文件,从(您的域名)/ autodeploy 文件夹中取消部署旧内容。不要删除任何其他文件。



2)结果是your_file.war_UnDeployed文件会出现。



3)通过复制(您的域名)/ autodeploy2 文件夹中新建的war来部署新文件。
$ b 4)结果是your_file.war_deployed将出现在(您的域名)/ autodeploy 文件夹中。



再次跳舞:


I have faced problems in trying to install new portlets to Liferay running on Glassfish domain. I figured out the flow very lately and want to share it with others also. So, please read the answer and hope this helps someone :)

(Pre requisites for the problem is that I knew that adding projects running on Glassfish is done with a autodeploy folder, but making them visible on Liferay was another story.)

解决方案

So, you make first a .war file let's say a portlet of name your_file.war. You wanna have it running on a glassfish domain under Liferay portal.

Steps to success:

1) Navigate to Control Panel -> Plugins Installation on Liferay
2) hit Install new portlets
3) hit Configuration
4) Fill in to Deploy Directory a new place for deployment let's say [your domain]/autodeploy2
5) Check that in the next line target is [your domain]/autodeploy (it is the Glassfish default deployment directory)
6) hit save

Now deployment will be done by copy pasting files to that new directory [your domain]/autodeploy2. The rest of it is handled automatically. Setting takes action imediatedly.

Done with deployment: Make a victory jig and enjoy :)

..you stop dancing and face a bug. You want a new revision to be deployed.. In this case, continue reading.

So, you have built your war again and want to re-deploy. Do the following:

1) undeploy old stuff from (your domain)/autodeploy folder by deleting the war file. Don't delete any other file.

2) result is that your_file.war_UnDeployed file will appear.

3) deploy new file by copying the newly built war in (your domain)/autodeploy2 folder.

4) result is that your_file.war_deployed will appear in (your domain)/autodeploy folder.

Make a dance again :)

这篇关于如何将Portlet部署到Liferay?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆