webtier@glassfish.java.net

JSTL dependency in pure facelets application

From: <webtier_at_javadesktop.org>
Date: Wed, 30 Sep 2009 04:47:54 PDT

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.

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