如何找出我的 WebLogic 正在使用的 Mojarra 的当前版本? [英] How to find out the current version of Mojarra which my WebLogic is using?
问题描述
我正在尝试确定我的 WebLogic 12c 正在使用的 Mojarra 的当前版本.我怎么知道?
I'm trying to identify the current version of Mojarra my WebLogic 12c is using. How can I find out that?
推荐答案
一种方法是以编程方式从 Package
任意JSF类的信息,例如FacesContext
.
One way would be to programmatically extract the implementation detail from the Package
information of an arbitrary JSF class, such as FacesContext
.
Package p = FacesContext.class.getPackage();
System.out.println(p.getImplementationTitle() + " " + p.getImplementationVersion());
另一种方法是浏览 WebLogic 安装的 /wlserver/modules
文件夹中的 JSF 模块.在我的 12c 安装中,文件名显示 glassfish.jsf_1.0.0.0_2-1-20.jar
,它依次标识 Mojarra 2.1.20.
Another way would be to explore the JSF module in /wlserver/modules
folder of WebLogic installation. In my 12c installation, the filename says glassfish.jsf_1.0.0.0_2-1-20.jar
, which in turn identifies Mojarra 2.1.20.
这篇关于如何找出我的 WebLogic 正在使用的 Mojarra 的当前版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!