webtier@glassfish.java.net

Re: [webtier] JSTL dependency in pure facelets application

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Wed, 30 Sep 2009 08:19:45 -0700

On 9/30/09 4:47 AM, webtier_at_javadesktop.org wrote:
> Hello,
> a request for a stylesheet is handled by the JspViewHandler. As this view handler contains a line to set the resouce bundle for JSTL, this introduces a dependency on JSTL. I am not sure, if it is intended to have JSTL as dependency even if the user makes use of plain facelets. I feel that it is not very clean to have a dependeny on it, if you actually don't use it.
>
> There are more places using the Config class of JSTL. Below you can find the exception from Tomcat, which pointed me to this requirement.
>
There are JSTL dependencies in Facelets as well. For example, see the
docs for c:forEach varStatus.

Additionally, are you using the resource facility to serve the
stylesheet? If so, serving such a request should never go through the
ViewHandler.
> Best Regards
>
> Sebastian Hennebrueder
>
> SCHWERWIEGEND: Servlet.service() for servlet Faces Servlet threw exception
> java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.Config
> at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
> at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
> at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:321)
> at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:129)
> at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
> at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:311)
> [Message sent by forum member 'laliluna' (i_at_laliluna.de)]
>
> http://forums.java.net/jive/thread.jspa?messageID=366318
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>