Getting error "Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory"
<p>I am getting the subject error ,when I am trying to deploy my application on weblogic server . I tried with the answers provided to other similar questions,but it did not solve my error . </p>

<p>Please let me know what I am doing wrong . </p>

<p>my <strong>web.xml</strong> </p>

<pre><code>&lt;web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee  
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"&gt;

    &lt;display-name&gt;FedEx Location Services&lt;/display-name&gt;
    &lt;description&gt;
    &lt;/description&gt;

    &lt;!-- Facelets composite component definitions. --&gt;
    &lt;context-param&gt;
        &lt;param-name&gt;javax.faces.FACELETS_LIBRARIES&lt;/param-name&gt;
        &lt;param-value&gt;/WEB-INF/includes/components/comp.taglib.xml
        &lt;/param-value&gt;
    &lt;/context-param&gt;
    &lt;context-param&gt;
        &lt;param-name&gt;com.icesoft.faces.connectionTimeout&lt;/param-name&gt;
        &lt;param-value&gt;1800000&lt;/param-value&gt;
    &lt;/context-param&gt;

    &lt;context-param&gt;
        &lt;param-name&gt;com.sun.faces.responseBufferSize&lt;/param-name&gt;
        &lt;param-value&gt;500000&lt;/param-value&gt;
    &lt;/context-param&gt;
    &lt;context-param&gt;
      &lt;param-name&gt;javax.faces.FACELETS_BUFFER_SIZE&lt;/param-name&gt;
      &lt;param-value&gt;500000&lt;/param-value&gt;
    &lt;/context-param&gt;

    &lt;context-param&gt;
        &lt;param-name&gt;javax.faces.DEFAULT_SUFFIX&lt;/param-name&gt;
        &lt;param-value&gt;.xhtml&lt;/param-value&gt;
    &lt;/context-param&gt;

    &lt;context-param&gt;
        &lt;param-name&gt;org.icefaces.compressResources&lt;/param-name&gt;
        &lt;param-value&gt;true&lt;/param-value&gt;
    &lt;/context-param&gt;

    &lt;context-param&gt;
        &lt;param-name&gt;org.icefaces.ace.theme&lt;/param-name&gt;
        &lt;param-value&gt;none&lt;/param-value&gt;
    &lt;/context-param&gt;
    &lt;context-param&gt;
        &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
        &lt;param-value&gt;/WEB-INF/applicationContext.xml, /WEB-INF/BOContext.xml
        &lt;/param-value&gt;
    &lt;/context-param&gt;

    &lt;listener&gt;
        &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
    &lt;/listener&gt; 

    &lt;listener&gt;
         &lt;listener-class&gt;com.sun.faces.config.ConfigureListener&lt;/listener-class&gt;
    &lt;/listener&gt; 

    &lt;!-- file upload Servlet --&gt;
    &lt;context-param&gt;
        &lt;param-name&gt;javax.faces.STATE_SAVING_METHOD&lt;/param-name&gt;
        &lt;param-value&gt;server&lt;/param-value&gt;
    &lt;/context-param&gt;
    &lt;context-param&gt;
        &lt;param-name&gt;com.sun.faces.enableMissingResourceLibraryDetection
        &lt;/param-name&gt;
        &lt;param-value&gt;true&lt;/param-value&gt;
    &lt;/context-param&gt;
    &lt;context-param&gt;
        &lt;param-name&gt;javax.faces.PROJECT_STAGE&lt;/param-name&gt;
        &lt;param-value&gt;Production&lt;/param-value&gt;
    &lt;/context-param&gt;
    &lt;context-param&gt;
        &lt;param-name&gt;javax.faces.FACELETS_SKIP_COMMENTS&lt;/param-name&gt;
        &lt;param-value&gt;true&lt;/param-value&gt;
    &lt;/context-param&gt;
    &lt;context-param&gt;
        &lt;param-name&gt;javax.faces.VALIDATE_EMPTY_FIELDS&lt;/param-name&gt;
        &lt;param-value&gt;false&lt;/param-value&gt;
    &lt;/context-param&gt;
    &lt;context-param&gt;
        &lt;param-name&gt;com.icesoft.faces.synchronousUpdate&lt;/param-name&gt;
        &lt;param-value&gt;true&lt;/param-value&gt;
    &lt;/context-param&gt;
    &lt;context-param&gt;
        &lt;param-name&gt;org.icefaces.connectionLostRedirectURI&lt;/param-name&gt;
        &lt;param-value&gt;'logout.jsp?requestFrom=connectionLost'&lt;/param-value&gt;
    &lt;/context-param&gt;
    &lt;context-param&gt;
        &lt;param-name&gt;org.icefaces.sessionExpiredRedirectURI&lt;/param-name&gt;
        &lt;param-value&gt;'logout.jsp?requestFrom=SessionExpired'&lt;/param-value&gt;
    &lt;/context-param&gt;
    &lt;context-param&gt;
        &lt;param-name&gt;com.sun.faces.externalizeJavaScript&lt;/param-name&gt;
        &lt;param-value&gt;true&lt;/param-value&gt;
    &lt;/context-param&gt;

    &lt;context-param&gt;
        &lt;param-name&gt;org.icefaces.fastBusyIndicator&lt;/param-name&gt;
        &lt;param-value&gt;true&lt;/param-value&gt;
    &lt;/context-param&gt;

    &lt;servlet&gt;
        &lt;servlet-name&gt;DownloadServlet&lt;/servlet-name&gt;
        &lt;servlet-class&gt;com.fedex.itrigger.common.DownloadServlet
        &lt;/servlet-class&gt;
    &lt;/servlet&gt;

    &lt;servlet&gt;
        &lt;servlet-name&gt;Resource Servlet&lt;/servlet-name&gt;
        &lt;servlet-class&gt;com.icesoft.faces.webapp.CompatResourceServlet
        &lt;/servlet-class&gt;
        &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;

    &lt;servlet&gt;
        &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
        &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
        &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;

    &lt;servlet&gt;
        &lt;servlet-name&gt;Startup Servlet&lt;/servlet-name&gt;
        &lt;servlet-class&gt;com.fedex.itrigger.common.StartupServlet&lt;/servlet-class&gt;
        &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;

    &lt;servlet-mapping&gt;
        &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
        &lt;url-pattern&gt;*.xhtml&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;

    &lt;servlet-mapping&gt;
        &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
        &lt;url-pattern&gt;/icefaces/*&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;

    &lt;servlet-mapping&gt;
        &lt;servlet-name&gt;Resource Servlet&lt;/servlet-name&gt;
        &lt;url-pattern&gt;/xmlhttp/*&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
    &lt;servlet-mapping&gt;
        &lt;servlet-name&gt;DownloadServlet&lt;/servlet-name&gt;
        &lt;url-pattern&gt;/pages/download/DownloadServlet&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;

    &lt;session-config&gt;
        &lt;session-timeout&gt;60&lt;/session-timeout&gt;
    &lt;/session-config&gt;

    &lt;!-- Welcome files --&gt;
    &lt;welcome-file-list&gt;
        &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
    &lt;mime-mapping&gt;
        &lt;extension&gt;png&lt;/extension&gt;
        &lt;mime-type&gt;image/png&lt;/mime-type&gt;
    &lt;/mime-mapping&gt;
    &lt;mime-mapping&gt;
        &lt;extension&gt;xml&lt;/extension&gt;
        &lt;mime-type&gt;application/xml&lt;/mime-type&gt;
    &lt;/mime-mapping&gt;


    &lt;filter&gt;
        &lt;filter-name&gt;OpenSessionInViewFilter&lt;/filter-name&gt;
        &lt;filter-class&gt;org.springframework.orm.hibernate4.support.OpenSessionInViewFilter
        &lt;/filter-class&gt;
        &lt;init-param&gt;
            &lt;param-name&gt;sessionFactoryBeanName&lt;/param-name&gt;
            &lt;param-value&gt;sessionFactory&lt;/param-value&gt;
        &lt;/init-param&gt;
        &lt;init-param&gt;
            &lt;param-name&gt;flushMode&lt;/param-name&gt;
            &lt;param-value&gt;AUTO&lt;/param-value&gt;
        &lt;/init-param&gt;
    &lt;/filter&gt;

    &lt;filter-mapping&gt;
        &lt;filter-name&gt;OpenSessionInViewFilter&lt;/filter-name&gt;
        &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
    &lt;/filter-mapping&gt;
</code></pre>

<p>my <strong>weblogic-application.xml</strong></p>

<pre><code>&lt;prefer-application-packages&gt;
        &lt;package-name&gt;antlr.*&lt;/package-name&gt;
        &lt;package-name&gt;javax.faces.*&lt;/package-name&gt;
        &lt;package-name&gt;com.sun.faces.*&lt;/package-name&gt;
        &lt;package-name&gt;com.bea.faces.*&lt;/package-name&gt;
    &lt;/prefer-application-packages&gt;
    &lt;prefer-application-resources&gt;
        &lt;resource-name&gt;javax.faces.*&lt;/resource-name&gt;
        &lt;resource-name&gt;com.sun.faces.*&lt;/resource-name&gt;
        &lt;resource-name&gt;com.bea.faces.*&lt;/resource-name&gt;
        &lt;resource-name&gt;META-INF/services/javax.servlet.ServletContainerInitializer&lt;/resource-name&gt;
        &lt;resource-name&gt;META-INF/services/com.sun.faces.spi.FacesConfigResourceProvider&lt;/resource-name&gt;
    &lt;/prefer-application-resources&gt;
&lt;/weblogic-application&gt;
</code></pre>

<p><strong>console error</strong> </p>

<pre><code>WARNING: ICEpush library missing. Push notification disabled.
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
&lt;Apr 5, 2016 10:37:45 AM GMT&gt; &lt;Error&gt; &lt;javax.enterprise.resource.webcontainer.jsf.config&gt; &lt;BEA-000000&gt; &lt;Critical error during deployment:
java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
        at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source)
        at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:591)
        at com.sun.faces.config.DbfFactory.initStatics(DbfFactory.java:248)
        at com.sun.faces.config.DbfFactory.&lt;clinit&gt;(DbfFactory.java:208)
        at com.sun.faces.config.ConfigManager$ParseTask.&lt;init&gt;(ConfigManager.java:890)
        Truncated. see log file for complete stacktrace
&gt;
&lt;Apr 5, 2016 10:37:45 AM GMT&gt; &lt;Warning&gt; &lt;HTTP&gt; &lt;BEA-101162&gt; &lt;User defined listener com.sun.faces.config.ConfigureListener failed: java.lang.RuntimeException: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V.
java.lang.RuntimeException: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292)
        at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:661)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
        Truncated. see log file for complete stacktrace
Caused By: java.lang.NoSuchMethodError: org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar([Lorg/apache/xerces/xni/parser/XMLInputSource;)V
        at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source)
        at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:591)
        at com.sun.faces.config.DbfFactory.initStatics(DbfFactory.java:248)
        at com.sun.faces.config.DbfFactory.&lt;clinit&gt;(DbfFactory.java:208)
        at com.sun.faces.config.ConfigManager$ParseTask.&lt;init&gt;(ConfigManager.java:890)
        Truncated. see log file for complete stacktrace
&gt;
&lt;Apr 5, 2016 10:37:45 AM GMT&gt; &lt;Error&gt; &lt;javax.faces&gt; &lt;BEA-000000&gt; &lt;Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory. Attempting to find backup.&gt;
&lt;Apr 5, 2016 10:37:45 AM GMT&gt; &lt;Error&gt; &lt;HTTP&gt; &lt;BEA-101216&gt; &lt;Servlet: "Faces Servlet" failed to preload on startup in Web application: "/imktApp/iTrigger".
java.lang.IllegalStateException: Could not find backup for factory javax.faces.context.FacesContextFactory.
        at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1008)
        at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:343)
        at javax.faces.webapp.FacesServlet.init(FacesServlet.java:302)
        at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:337)
        at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:288)
        Truncated. see log file for complete stacktrace
&gt;
&lt;Apr 5, 2016 10:37:45 AM GMT&gt; &lt;Error&gt; &lt;javax.faces&gt; &lt;BEA-000000&gt; &lt;Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory. Attempting to find backup.&gt;
&lt;Apr 5, 2016 10:37:45 AM GMT&gt; &lt;Error&gt; &lt;javax.enterprise.resource.webcontainer.jsf.config&gt; &lt;BEA-000000&gt; &lt;Unexpected exception when attempting to tear down the Mojarra runtime
java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory.
        at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1008)
        at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:343)
        at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:131)
        at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:328)
        at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:662)
        Truncated. see log file for complete stacktrace
&gt;
&lt;Apr 5, 2016 10:37:45 AM GMT&gt; &lt;Error&gt; &lt;Deployer&gt; &lt;BEA-149231&gt; &lt;Unable to set the activation state to true for the application "iTrigger".
weblogic.application.ModuleException: java.lang.IllegalStateException: Could not find backup for factory javax.faces.context.FacesContextFactory.
        at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140)
        at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
        at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213)
        at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
        Truncated. see log file for complete stacktrace
Caused By: java.lang.IllegalStateException: Could not find backup for factory javax.faces.context.FacesContextFactory.
        at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1008)
        at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:343)
        at javax.faces.webapp.FacesServlet.init(FacesServlet.java:302)
        at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:337)
        at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:288)
        Truncated. see log file for complete stacktrace
</code></pre>