2014-11-21 36 views
0

enter image description here 我是liferay 6.2的新手[2]。我在eclipse IDE中創建了一個名爲EmployeeLiferayMVC的portlet,並使用ant.Build現在我在tomcat中運行應用程序,並以admin身份登錄。但是在示例類別下,我無法找到要添加的porlet。我在liferay-display.xml中映射了示例。無法在liferay中的樣本類別下找到我的porlet 6.2

<display> 
<category name="category.sample"> 
    <portlet id="EmployeeLiferayMVC" /> 
    <portlet id="Employee Liferay Mvc"></portlet> 
    </category> 
</display> 

我附上我的屏幕截圖,我做了什麼。有人請幫助。提前感謝。

enter image description here

卡塔利娜登錄

Nov 24, 2014 3:05:15 AM org.apache.catalina.core.AprLifecycleListener init 
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files (x86)/Java/jdk1.7.0_03/bin/../jre/bin/client;C:/Program Files (x86)/Java/jdk1.7.0_03/bin/../jre/bin;C:/Program Files (x86)/Java/jdk1.7.0_03/bin/../jre/lib/i386;C:\Program Files (x86)\Java\jdk1.7.0_03\bin;c:\app\Jeet\product\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;F:\eclipse\eclipse;;. 
Nov 24, 2014 3:05:15 AM org.apache.coyote.AbstractProtocol init 
INFO: Initializing ProtocolHandler ["http-bio-8080"] 
     Nov 24, 2014 3:05:15 AM org.apache.coyote.AbstractProtocol init 
     INFO: Initializing ProtocolHandler ["ajp-bio-8009"] 
    Nov 24, 2014 3:05:15 AM org.apache.catalina.startup.Catalina load 
INFO: Initialization processed in 535 ms 
Nov 24, 2014 3:05:15 AM org.apache.catalina.core.StandardService startInternal 
INFO: Starting service Catalina 
Nov 24, 2014 3:05:15 AM org.apache.catalina.core.StandardEngine startInternal 
INFO: Starting Servlet Engine: Apache Tomcat/7.0.42 
Nov 24, 2014 3:05:15 AM org.apache.catalina.startup.HostConfig deployDescriptor 
INFO: Deploying configuration descriptor F:\liferay resource\liferay-portal-6.2-ce-ga2\tomcat- 7.0.42\conf\Catalina\localhost\ROOT.xml 
Nov 24, 2014 3:06:39 AM org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory F:\liferay resource\liferay-portal-6.2-ce-ga2\tomcat-7.0.42\webapps\calendar-portlet 
Nov 24, 2014 3:06:44 AM org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory F:\liferay resource\liferay-portal-6.2-ce-ga2\tomcat-7.0.42\webapps\kaleo-web 
Nov 24, 2014 3:06:48 AM org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory F:\liferay resource\liferay-portal-6.2-ce-ga2\tomcat-7.0.42\webapps\marketplace-portlet 
Nov 24, 2014 3:06:59 AM org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory F:\liferay resource\liferay-portal-6.2-ce-ga2\tomcat-7.0.42\webapps\MyFirstPortlet-portlet 
Nov 24, 2014 3:07:00 AM org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory F:\liferay resource\liferay-portal-6.2-ce-ga2\tomcat-7.0.42\webapps\notifications-portlet 
Nov 24, 2014 3:07:11 AM org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory F:\liferay resource\liferay-portal-6.2-ce-ga2\tomcat-7.0.42\webapps\opensocial-portlet 
Nov 24, 2014 3:07:21 AM org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory F:\liferay resource\liferay-portal-6.2-ce-ga2\tomcat-7.0.42\webapps\resources-importer-web 
+0

這可能聽起來很愚蠢,但是在構建插件之後,是否部署了它? – 2014-11-21 02:26:40

+0

是的,我已經部署它,這就是爲什麼我附上屏幕截圖 – lucifer 2014-11-21 04:39:16

+0

請確保您在liferay-display.xml中提供的id屬性是portlet.xml的portlet-name標記值。 – 2014-11-21 06:00:12

回答

0

我也通過在服務器上運行portlet解決了同樣的錯誤... 右鍵單擊您的portlet->運行 - >在服務器上運行 您的portlet將被部署。

相關問題