How to find out which versions of Jersey, Eclipselink and Mojarra are used in Glassfish 4.1?
Almost in all my projects I use JPA, JAX-RS and sometimes JSF.
Glassfish uses Jersey as implementation for JAX-RS, Eclipselink for JPA and Mojarra for JSF. But how to check which version of these modules is integrated in your Glassfish?
The most straightforward way to accomplish it is run simple command for each module:
# check Jersey version | |
unzip -p jersey-common.jar META-INF/MANIFEST.MF | grep Bundle-Version | |
# Output example: Bundle-Version: 2.10.4 | |
# check Eclipselink version | |
unzip -p org.eclipse.persistence.core.jar META-INF/MANIFEST.MF | grep Bundle-Version | |
# Output example: Bundle-Version: 2.5.2.v20140319-9ad6abd | |
# check JSF version | |
unzip -p javax.faces.jar META-INF/MANIFEST.MF | grep Bundle-Version | |
# Output example: Bundle-Version: 2.2.7 |