1

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

控制面板 > 服务器 > 插件安装不提供任何上传功能。仅分别列出了 portlet、主题和模板,并暗示 Liferay 市场将在某一天接管。

让 JBoss 负责部署也不起作用。这将是我最喜欢的解决方案,但是 portlet 部署失败了,因为缺少一些 liferay 类。之后尝试部署一个主题,并没有导致错误,但是这个主题在 Liferay 中的页面不可用。让 JBoss 负责部署是一种选择吗?毕竟portlet 不能在门户环境之外运行。

到目前为止,我的最后一次尝试是使用自动部署目录。但是由于我们的 JBoss 是在域模式下运行而不是独立运行,所以这似乎不是一个选择。JBoss 日志指出,deployment-scanner 子系统只能以独立模式安装,不能以域模式安装。

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

问候塞巴斯蒂安

4

1 回答 1

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并将其 dest 目录配置到其他位置:auto.deploy.jboss.dest.dir=${liferay.home}/for-installation-on-jboss. 然后将 dest.dir 的结果内容打包为 *.war 或 *.ear 文件,并像往常一样将其部署在您的 JBoss 服务器上。这将包含所需的所有设置和库。

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

于 2013-08-30T11:50:39.147 回答