java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions! If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml. A typical config looks like this; <listener> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> </listener>

Apache's JIRA Issue Tracker | Michael Cheng | 1 decade ago
  1. 0

    While deploy the new snapshot of the Myfaces lib, the startup console shows the following error message. [4/17/06 18:08:57:266 CST] 0000000a FacesConfigur I org.apache.myfaces.config.FacesConfigurator feedStandardConfig Reading standard config org/apache/myfaces/resource/standard-faces-config.xml [4/17/06 18:08:57:625 CST] 0000000a WebApp E Provider for javax.xml.parsers.SAXParserFactory cannot be found [4/17/06 18:08:57:672 CST] 0000000a ServletWrappe E SRVE0100E: Did not realize init() exception thrown by servlet Faces Servlet: java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions! If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml. A typical config looks like this; <listener> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> </listener> at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90) at javax.faces.webapp.FacesServlet.init(FacesServlet.java:88) at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:274) at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1398) at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:86) at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:759) at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:502) at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:391) at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:114) at com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:127) at com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:854) at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:807) at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:167) at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:391) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1228) at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1067) at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:547) at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:751) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:892) at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2003) at com.ibm.ws.runtime.component.ComponentImpl.runAsynchronousInitializer(ComponentImpl.java:159) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplications(ApplicationMgrImpl.java:745) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:524) at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:820) at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:649) at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:149) at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:820) at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:649) at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:402) at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:187) at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:133) at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:387) at com.ibm.ws.runtime.WsServer.main(WsServer.java:53) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at com.ibm.ws.bootstrap.WSLauncher.run(WSLauncher.java:218) at java.lang.Thread.run(Thread.java:568) The file list is shown as follows:- commons-beanutils-1.7.0.jar commons-codec-1.3.jar commons-collections-3.1.jar commons-digester-1.6.jar commons-el-1.0.jar commons-fileupload-1.0.jar commons-lang-2.1.jar commons-logging-1.0.4.jar commons-validator-1.2.0.jar jstl-1.1.0.jar myfaces-api-1.1.3-SNAPSHOT.jar myfaces-impl-1.1.3-SNAPSHOT.jar myfaces-shared-tomahawk-2.0.1-SNAPSHOT.jar oro-2.0.8.jar tomahawk-1.1.2-SNAPSHOT.jar xml-apis-1.0.b2.jar

    Apache's JIRA Issue Tracker | 1 decade ago | Michael Cheng
    java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions! If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml. A typical config looks like this; <listener> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> </listener>
  2. 0

    JSF 2.0 deployment on Websphere 7.0 exception

    Stack Overflow | 5 years ago | mainhoonnaa
    java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
  3. 0

    InstantiationException: PrettyNavigationHandler

    Stack Overflow | 2 years ago | Michael
    java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to run ADF application on Websphere 7.0 | Oracle Community

    oracle.com | 8 months ago
    java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
  6. 0

    Problem with classloader with jaxb, spring, websphere

    Coderanch | 5 years ago | Iii Aaa
    java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory

    12 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions! If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml. A typical config looks like this; <listener> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> </listener>

      at javax.faces.FactoryFinder.getFactory()
    2. JavaEE 7
      FacesServlet.init
      1. javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90)
      2. javax.faces.webapp.FacesServlet.init(FacesServlet.java:88)
      2 frames
    3. WebSphere
      ServletWrapper.initialize
      1. com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:274)
      2. com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1398)
      2 frames
    4. com.ibm.wsspi
      WebExtensionProcessor.createServletWrapper
      1. com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:86)
      1 frame
    5. WebSphere
      ServerImpl.start
      1. com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:759)
      2. com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:502)
      3. com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:391)
      4. com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:114)
      5. com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:127)
      6. com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:854)
      7. com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:807)
      8. com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:167)
      9. com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:391)
      10. com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1228)
      11. com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1067)
      12. com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:547)
      13. com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:751)
      14. com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:892)
      15. com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2003)
      16. com.ibm.ws.runtime.component.ComponentImpl.runAsynchronousInitializer(ComponentImpl.java:159)
      17. com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplications(ApplicationMgrImpl.java:745)
      18. com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:524)
      19. com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:820)
      20. com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:649)
      21. com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:149)
      22. com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:820)
      23. com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:649)
      24. com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:402)
      24 frames
    6. com.ibm.ws
      WsServer.main
      1. com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:187)
      2. com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:133)
      3. com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:387)
      4. com.ibm.ws.runtime.WsServer.main(WsServer.java:53)
      4 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
      3. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
      4. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
      5. java.lang.reflect.Method.invoke(Method.java:391)
      5 frames
    8. com.ibm.ws
      WSLauncher.run
      1. com.ibm.ws.bootstrap.WSLauncher.run(WSLauncher.java:218)
      1 frame
    9. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:568)
      1 frame