An application is installed to WebSphere 8. I would like to know if there is any way to check if the application is using MyFaces or Mojarra and the version used.
Asked
Active
Viewed 387 times
1 Answers
2
Different ways for checking which vendor is it:
FacesContext.class.getPackage().getImplementationVendor();
returns vendor's name.- You could otherwise look into your classpath to find jsf jars, myfaces ones usually start with
myfaces-
prefix. - Sometimes some specific
myfaces-
params can be found in the web context (web.xml). You could search for them.
For the version, you can also retrieve its number from the FacesContext
:
FacesContext.class.getPackage().getImplementationVersion();
That will return the major implementation version. To check the minor ones, see the second link attached, once you know the vendor.
It seems WebSphere 8 uses a MyFaces implementation by default. You could find the JSF implementation jar and open its MANIFEST.MF file, the implementation version must be stored there.
See also: