(As asked in title:) How do I tell what version of JBoss I am running?
I am also curious what version of tomcat I am running. Does a specific version of JBoss correspond
You can retrieve information about the version of your JBoss EAP 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 actually start your server is dealt with in Chapter 4, Launching the JBoss EAP Server.
Just found another way to know the jboss version, so pointing out here:
In Linux
/Windows
use --version
parameter along with Jboss executable to know the Jboss Version
eg:
[immo@g012 bin]$ ./run.sh --version
========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /programs/jboss4.2-AES2.3Cert
JAVA: /programs/java/jdk1.7.0_09/bin/java
JAVA_OPTS: -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000
CLASSPATH: /programs/jboss4.2-AES2.3Cert/bin/run.jar:/programs/java/jdk1.7.0_09/lib/tools.jar
=========================================================================
Listening for transport dt_socket at address: 8787
JBoss 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
Here JBoss 4.0.4.GA
is the Jboss version
in windows this could be
run.bat --version
Also, in new versions of jboss the executable is standalone.sh
/ standalone.bat
If it helps there is also a jar-versions.xml
in my JBoss installation in JBoss root folder. This doesn't require you to wget
or jar xvf
.
E.g.
$ grep jboss-system.jar /opt/jboss-5.1.0.GA/jar-versions.xml | fold
<jar name="jboss-system.jar" specVersion="5.1.0.GA" specVendor="JBoss (http://
www.jboss.org/)" specTitle="JBoss" implVersion="5.1.0.GA (build: SVNTag=JBoss_5_
1_0_GA date=200905221634)" implVendor="JBoss Inc." implTitle="JBoss [The Oracle]
" implVendorID="http://www.jboss.org/" implURL="http://www.jboss.org/" sealed="f
alse" md5Digest="c97e8a3dde7433b6c26d723413e17dbc"/>
$
This URL (JMX-Console) should provide you the informations
http://localhost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&name=jboss.system%3Atype%3DServer
The tomcat version is implied by the jboss server version.
EDIT:
A complete list of versions you find here VersionOfTomcatInJBossAS
Where you reach your JBoss depends on the interface it is bound, using -b hostname If you start using JBoss with -b 0.0.0.0 option. That way, you can access the system using localhost, machineName and even the IP address. By default it's localhost, if you use th -b option you need to replace localhost by yourhostname.
/apps/jboss-eap-6.2/bin/standalone.sh -version
Sample output:
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /apps/jboss-eap-6.2
JAVA: /apps/jdks/jdk_1.7/bin/java
JAVA_OPTS: -server -XX:+UseCompressedOops -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
=========================================================================
21:07:20,380 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final-redhat-1
21:07:22,206 INFO [stdout] (main) JBoss EAP 6.2.2.GA (AS 7.3.2.Final-redhat-2)