Bug 334780 - "Unknown Tag" when TLD in jar
Summary: "Unknown Tag" when TLD in jar
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: jst.jsp (show other bugs)
Version: 3.2.2   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: jst.jsp CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2011-01-19 08:08 EST by arne anka CLA
Modified: 2011-08-12 10:43 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arne anka CLA 2011-01-19 08:08:11 EST
in a dynamic web project i use a jare file providing several tags.
the tld of those tags lives in the same jar file below META-INF/.

including the tld in a jsp
<%@ taglib uri="http://www.foo.com/bar-tags" prefix="foo" %>
looks ok, no warnings or errors.

starting to type a tag 
<foo:
the autocompletion offers all tags.
but once the tag is finished in the jsp

<foo:bar/>

there appear warnings about

Unknown tag (foo:bar).

"Open Selection" from context menu on both the taglib and the tag opens without fail the tld file inside the jar, hence it is available.
And yet, the validation constantly fails to recognize it.

As far as my personal experience with wtp and research show, it is a rather old issue which seems to keep popping up again and again ...

-- Configuration Details --
Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.wst.xml_ui.feature 3.2.2.v201008170029-7H7AFUQDxumQGOpBqffOY2f1qxDZ
Comment 1 Nitin Dahyabhai CLA 2011-01-19 10:17:23 EST
Where is the TLD within the .jar file and to version is the Dynamic Web Module facet set?  Can you attach the web.xml and tld file here?
Comment 2 arne anka CLA 2011-03-15 05:46:39 EDT
the tld lives in META-INF/.
Dynamic Web Module facet is set to 2.5.

cannot attach the tld file -- and for the web.xml: the tld is not noted there, if that was what you want to check.

after a while sometimes the tag seems to be recognized, but not always and not in a reliable time frame.
Comment 3 Nitin Dahyabhai CLA 2011-03-17 00:32:55 EDT
Please retry this with SR2, as it sounds like it *might* be bug 325186.  Otherwise, without more concrete information I'm not sure what we can do.
Comment 4 Nick Sandonato CLA 2011-07-18 23:03:33 EDT
Hi, Arne. Just checking to see if this was cleared up with SR2 as Nitin mentioned.
Comment 5 Nick Sandonato CLA 2011-08-12 10:43:33 EDT
Resolving as fixed by Nitin's patch. Arne, if it has not been resolved in SR2, please reopen this defect. Thanks!