title: Get module versions through wsadmin (WAS 8.5)
body: <p>How can I get the version of a specific module in a deployed application on a WebSphere 8.5 server?</p>
  
  <p>I tried the following commands.</p>
  
  <p>Get all installed applications:</p>
  
  <pre><code>wsadmin&gt; $AdminApp list
  MyApplicationEAR
  </code></pre>
  
  <p>Get version of this application (MyApplicationEAR):</p>
  
  <pre><code>wsadmin&gt; $AdminApp view MyApplicationEAR -buildVersion
  Build-ID of application:  SNAPSHOT_17-07-2014_16-33-28_rev_123
  </code></pre>
  
  <p>List all modules of this application:</p>
  
  <pre><code>wsadmin&gt; $AdminApp listModules MyApplicationEAR
  MyApplicationEAR#MyApplicationWeb.war+WEB-INF/web.xml
  MyApplicationEAR#Toolbox.war+WEB-INF/web.xml
  </code></pre>
  
  <p>Get version of one module (MyApplicationWeb.war):</p>
  
  <pre><code>$AdminApp view MyApplicationEAR#MyApplicationWeb.war+WEB-INF/web.xml -buildVersion
  WASX7015E: Exception while executing command: "$AdminApp view MyApplicationEAR#MyApplicationWeb.war+WEB-INF/web.xml -buildVersion". Exceptioninfo:
  com.ibm.ws.scripting.ScriptingException: WASX7406E: The taskname buildVersion was not found in the application MyApplicationEAR.
  </code></pre>
  
  <p>But if I open the WebSphere admin console GUI (localhost:xxxx/ibm/console) and go to:</p>
  
  <pre><code>Applications &gt;
    Application Types &gt;
      WebSphere enterprise applications &gt;
        MyApplicationEAR &gt;
          MyApplicationEAR &gt;
            Display module build IDs
  </code></pre>
  
  <p>I can see the own versions of all modules.</p>
  
  <p>The version of the EAR is stored like the version of each module in the <strong>META-INF/MANIFEST.MF</strong> under <strong>Implementation-Version: XXX</strong>.</p>
  
  <p>Has somebody a hint, how to get these module versions with wsadmin (or with the Java AdminClient API)?</p>