I have recently upgraded to Eclipse Platform 2.1.3 and MyEclipse 2.7.1
Using an existing codebase which built without error in a previous version of eclipse (I have changed machines and dont remember the older version), I now get the following compilation error for all JSPs in which a taglib is referenced:
cannot load class: <class name>
My tld is in /WEB-INF and my classes are compiled to /WEB-INF/classes
Also, the taglib autocomplete feature works for all references.
I suspect I am overlooking something, but have been unable to identify what that is and cannot find any useful info on google or the forums.
I have included relevant code snippets below.
From web.xml:
<!-- TAG LIBRARIES -->
<taglib>
<taglib-uri>http://www.acme.com/tags-acme</taglib-uri>
<taglib-location>/WEB-INF/acme-taglib.tld</taglib-location>
</taglib>
<!-- Struts HTML Tag Libraries -->
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<!-- Struts Logic Tag Libraries -->
<taglib>
<taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<!-- Struts JavaBean Tag Libraries -->
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<!-- Struts Template Tag Libraries -->
<taglib>
<taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-template.tld</taglib-location>
</taglib>
From a representative JSP:
.
.
.
<%@ taglib uri="http://www.acme.com/tags-acme" prefix="at" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
.
.
.
<at:AttachmentsAsHtmlRow />
.
.
.