将Mojarra 2.2与WebSphere 9一起使用

时间:2016-06-07 09:33:54

标签: websphere jsf-2.2 mojarra

我正在尝试配置WebSphere 9以使用Mojarra 2.2,这是我到目前为止所做的:

1 - 创建了一个名为Faces的共享库,指向Mojarra文件: Shared Library

2 - 更改了应用程序的JSF实现以使用Mojarra: JSF Implementation

3 - 更改了类加载设置: Classloading settings

4 - 在共享库参考中包含新创建的库: Shared Libraries References

但是,当我启动服务器时,我在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

1 个答案:

答案 0 :(得分:1)

我为回答我自己的问题而道歉,但我现在正在使用正式版本(而不是测试版),显然,我试图实现的目标已经不再可能了:

enter image description here

从下拉列表中删除了选择SunRI1.2的选项。

相关问题