Our app is working fine with the JSF RI and we want to switch to Myfaces.  We 
use precompiled jsp's, which seem to be a problem with Myfaces.   Our app seems 
to work fine when the jsp's are left alone, but when we precompile them, we run 
into all sorts of problems.     I've
read through the list and found John Schneider's FacesFilter.java 
(http://issues.apache.org/jira/browse/MYFACES-384).    I didn't apply the 
WebXml.java he suggests because it doesn't seem like they are needed with 
MyFaces-1.1.1.

When using FacesFilter with an url-pattern of *.jsp, things are working, but 
the first time any JSP is loaded, I get the exception below.    The strange 
thing is that after getting this exception once, if I shift-refresh the page, I 
never see it again until I take the appserver
down.   The strange thing here is that misc/reports/include/layout3.jsp has 
nothing to do with the current page (it is not included, it is not being run).  
  We are using the JBoss
classloader (if it matters), and I see this exception once after JBoss startup 
no matter what JSP I run (whether or not it uses JSF) because of my use of 
FacesFilter on *.jsp.  

We are using JBoss-4.0.2 and Java 1.5.    Any ideas?

exception

javax.servlet.ServletException: java.lang.ClassNotFoundException: No 
ClassLoaders found for: com.vfa.facility.jsp.misc.reports.include.layout3_jsp
com.vfa.servletfilters.FacesFilter.doFilter(FacesFilter.java:61)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:81)

root cause=

javax.faces.FacesException: java.lang.ClassNotFoundException: No ClassLoaders 
found for: com.vfa.facility.jsp.misc.reports.include.layout3_jsp
org.apache.myfaces.util.ClassUtils.simpleClassForName(ClassUtils.java:162)
org.apache.myfaces.webapp.webxml.WebXml.getFacesServletMappings(WebXml.java:89)

org.apache.myfaces.application.jsp.JspViewHandlerImpl.getServletMapping(JspViewHandlerImpl.java:347)
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:199)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
com.vfa.servletfilters.FacesFilter.doFilter(FacesFilter.java:53)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

Reply via email to