facebook

JSP editor-unknown tags (again)

💡
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. Installation, Configuration & Updates
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #222963 Reply

    jeffhoran
    Member

    I have checked the previous “JSP editor-unknown tags” topic and have not found a solution.
    I am working on the WebWorks2 example from their website: http://www.opensymphony.com/webwork/wikidocs/TutorialLesson03.html.

    I have their jar, webwork-2.1.7.jar, loaded as an external jar. It contains the META-INF package containing the MANIFEST.MF file and the taglib.tld file. I have my project properties set as: MyEclipse-Web/Deployment/Library Deployment Policies/{Jars on Web Project build-path, Jars in Web Project’s user libraries}

    So my jsp file:

    <%@ taglib uri="webwork" prefix="ww" %> 
    <html> 
    <head> 
    <title>WebWork Tutorial - Lesson 3 - Example 1</title> 
    </head> 
    <body> <
    
    <ww:property value="hello" />
    
    </body> 
    </html>

    works fine when it is deployed to Tomcat, but it still shows errors of:

    Unable to read TLD "META-INF/taglib.tld" from JAR file "file:C:/Dev/Eclipse-All/Eclipse301/eclipse/workspace/TestWebWork2/WebRoot/WEB-INF/lib/webwork-2.1.7.jar": java.util.zip.ZipException: The system cannot find the file specified.  NOTE: No JSP line number was avaliable so line 1 was used for the marker.

    on the top line
    and

    Multiple annotations found at this line:
     - No tag "property" defined in tag library imprted wtih prefix "ww"
     - Unknown tag (ww:property).

    on the line using the ww:property tag.

    So, how do i resolve compilation issues where it may be looking for the tld file in the webrootdir/META-INF directory when it actually exists in an external jar? Or is that even the problem?

    thx

    #222973

    Scott Anderson
    Participant

    The issue looks like the file webwork-2.1.7.jar doesn’t contain a tld file internally at META-INF/taglib.tld. Can you open the archive with zip and see if it exists there?

    #222975

    jeffhoran
    Member

    I have their jar, webwork-2.1.7.jar, loaded as an external jar. It contains the META-INF package containing the MANIFEST.MF file and the taglib.tld file.

    and the web.xml, from which the path for the tld in the webrootdir/META-INF is set accordingly.

    So, when there are paths in the jars that have to be deployed to the WEB-INF/classes dir they are not apparantly being checked for the build, I’m assuming.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: JSP editor-unknown tags (again)

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