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