我正在尝试配置WebSphere 9以使用Mojarra 2.2,这是我到目前为止所做的:
1 - 创建了一个名为Faces的共享库,指向Mojarra文件:
但是,当我启动服务器时,我在SystemOut.log上看到以下消息:
[07-06-2016 10:43:44:467 BST] 0000005e application E Unable to obtain com.sun.faces.flow.FlowDiscoveryCDIExtension from CDI implementation. Flows described with javax.faces.flow.builder.FlowDefinition are unavailable.
以下是SystemErr.log:
[07-06-2016 10:14:44:905 BST] 0000005e SystemErr R java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory. Attempting to find backup.
[07-06-2016 10:14:44:906 BST] 0000005e SystemErr R at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:270)
我错过了什么? Mojarra 2.2与WebSphere 9不兼容吗? 我已经尝试了几十种不同的组合(MyFaces 2.2,MyFaces 2.0,父类首先用于类加载器,父类最后用于类加载器,用于库的隔离类加载器等),但它们都失败了。 不用说我的所有CDI bean都会导致以下错误:
Target unreachable, identifier 'whatever' resolved to null