facebook

Taglib class not found [Closed]

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #218919 Reply

    mick
    Member

    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 />
    .
    .
    .
    #218967

    Riyad Kalla
    Member

    Is it complaining about your Struts tags, or your acme tags? Make sure struts.jar is in your classpath under your Java Build Path settings.

    #218987

    mick
    Member

    @support-rkalla wrote:

    Is it complaining about your Struts tags, or your acme tags? Make sure struts.jar is in your classpath under your Java Build Path settings.

    It was only the custom tags.

    I upraded to eclpise 3.0.1/myeclipse 3.8.2 and all problems were resolved.

    Thanks for the feedback.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Taglib class not found [Closed]

You must be logged in to post in the forum log in