[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.jdt] Re: Tell Eclipse where to find tag library descriptor

Ryan Thompson wrote:
I have a JEE project which build fine with Ant, deploys perfectly to JBoss, and runs without any trouble. This project includes a few custom tag libraries, which are also working without any difficulties.

The problem is with the Eclipse IDE (Ganymede): in every single JSP file which uses our custom tags, the JSP parser flags the taglib include line with with an error "Cannot find the tag library descriptor for (example).tld"

This also causes every use of the tab library to be flagged as an error, and since the IDE doesn't have their definition, it can't check tag parameters, etc.
Our perfectly-working JSP files are a sea of red errors, and my eyes are beginning to burn.


How can I simply tell Eclipse "The tag library descriptor you are looking for is "src/web/WEB-INF/(example)-taglib/(example).tld"?

If your JSP files are also under src/web and you're using paths relative to that, or the URIs in the TLD files themselves, it should already be finding them. Otherwise the .settings/org.eclipse.wst.common.component needs a addition like <wb-resource deploy-path="/" source-path="/src/web"/> and your project needs the org.eclipse.wst.common.modulecore.ModuleCoreNature nature on it.


But then, if this is a Java project meant to be built through Maven, they provide some sort of WTP project support for you.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational