This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat 5 can not find Tag-Libs Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Tomcat 5 can not find Tag-Libs" Watch "Tomcat 5 can not find Tag-Libs" New topic
Author

Tomcat 5 can not find Tag-Libs

Velika Srbija
Ranch Hand

Joined: Jan 15, 2002
Posts: 171
Here is an excerpt from my web.xml file that define alias and location of one of several struts tag-libs:
(Note that following code is located at the proper place inside web.xml.)
<taglib>
<taglib-uri>/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/tag-libs/struts/struts-html.tld</taglib-location>
</taglib>


In my JSP page I'm using:
<%@ taglib uri="/struts-html.tld" prefix="html" %>


Problem with Tomcat 5.0.18:
Exception report
The server encountered an internal error () that prevented it from fulfilling this request
org.apache.jasper.JasperException: File "/WEB-INF/tag-libs/struts/struts-html.tld" not found
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:404)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:202)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:458)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523
...

I'm using IDEA 4.x
Why Tomcat 5.0.18 cannot find Struts tag-libraries?
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Well, let's take things at face value first: do you have a file /WEB-INF/tag-libs/struts/struts-html.tld in your application?

- Peter
Velika Srbija
Ranch Hand

Joined: Jan 15, 2002
Posts: 171
Of course, I do.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 5 can not find Tag-Libs
 
Similar Threads
struts defn in web.xml
Error: The requested resource /webapplication_name/ is not available
JSTL EL language not resolving
File "/WEB-INF/struts-html.tld" not found
Not able to use Struts Taglibs