The following issue has been raised on <email@example.com>.
Since Jetty bundles Jasper from GlassFish, we need to accommodate the scenario
Tim Vernum wrote:
> We're getting a regular stream of confusion about Jetty's loading of
> JSF implementations (and occasionally JSTL) from webapps. >
> I believe what Jetty is currently doing is not 100% correct.
> The JSP 2.1 spec says (from 7.3.2 of the PFD2, which is what I have
> sitting on my laptop):
> The following order of precedence applies (from highest to lowest) when
> building the taglib map (see the following sections for details):
> 1. If the container is Java EE platform compliant, the Map Entries
> for the tag libraries that are part of the Java EE platform. This
> currently includes the JavaServer Pages Standard Tag Library
> libraries and the JavaServer Faces
> 2. Taglib Map in web.xml
> 3. Implicit Map Entries from TLDs
> TLDs in JAR files in WEB-INF/lib
> TLDs under WEB-INF
> 4. Implicit Map Entries from the Container
> Jetty appears to be latching on to #1 and thus requires that webapps
> to use implementations from the container classpath.
> This would be correct is Jetty was Java EE compliant, but Jetty does
> not attempt to be Java EE complaint in all situations.
> So, if Jetty is running under Glassfish/Geronimo/etc, then a
> JSTL/JSF implementation should be available on the container
> classpath and this should override any implementation provided by
> the web-app.
> But in most of these cases, the user is running Jetty by itself,
> without a JSTL/JSF implementation on the container classpath. In
> which case Jetty isn't acting as a Java EE platform complaint
> container and item #1 doesn't apply.
> My proposal is that we drop the requirement that JSF be on the
> container classpath, and instead change it to a requirement that any
> JSF implementation on the container classpath will override the
> implementation in the webapp (which, by my reading, is what the spec
> actually calls for)
> Unless I've missed something in one of the other specs it seems like
> Jetty has acutally gone too far, and it making life difficult for
> people unnecessarily.