Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Context Path in Jboss

There is a war deployed in JBOSS currently. If I want to figure out the context path for the WAR in Jboss, where should I be looking at? Server.xml?

like image 561
Priyank Avatar asked Feb 04 '23 07:02

Priyank


1 Answers

If your application is packaged as a WAR file then you can create jboss-web.xml under WEB-INF folder of WAR file and specify the context-root in jboss-web.xml like this -

<jboss-web>
  <context-root>MyWebAppContext</context-root>
</jboss-web>

If your application is packaged as an EAR file then you can specify context-root in META-INF/application.xml of EAR like this

<module>  
  <web>  
    <web-uri>MyWAR.war</web-uri>  
    <context-root>MyWebAppContext</context-root>  
  </web>  
</module>  
like image 58
netlogger Avatar answered Feb 27 '23 02:02

netlogger