This content has been marked as final.
Show 1 reply
-
1. Re: How to override the <context-root> defined in jboss-web.xml in Wildfly 8.2.x
ctomc Nov 18, 2015 8:53 AM (in response to rodrigo.uchoa)when you deploy your application via CLI / Admin console you can provide different "runtime-name" of the deployment.
Which than effects the context root.
so myapp.war would be deployed to "/myapp"
only exception (as defined by servlet spec) for this is ROOT.war that gets deployed to "/"
This works if you don't have context-root set in jboss-web.xml otherwise jboss-web.xml will always win.
if you use deployments folder for deploying your app, you can control this by naming your war differently.