【问题标题】:JSF 1.2 application not getting deployed on websphere 8.5JSF 1.2 应用程序未部署在 websphere 8.5 上
【发布时间】:2015-03-17 21:45:50
【问题描述】:

我正在尝试在 WAS 8.5 服务器上部署 JSF 1.2 应用程序。但它在部署时抛出错误。

注意:在 WAS admin 中,在 JSF implementation use 控制台下,我选择了“Sun Reference Implementation 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)

【问题讨论】:

    标签: jsf websphere jsf-1.2 websphere-8 websphere-portal


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-08-01
      • 1970-01-01
      • 2011-08-18
      • 2013-02-15
      • 2013-11-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多