Skip to main content

JSTL dependency in pure facelets application

1 reply [Last post]
laliluna
Offline
Joined: 2005-10-11

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)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Ryan Lubke

On 9/30/09 4:47 AM, webtier@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@laliluna.de)]
>
> http://forums.java.net/jive/thread.jspa?messageID=366318
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net