2013-02-26 146 views
2

我正在使用Liferay Portal 6.1 CE。热部署不起作用

我已经在eclipse indigo中设置了开发环境。

当我部署一个portlet时,它将移动到Portal Bundle中的deploy文件夹。但未被部署。 我已经测试了与其他战争,放置在部署文件夹。但同样发生

热部署不起作用。 我能做些什么吗?帮我

回答

4

这可能是因为您移动了安装,而您当前的设置包含与您期望的不同的liferay.home。

在Liferay启动时,日志指出了Liferay监视的自动部署目录。寻找到Tomcat /日志/ catalina.out中的线,看起来像这样:

08:34:58,902 INFO [pool-2-thread-1][ServerDetector:154] Server supports hot deploy 
08:34:58,910 INFO [pool-2-thread-1][PluginPackageUtil:1030] Reading plugin package for the root context 
08:35:01,137 INFO [pool-2-thread-1][AutoDeployDir:106] Auto deploy scanner started for /opt/lds/lds161/liferay-portal-6.1.20-ee-ga2/deploy 

此外,无论用户的Tomcat/Liferay的运行作为,需要有读这个目录/写访问,以及到Tomcat的webapps目录,以便热部署工作。如果插件不能从自动部署文件夹中移除,插件将不会被部署。

通常情况下,您会在portal-setup-wizard.properties(这是deploy目录的默认父目录)中找到liferay.home设置,但此设置也可能已转换到您的数据库中(以防万一你在服务器配置不知道为什么更改此值将不会被拾起。

1

有两个问题我可以在你的文章中看到。

1.热部署工作不

确保您已在portal-ext.properties文件中指定的热部署文件夹。

auto.deploy.deploy.dir=/app/portal/liferay-portal-6/deploy

然后,您可以在/ app /门/ Liferay的门户-6/deploy文件夹部署war文件。

Liferay选择并将其放入/app/portal/liferay-portal-6/../server/default/deploy文件夹。

更多细节见here

2.它移动到部署文件夹门户Bundle.But内没有得到部署

你看到在你的日志中的任何异常?它不是说1 Portlet可供使用吗?

+0

按照http://www.liferay.com/community/wiki/-/wiki/Main/Hot+Deploy+Troubleshooting,属性名称应为auto.deploy.dest.dir – 2014-03-28 17:03:50

0

您需要添加以下在建项目。在你的插件(USER_NAME)的.properties sdk。如果你没有找到这个文件,你需要创建它。设置你的目录,如

app.server.parent.dir = D:\ Projects \ Site \ liferay-portal-6.2.0-ce-ga1

app.server。portal.dir = D:\ Projects \ Site \ liferay-portal-6.2.0-ce-ga1 \ tomcat-7.0.42 \ webapps \ ROOT

app.server.lib.global.dir = D:\ Projects \ Site \ liferay-portal-6.2.0-ce-ga1 \ tomcat-7.0.42 \ lib \ ext

app.server.deploy.dir = D:\ Projects \ Site \ liferay-portal-6.2.0 -CE-GA1 \ Tomcat的7.0.42 \ web应用

app.server.type = Tomcat的

app.server.dir = d:\项目\网站\的liferay门户-6.2.0-CE- ga1 \ tomcat-7.0.42

希望这会帮助你。