• Post Reply Bookmark Topic Watch Topic
  • New Topic

Eclipse error: Can not find the tag directory "/WEB-INF/tags"

 
Richard Hayward
Ranch Hand
Posts: 130
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looking for this error via google brings quite a few hits, but I can't see any that fix it in my case.
Could anyone tell me the cause or maybe how I could go about diagnosing the cause?

I'm using Eclipse Kepler Service Release 2
The error occurs at taglib directives such as:

<%@ taglib prefix="rst" tagdir="/WEB-INF/tags" %>

and yet, there is a /WEB-INF/tags directory. The error occurs in jsp files, irrespective of their location.
It occurs for files here:

WebContent/myfile.jsp
and also here:
WenContent/WEB-INF/myfile.jsp

I've tried Project>Clean

Do I need any particular jar files in WEB-INF/lib before that directive works? Currently, in that directory, I have:

javax.servlet.jsp.jstl-1.2.1.jar
javax.servlet.jsp.jstl-api-1.2.1.jar
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it actually causing a run-time problem, or is it just tagged as an error in eclipse?
 
Richard Hayward
Ranch Hand
Posts: 130
4
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Is it actually causing a run-time problem, or is it just tagged as an error in eclipse?


Using the most trivial tag, it works at run-time.

Odd thing is, I have another project in the same Eclipse workspace, that uses a taglib directive in, as far as I know, an identical fashion, yet Eclipse flags up no error.

Edit:

I've renamed & project in the Eclipse Project Explorer & then renamed back to the original name... error vanishes!
So, I guess the problem is gone, although it seems an odd way to fix it.

Thanks for your help Bear.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Glad it was vanquished so easily.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!