问题
I'm trying to identify the current version of Mojarra my WebLogic 12c is using. How can I find out that?
回答1:
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());
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.
来源:https://stackoverflow.com/questions/20083068/how-to-find-out-the-current-version-of-mojarra-which-my-weblogic-is-using