title: How to get the path of an .ear file in application server?
body: <p>I use JBoss 7.0 and WebSphere 8.5 application servers to deploy my <code>.ear</code> file which has <code>.war</code>s and EJB <code>.jar</code>s.</p>
  
  <p>How to get my <code>.ear</code> file path using Java eg. <code>jboss7.0/standalone/deployments/sample.ear</code>? If needed, I can use a separate Java servlet class.</p>