facebook

Unable to read TLD "META-INF/taglib.tld" from JAR

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #232664 Reply

    _bjoern
    Member

    Hello!

    I want to use a JSP custom tag library in a project.

    I added the JAR including the Taglib into Build Path.
    The JAR includes the TLD.

    When I deploy the Web-App to Tomcat 4, everything works fine.

    Only the JSP-Validator is always showing an error, that its unable to read
    JAR resp. TLD.
    (Unable to read TLD “META-INF/taglib.tld” from JAR file … WEB-INF/lib/xxx.jar)

    It searches for the JAR under WebRoot/WEB-INF/lib/.
    At development time that directory is empty.
    The myEclipse deploy-process copies the JARs to WEB-INF/lib-folder.

    How can I get rid of the annoying error messages?

    Thx,

    Bjoern

    #232699

    Riyad Kalla
    Member

    Bjoern,
    Double check your build path and make sure you don’t have a ghost JAR in it.

    #232770

    _bjoern
    Member

    Hi Riyad,

    What is a ghost jar?

    I have some jars in my build path, but i need all of them.

    Is the JSP-Editor able to read a tld only from a jar file?

    Tomcat 4 works fine. I use there no entry in web.xml, no extra tld-file, only the jar.

    #232789

    Riyad Kalla
    Member

    What is a ghost jar?

    Sorry, I meant do you have any broken JAR references in your build path to files that don’t exist or were erased?

    Is the JSP-Editor able to read a tld only from a jar file?

    The editor follows the spec. It can resolve a TLD from any valid location (web.xml, JAR/META-INF dir, etc.)

    Did you put the TLD in the JAR in a META-INF directory?

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Unable to read TLD "META-INF/taglib.tld" from JAR

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