Use this command line tool to find out information about the installed version of Java™ Persistence API (JPA) for WebSphere® Application Server.
The command syntax is as follows:
wsjpaversion.sh
wsjpaversion.bat
The version tool can be very useful when debugging problems with JPA in applications and for providing customer support teams with the information about the current JPA environment.
The command is run from the <WAS_HOME> directory.
WSJPA 1.2.0-SNAPSHOT version id: WSJPA-1.2.0-SNAPSHOT-r1118:1319 revision: 1118:1319 OpenJPA 1.2.0-SNAPSHOT version id: openjpa-1.2.0-SNAPSHOT-r420667:634150 Apache svn revision: 420667:634150 os.name: Linux os.version: 2.6.9-55.0.9.ELsmp os.arch: x86 java.version: 1.6.0 java.vendor: IBM Corporation java.class.path: app_server_root\dev\JavaEE\5.0\j2ee.jar app_server_root\plugins\com.ibm.ws.jpa.jar user.dir: /opt/WebSphere70/AppServer9/binOn Windows® operating systems, the output looks like the following:
C:\a.was.src\WASX Iww0811.63 S11.48 F11.32>wsjpaversion WSJPA 1.2.0-SNAPSHOT version id: WSJPA-1.2.0-SNAPSHOT-r1118:1356 revision: 1118:1356 OpenJPA 1.2.0-SNAPSHOT version id: openjpa-1.2.0-SNAPSHOT-r420667:638667M Apache svn revision: 420667:638667M os.name: Windows XP os.version: 5.1 build 2600 Service Pack 2 os.arch: x86 java.version: 1.6.0 java.vendor: IBM Corporation java.class.path: app_server_root\dev\JavaEE\5.0\j2ee.jar app_server_root\plugins\com.ibm.ws.jpa.jar c:\a.tools.common\java.tools user.dir: C:\a.was.src\WASX Iww0811.63 S11.48 F11.32 C:\a.was.src\WASX Iww0811.63 S11.48 F11.32>