在 WAS 控制台中启动我的应用程序时遇到问题。该应用程序是一个简单的 Hello World JSF servlet。
我正在使用 Websphere Application Server 版本 7.0.0.9。
带有 facelets 1.1.14 的 JSF 1.2
当我尝试启动应用程序时,我在日志中收到以下错误。知道如何解决这个问题吗?
[15/06/12 15:13:49:747 BST] 00000045 config I Initializing Sun's JavaServer Faces implementation (1.2_07-b03-FCS) for context '/JsfServletDeployTest'
[15/06/12 15:13:49:756 BST] 00000045 webapp E com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated SRVE0283E: Exception caught while initializing context: {0}
java.lang.NoClassDefFoundError: com.sun.faces.config.DbfFactory (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:140)
at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:276)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:202)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:175)
at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1678)
再往下,异常如下:
[15/06/12 15:13:49:771 BST] 00000045 servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0100E: Uncaught init() exception created by servlet Faces Servlet in application JsfServletDeployTest_war: java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:270)
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:164)
at com.ibm.ws.cache.servlet.ServletWrapper.init(ServletWrapper.java:238)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:358)