websphere - 在 WebSphere 9 中使用 Mojarra 2.2

标签 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

最佳答案

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

enter image description here

从下拉菜单中删除了选择 SunRI1.2 的选项。

关于websphere - 在 WebSphere 9 中使用 Mojarra 2.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37675606/

相关文章:

jsf-2 - 从流中包含包含 JSF 标签/组件的动态内容

java - WebSphere 7、JSF 2.0 和类加载器

jsf - p :dataTable multiple selection not working

websphere - 如何使用MDB从队列中按顺序读取消息?

oracle - WebSphere 到 Oracle - 不接受正确的密码

jsf - Fileupload 和 PrettyFaces 以及 JSF 2.2

jsf-2 - Weblogic 10.3.5 : <prefer-web-inf-classes> in weblogic. xml 不工作 VS。服务器类路径 JAR 文件

jsf-2 - 禁用 oam.Flash.RENDERMAP.TOKEN

websphere - Worklight 6.0 WL 开发服务器未启动