You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Bill Lucy (JIRA)" <de...@myfaces.apache.org> on 2019/03/14 14:53:00 UTC

[jira] [Created] (MYFACES-4284) ClassNotFoundException during initialization

Bill Lucy created MYFACES-4284:
----------------------------------

             Summary: ClassNotFoundException during initialization
                 Key: MYFACES-4284
                 URL: https://issues.apache.org/jira/browse/MYFACES-4284
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 2.3.3
            Reporter: Bill Lucy
            Assignee: Bill Lucy


A ClassNotFoundException can occur during initialization when a servlet mapping is defined which cannot be loaded by MyFaces.  We should update WebXml.getFacesServletMappings() to not throw an exception when it can't load a class.

javax.faces.FacesException: java.lang.ClassNotFoundException: <classname>
    at org.apache.myfaces.shared.util.ClassUtils.simpleClassForName(ClassUtils.java:239)
    at org.apache.myfaces.shared.util.ClassUtils.simpleClassForName(ClassUtils.java:215)
    at org.apache.myfaces.shared_impl.webapp.webxml.WebXml.getFacesServletMappings(WebXml.java:136)
    at org.apache.myfaces.spi.impl.DefaultWebConfigProvider.getFacesServletMappings(DefaultWebConfigProvider.java:46)
    at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:161)

This is related to the fix made in MYFACES-3629 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)