2016-03-04 78 views
0

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

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

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的。

我看不到我现在可以检查什么。谁能帮忙?

回答

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 

这就是你需要放弃构建结果的地方。