Liferay ポータルで実行されるポートレットを開発しています (現在 Liferay+Tomcat7 バンドルを持っていますが、後で JBoss で実行されます)。Liferay IDE および Liferay SDK で Eclipse Helios を使用しています。
私の .jsp ファイルでは、Alloyを使用しています。
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %>
すべて正常に動作します。ポートレットは正常にデプロイされ、正しく表示されます。唯一の問題は、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>