Bug 54391

Summary: Provide value for javax.servlet.context.orderedLibs attribute
Product: Tomcat 7 Reporter: Konstantin Kolinko <knst.kolinko>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P2    
Version: 7.0.34   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

Description Konstantin Kolinko 2013-01-08 22:56:18 UTC
In Servlet spec 3.0 Rev. a at the end of chapter 8.3 the following is written
(page #87 (109/230)):

In addition, a Servlet 3.0 compliant Servlet container must provide a
ServletContext attribute with name javax.servlet.context.orderedLibs,
whose value (of type java.util.List<java.lang.String>) contains the list of
names of JAR files in the WEB-INF/lib directory of the application represented by
the ServletContext, ordered by their web fragment names (with possible
exclusions if fragment JAR files have been excluded from absolute-ordering), or
null if the application does not specify any absolute or relative ordering.

In the source code there is a constant ServletContext.ORDERED_LIBS, but I see no code where it were used.

My understanding is that the list should contain just the jar names, e.g. ["foo.jar", "bar.jar"] and be absent if there is no ordering.
Comment 1 Mark Thomas 2013-01-09 11:59:30 UTC
This has been fixed in trunk and 7.0.x and will be included in 7.0.35 onwards.