2013-05-13 55 views
1

我正在開發在Liferay門戶上運行的portlet(我目前有Liferay + Tomcat7軟件包,它稍後將在JBoss上運行)。我使用Eclipse Helios和Liferay IDE以及Liferay SDK。Liferay - Eclipse合金標籤庫錯誤

在我的.jsp文件,我用Alloy

<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %> 

,一切工作正常 - 在portlet得到成功部署並正確顯示。 唯一的問題是,Eclipse是將其標記爲錯誤:

Description Resource Path Location Type 
Can not find the tag library descriptor for "http://liferay.com/tld/aui" edit.jsp /PortletVisual-portlet/docroot line 2 JSP Problem 

這主要是化妝品的錯誤。 Eclipse中的Liferay IDE顯然不理解這些依賴關係,儘管項目本身工作正常。我可以和這個「錯誤標記」一起生活,它並不會打擾我。我只是好奇,如果有辦法解決它。

感謝您的任何提示!

編輯:這是我的web.xml文件:

<?xml version="1.0" encoding="UTF-8"?> 
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> 
    <display-name>PortletVisual-portlet</display-name> 

    <jsp-config> 
     <taglib> 
      <taglib-uri>http://java.sun.com/portlet_2_0</taglib-uri> 
      <taglib-location>/WEB-INF/tld/liferay-portlet.tld</taglib-location> 
     </taglib> 
     <taglib> 
       <taglib-uri>http://liferay.com/tld/aui</taglib-uri> 
       <taglib-location>/WEB-INF/tld/aui.tld 
       </taglib-location> 
     </taglib> 
    </jsp-config> 
</web-app> 

回答

1

試試這個:

<taglib> 
    <taglib-uri>http://liferay.com/tld/aui</taglib-uri> 
    <taglib-location>/WEB-INF/tld/liferay-aui.tld</taglib-location> 
    </taglib> 

如果不工作嘗試here

希望我幫助!祝你好運!!!!

+0

試過但仍然看到相同的錯誤標記 - 我是否需要有一些額外的文件來支持AUI? – Smajl 2013-05-13 11:38:10

+0

順便說一句:你可以編輯答案,而不是發佈一個新的:-) – Smajl 2013-05-13 11:38:33

+0

對不起,我仍然是新的網站,我將刪除其中之一 – JohnRambo 2013-05-13 11:54:26