将 Mojarra 2.2 与 WebSphere 9 结合使用

问题描述 投票:0回答:2

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

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

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

3 - 更改了类加载设置:

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

但是,当我启动服务器时,我在 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
websphere jsf-2.2 mojarra
2个回答
1
投票

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

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


0
投票

那么你的结论是什么? 我们可以在 Websphere 9 上运行 Mojarra 2.2 吗?

© www.soinside.com 2019 - 2024. All rights reserved.