You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2009/10/05 05:33:56 UTC

DO NOT REPLY [Bug 47939] New: Jars added by VirtualWebappLoader are not scanned for TLDs

https://issues.apache.org/bugzilla/show_bug.cgi?id=47939

           Summary: Jars added by VirtualWebappLoader are not scanned for
                    TLDs
           Product: Tomcat 7
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: knst.kolinko@gmail.com


Created an attachment (id=24342)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24342)
WAR that reproduces the issue

I was using the attached web application to test recent VirtualWebappLoader
patch.

It uses VirtualWebappLoader to add jstl.jar and standard.jar from Tomcat
examples webapp. Its only page, choose.jsp, is copied from our examples and
uses several JSTL tags.

This web application works in the current TC 6.0.x, but not in trunk,
complaining that "The absolute uri: {..} cannot be resolved".

It starts working in trunk if I explicitly bundle a copy of c.tld with it and
reference it in web.xml. Thus it is an issue with TLD scanning, not with class
loading.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 47939] Jars added by VirtualWebappLoader are not scanned for TLDs

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47939

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #1 from Mark Thomas <ma...@apache.org> 2009-11-18 16:40:34 GMT ---
This is caused by trying to reference JARs located in a WEB-INF/lib directory.
The TLD scanning deliberately skips URLs that end /WEB-INF/lib/XXX.jar on the
classpath to avoid re-scanning JARs it has already scanned.

The URLs returned from the WEB-INF/lib scan and the classpath scan are
sufficiently different that I can't see a guaranteed way of determining if the
WEB-INF/lib in question belongs to the current web app or not, especially when
custom DirContext implementations and/or DirContext aliases are used.

The workaround is not to put the JARs in a directory structure that ends
/WEB-INF/lib/. On the basis that the workaround is a reasonable one and that I
can't see a viable way to fix this, I am marking it as WONTFIX.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org