wsjpaversion command
Use this command line tool to find out information about the installed version of the Java™ Persistence API (JPA) 2.0 specification provider, WSJPA/OpenJPA, for WebSphere® Application Server.
Run the JPA commands (.bat on Windows or .sh on UNIX) from the <profile_root>/bin directory, to make sure that you have the latest version of the commands for your release.
Syntax
The command syntax is as follows:
wsjpaversion.sh
wsjpaversion.bat
Usage
The version tool can be useful when debugging problems with JPA in applications and providing customer support teams with the information about the current JPA environment.
The command is run from the <profile_root> directory.
WSJPA 2.1 Examples
Find
the version information of your JPA installation example output:
[root@atlanta bin]# ./wsjpaversion.sh
WSJPA 2.1.0-SNAPSHOT
version id: WSJPA-2.1.0-SNAPSHOT-r1119:2233
WebSphere JPA svn revision: 1119:2233
OpenJPA 2.1.0-SNAPSHOT
version id: openjpa-2.1.0-SNAPSHOT-r422266:1069208
Apache svn revision: 422266:1069208
os.name: Linux
os.version: 2.6.18-238.1.1.el5
os.arch: x86
java.version: 1.6.0
java.vendor: IBM Corporation
java.class.path:
/root/tc/WASX/as/dev/JavaEE/j2ee.jar
/root/tc/WASX/as/plugins/com.ibm.ws.jpa.jar
/root/tc/WASX/as/plugins/com.ibm.ws.prereq.commons-collections.jar
/root/tc/WASX/as/profiles/AppSrv01/bin
[root@atlanta bin]#
On Windows operating
systems, the output looks like the following:D:\Users\user\WASV8\IBM\WebSphere\AppServer\bin>wsjpaversion.bat
WSJPA 2.1.0-SNAPSHOT
version id: WSJPA-2.1.0-SNAPSHOT-r1119:2216
WebSphere JPA svn revision: 1119:2216
OpenJPA 2.1.0-SNAPSHOT
version id: openjpa-2.1.0-SNAPSHOT-r422266:1063829
Apache svn revision: 422266:1063829
os.name: Windows 7
os.version: 6.1
os.arch: amd64
java.version: 1.6.0
java.vendor: IBM Corporation
java.class.path:
D:\Users\user\WASV8\IBM\WebSphere\AppServer\dev\JavaEE\j2ee.jar
D:\Users\user\WASV8\IBM\WebSphere\AppServer\plugins\com.ibm.ws.jpa.jar
D:\Users\user\WASV8\IBM\WebSphere\AppServer\plugins\com.ibm.ws.prereq.
commons-collections.jar
.
C:\Program Files (x86)\IBM\Java60\jre\lib\ext\QTJava.zip
user.dir: D:\Users\user\WASV8\IBM\WebSphere\AppServer\bin
D:\Users\user\WASV8\IBM\WebSphere\AppServer\bin>
WSJPA 2.0 Examples
Find the version information of
your JPA installation example output:
C:\was70-GM>profiles\a1002.07\bin\wsjpaversion.bat
WSJPA 2.0.0-SNAPSHOT
version id: WSJPA-2.0.0-SNAPSHOT-r1118:1843
revision: 1118:1843
OpenJPA 2.0.0-SNAPSHOT
version id: openjpa-2.0.0-SNAPSHOT-r422266:897308
Apache svn revision: 422266:897308
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:
C:\was70-GM\feature_packs\jpa\dev\JavaEE\j2ee.jar
C:\was70-GM\feature_packs\jpa\plugins\com.ibm.ws.jpa.jar
C:\was70-GM\plugins\com.ibm.ws.prereq.commons-collections.jar
user.dir: C:\was70-GM\plugins\com.ibm.ws.jpa.jar