Change context path of an Entreprise Application (ear) in glassfish
<p>It is possible to change the context path of a web application (<code>war</code>) in glassfish, but is there any solution to change the context path of an Entreprise application (<code>ear</code>)?</p>

<p>I tried to change it from <code>glassfish-web.xml</code> like this:</p>

<pre><code>&lt;!-- Default context --&gt;
&lt;context-root&gt;/module1-web&lt;/context-root&gt;

&lt;!-- New context --&gt;
&lt;context-root&gt;/erp/module1-web&lt;/context-root&gt;
</code></pre>

<p>but it does not work. I tried to change it from the server but there is no way to change it.</p>

<p><strong>Web application context path</strong></p>

<p><a href="https://i.stack.imgur.com/tJSZa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tJSZa.png" alt="Web application context path"></a></p>

<p>Is there any solution for that problem?</p>

<p>Thank you.</p>