为在JBoss 7.2.0上运行的Liferay 6.1.2部署portlet

时间:2013-08-30 11:07:47

标签: deployment jboss liferay portlet

我想知道是否有人可以帮助我。我最近在JBoss 7.2.0上安装了Liferay 6.1.2。设置环境没有问题。文档非常有用。但是现在我没有在部署主题和portlet方面取得任何进展。

控制面板>服务器>插件安装不提供任何上传功能。只有Portlet,主题和模板的列表以及Liferay市场有一天会接管的提示。

让JBoss处理部署也不起作用。这将是我最喜欢的解决方案,但portlet部署失败,因为缺少一些liferay类。试图在之后部署一个主题,这不会导致错误,但Liferay中的页面无法使用此主题。是不是让JBoss负责部署选项呢?在所有portlet无法在门户环境之外运行之后。

到目前为止,我的最后一次尝试是使用自动部署目录。但由于我们的JBoss是以域模式运行而不是独立运行,所以看起来这不是一个选择。 JBoss日志声明部署扫描程序子系统只能以独立模式安装,而不能以域模式安装。

有没有人有类似的问题,可以提供解决方案或一些有用的提示?或者也许还有其他解决方案,到目前为止我还没有考虑过。无论如何,我期待着您的回复;-)提前致谢。

此致 塞巴斯蒂安

1 个答案:

答案 0 :(得分:1)

Liferay的“热部署”流程可确保插件使用正确版本的Liferay库,与当前安装的门户匹配。如果您的服务器不支持热部署,则还有另一种建议的方法来注入这些设置和库。看看这些属性:

#
# Set this to true to enable auto deploy of layout templates, portlets, and
# themes.
#
auto.deploy.enabled=true

#
# Set the directory to scan for layout templates, portlets, and themes to
# auto deploy.
#
auto.deploy.deploy.dir=${liferay.home}/deploy

#
# Set the directory where auto deployed WARs are copied to. The application
# server or servlet container must know to listen on that directory.
# Different containers have different hot deploy paths. For example, Tomcat
# listens on "${catalina.base}/webapps" whereas JBoss listens on
# "${jboss.home.dir}/deploy". Set a blank directory to automatically use the
# application server specific directory.
#
auto.deploy.dest.dir=
auto.deploy.default.dest.dir=../webapps
auto.deploy.geronimo.dest.dir=${org.apache.geronimo.home.dir}/deploy
auto.deploy.glassfish.dest.dir=${com.sun.aas.instanceRoot}/autodeploy
auto.deploy.jboss.dest.dir=${jboss.home.dir}/standalone/deployments
auto.deploy.jetty.dest.dir=${jetty.home}/webapps
auto.deploy.jonas.dest.dir=${jonas.base}/deploy
auto.deploy.resin.dest.dir=${resin.home}/webapps
auto.deploy.tomcat.dest.dir=${catalina.base}/webapps
auto.deploy.weblogic.dest.dir=${env.DOMAIN_HOME}/autodeploy
auto.deploy.websphere.dest.dir=${env.USER_INSTALL_ROOT}/wsadmin-deploy

您可以在portal-ext.properties中覆盖这些内容。配置JBoss以监听任何目录${liferay.home}/deploy,并将其目标配置到其他地方:auto.deploy.jboss.dest.dir=${liferay.home}/for-installation-on-jboss。然后将dest.dir的结果内容打包为* .war或* .ear文件,并像往常一样在JBoss服务器上进行部署。这个将包含所需的所有设置和库。

在尝试“部署”之前,请确保${liferay.home}/for-installation-on-jboss存在。