无法成功部署liferay portlet

时间:2016-03-04 11:55:29

标签: liferay liferay-ide

我一直在关注https://dev.liferay.com/develop/learning-paths/mvc/-/knowledge_base/6-2/writing-your-first-liferay-application中的教程,并按照描述为liferay构建了portlet。我有一个工作生活环境,可以添加和删除所有标准portlet。

当我试图将我已经制作的小屋推到服务器上时,我可以看到它已正确部署到服务器上。见下面的日志。

INFO: Deploying web application directory /Users/marc.thomas/Downloads/liferay/bundles/tomcat 7.0.62/webapps/guestbook-portlet
Mar 04, 2016 10:49:53 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Mar 04, 2016 10:49:53 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /Users/marc.thomas/Downloads/liferay/bundles/tomcat-7.0.62/webapps/guestbook-portlet has finished in 900 ms
Mar 04, 2016 10:49:53 AM org.apache.catalina.startup.HostConfig deployDirectory

我已将完整的日志和代码放在我的github帐户中:https://github.com/marcthomas2013/liferay-portlet

在这个日志中,没有liferay接收portlet并部署它,即使它被部署到tomcat。

我无法看到我现在还能检查的其他内容。有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

部署portlet插件时,将WAR文件复制到Liferay的deploy文件夹(在/Users/marc.thomas/Downloads/liferay/bundles/中找到)。 Liferay将负责注入一些必需的组件并将其部署到tomcat本身。

将构建结果部署到应用程序服务器通常不起作用(除非您专门更改构建过程以包含注入的功能)

更正:根据日志文件,您似乎在初始安装后移动了安装:

10:49:49,077 INFO [localhost-startStop-1][AutoDeployDir:139] Auto deploy scanner started for /Users/marc.thomas/Downloads/liferay-portal-6.2-ce-ga6/deploy

您需要删除构建结果的位置。