tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Rasmussen <>
Subject Re: Tomcat 6.0.8 & JSF 1.2 RI
Date Mon, 29 Jan 2007 22:44:52 GMT

I found that with Tomcat 6.0.8, I didn't need to initialize the
JspRuntimeContext, however my ELResolver is never actually hit.  I placed
print outs in the constructor and all the overridden methods of my
ELResolver to determine if they were ever called.  Only the constructor is
ever called.

The following code is in the listener.  It runs, because I see the
constructor print out.

  public void contextInitialized(ServletContextEvent servletContextEvent) {
    ServletContext servletContext = servletContextEvent.getServletContext();
    JspFactory jspFactory = JspFactory.getDefaultFactory();
    JspApplicationContext jspApplicationContext =
    jspApplicationContext.addELResolver(new DCELResolver());

When the pages are rendered, the getValue method and others are never
called.  I was certain to make sure no resolvers are in faces-confg.xml.  Is
there anything else that may cause the resolver stack to get recreated as
the default, and thus losing my resolver?

srowen wrote:
> I am seeing the same problem, via a different route. Check this out -- it
> solves this specific problem for me:
> I made a simple listener which calls
> Class.forName("org.apache.jasper.compiler.JspRuntimeContext"); first
> Sean

View this message in context:
Sent from the Tomcat - User mailing list archive at

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message