Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/algorithm/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JSF1.2应用程序未部署到WebSphere8.5上_Jsf_Websphere_Jsf 1.2_Websphere 8_Websphere Portal - Fatal编程技术网

JSF1.2应用程序未部署到WebSphere8.5上

JSF1.2应用程序未部署到WebSphere8.5上,jsf,websphere,jsf-1.2,websphere-8,websphere-portal,Jsf,Websphere,Jsf 1.2,Websphere 8,Websphere Portal,我正在尝试在WAS8.5服务器上部署JSF1.2应用程序。但它在部署时抛出了以下错误 注意:在WAS管理中,在JSF实现使用控制台下,我选择了“Sun参考实现1.2”选项。但问题依然存在 [12/17/14 15:12:41:222 PST] 00000095 webapp E com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextDestroyed SRVE0285E: Exception caught while

我正在尝试在WAS8.5服务器上部署JSF1.2应用程序。但它在部署时抛出了以下错误

注意:在WAS管理中,在JSF实现使用控制台下,我选择了“Sun参考实现1.2”选项。但问题依然存在

 [12/17/14 15:12:41:222 PST] 00000095 webapp        E com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextDestroyed SRVE0285E: Exception caught while destroying context: {0}
                             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:196)
    at org.apache.myfaces.context.servlet.FacesContextImplBase.getApplication(FacesContextImplBase.java:131)
    at org.apache.myfaces.webapp.AbstractFacesInitializer._dispatchApplicationEvent(AbstractFacesInitializer.java:261)
    at org.apache.myfaces.webapp.AbstractFacesInitializer.destroyFaces(AbstractFacesInitializer.java:293)
    at org.apache.myfaces.webapp.StartupServletContextListener.contextDestroyed(StartupServletContextListener.java:153)
    at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextDestroyed(WebApp.java:1748)
[12/17/14 15:12:41:222 PST]00000095 webapp E com.ibm.ws.webcontainer.webapp.webapp notifyServletContextDestroyed SRVE0285E:销毁上下文时捕获异常:{0}
java.lang.IllegalStateException:没有为此应用程序配置工厂。如果faces初始化根本不起作用,则会发生这种情况-确保正确包含基本faces应用程序所需的所有配置设置,并且包含所有必要的LIB。还要检查web应用程序和容器的日志输出是否存在任何异常!
如果您这样做了,但什么也没找到,那么错误可能是因为您使用了一些特殊的web容器,这些容器不支持通过TLD文件注册上下文侦听器,并且您的web.xml中没有设置上下文侦听器。
一个典型的配置如下所示;
org.apache.myfaces.webapp.StartupServletContextListener
位于javax.faces.FactoryFinder.getFactory(FactoryFinder.java:196)
位于org.apache.myfaces.context.servlet.FacesContextImplBase.getApplication(FacesContextImplBase.java:131)
位于org.apache.myfaces.webapp.AbstractFacesInitializer.\u dispatchApplicationEvent(AbstractFacesInitializer.java:261)
位于org.apache.myfaces.webapp.AbstractFacessinitializer.destroyFaces(AbstractFacessinitializer.java:293)
位于org.apache.myfaces.webapp.StartupServletContextListener.contextDestroyed(StartupServletContextListener.java:153)
在com.ibm.ws.webcontainer.webapp.webapp.notifyServletContextDestroyed上(webapp.java:1748)

您应该重新启动应用程序服务器(不仅仅是应用程序)。您还应该确保jsf-api.api和jsf-impl.jar不在应用程序的WEB-INF/lib中