2016-03-04 77 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 

這就是你需要放棄構建結果的地方。