I am using several custom TLDs, and I keep them all in WEB-INF/, outside of any JAR files. No trouble!
-Jake ----- Original Message ----- From: "Peter Lin" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 3:46 PM Subject: Re: tld files not found > > double check your jar file to make sure it doesn't > also have the tld file. if it does, it may cause a > conflict. I discovered this a long time ago and posted > a comment last year. > > make sure there's only one copy of the tld file. I > prefer to remove the tld from the jar and only have it > in WEB-INF/ > > peter lin > > --- Steve Bucknam <[EMAIL PROTECTED]> wrote: > > I am using Tomcat 4.1.18. I created a test.tld file > > in WEB-INF/tlds. > > The corresponding class file is in WEB-INF/classes. > > > > If I start tomcat and request a page that uses a > > custom tag, I get the > > following trace: > > > > > > org.apache.jasper.JasperException: This absolute uri > > (http://www.mycompany.com/tags) cannot be resolved > > in either web.xml or > > the jar files deployed with this application > > at > > > org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand > > ler.java:105) > > at > > > org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java > > :430) > > at > > > org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java > > :154) > > > > This error message implies that the .tld file needs > > to be in a jar file > > or there needs to be an alias in the web.xml file. > > I thought Tomcat > > would search all sub dirs of WEB-INF for any *.tld > > file. This doesn't > > seem to be happening. I also tried putting test.tld > > in the META-INF > > dir. This didn't help. If I create a jar file with > > the class and the > > tld file in the META-INF directory, I can > > successfully invoke the custom > > tags. > > > > Any thoughts? > > > > Steve > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Shopping - Send Flowers for Valentine's Day > http://shopping.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
