1 Reply Latest reply on Jul 4, 2017 11:16 AM by Abhijit Humbe

    Is jboss-web.xml mandatory for deploying WAR file on virtual host in JBoss EAP 6 / 7?

    Aditya Neurgaonkar Newbie

      I have configured virtual host in JBoss 6.x EAP. Configuration of web subsystem is as follows:


      <subsystem xmlns="urn:jboss:domain:web:2.2" default-virtual-server="virtualServer1" native="false">

            <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>

           <connector name="ajp" protocol="AJP/1.3" scheme="http" socket-binding="ajp"/>

           <connector name="myhttp" protocol="HTTP/1.1" scheme="http" socket-binding="myhttp"/>

           <virtual-server name="default-host" enable-welcome-root="true">

                <alias name="localhost"/>

                <alias name="example.com"/>


           <virtual-server name="virtualServer1" enable-welcome-root="true">

                <alias name="A.technologic.com"/>


           <virtual-server name="virtualServerA" enable-welcome-root="true">

                <alias name="B.technologic.com"/>




      I also maintain a properties file in my application, where I mention alias name, http/https port and my application context name.


      My application is deployed with and without jboss-web.xml. Since I also maintain a property file in my application which stores the said properties, Is "jboss-web.xml" required? If yes, why?