You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2000/12/22 11:31:26 UTC

BugRat Report #651 has been filed.

Bug report #651 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com/BugRatViewer/ShowReport/651>

REPORT #651 Details.

Project: Tomcat
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: medium
Severity: serious
Confidence: public
Environment: 
   Release: 3.2
   JVM Release: JDK1.3
   Operating System: NT
   OS Release: 4
   Platform: x86

Synopsis: 
"taglib-location" in web.xml interpreted incorrectly

Description:
The "taglib-location" element in web.xml is interpreted 
incorrectly if it is a relative location. 

Example:
WEB-INF/lib/foo.jar is interpreted as /WEB-INF/WEB-INF/lib/foo.jar, i.e. WEB-INF is incorrectly appended.

According to the servlet 2.2 specification the DTD says:
"<!--
the taglib-location element contains the location (as a resource
relative to the root of the web application) where to find the Tag
Libary Description file for the tag library.
-->"
The root of the application is / and not /WEB-INF.

If you think that your interpretation *is* correct, then 
please submit a clarification of this for inclusion 
in the next revision of the specification/DTD.

Currently web applications developed with relative tablib locations 
are not portable, since Resin adds the prefix "/" and 
not "/WEB-INF", and Resin does not understand absolute locations 
as Tomcat does.

/Rickard (rickard@jboss.org)