3.5. Confirming the Version of your JBoss Enterprise Application Platform Installation
-V
with the startup script
You can retrieve information about the version of your JBoss Enterprise Application Platform installation by running the same script used to start the server with the -V
switch. For Linux and Unix installations this script is run.sh
and on Microsoft Windows installations it is run.bat
. Regardless of platform the script is located in JBOSS_HOME/bin
. Using these scripts to start your server is covered in Chapter 4, Launching the JBoss Enterprise Application Platform Server.
-V
switch will not start the server, nor does it require the server to be running. It displays information about the JBoss Enterprise Application Platform version and its configured Java environment. Below is an example of using this on an installation of JBoss Enterprise Application Platform on Red Hat Linux. Note the version number (JBoss 5.1.0.GA
or JBoss 5.1.1.GA
) displayed as the last item before the license information.
[bin]$ ./run.sh -V ========================================================================= JBoss Bootstrap Environment JBOSS_HOME: /opt/JBoss/EnterprisePlatform-5.1.0/jboss-eap-5.1/jboss-as JAVA: /usr/lib/jvm/jre-1.6.0-openjdk//bin/java JAVA_OPTS: -Dprogram.name=run.sh -server -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.lang.ClassLoader.allowArraySyntax=true -Djava.net.preferIPv4Stack=true CLASSPATH: /opt/JBoss/EnterprisePlatform-5.1.0/jboss-eap-5.1/jboss-as/bin/run.jar ========================================================================= JBoss 5.1.0 (build: SVNTag=JBPAPP_5_1_0 date=201009150028) Distributable under LGPL license. See terms of license at gnu.org. [bin]$
When the JBoss Enterprise Application Platform server is running you can retrieve its version information from the first page of the Web Console. This is located at http://localhost:8080/web-console/.
Figure 3.2. Version details displayed in Web Console
When the server is started, the version is echoed to the console, and written to JBOSS_HOME/server/production/log/boot.log
:
15:36:39,026 INFO [ServerImpl] Starting JBoss (Microcontainer)... 15:36:39,027 INFO [ServerImpl] Release ID: JBoss [EAP] 5.1.0 (build: SVNTag=JBPAPP_5_1_0 date=201009150028)