+

Search Tips   |   Advanced Search

wsjpaversion command

Use this command-line tool to find out information about the installed version of Java Persistence API (JPA) for WebSphere Application Server. wsjpaversion.sh

Find the version information of the JPA installation example output:

On UNIX operating systems, the output looks like the following:

# cd <profile_root>/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: (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>


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


Related tasks

  • Troubleshooting JPA applications