1 Reply Latest reply on Apr 15, 2008 2:51 AM by Evyatar Kafkafi

    How to have 2 context roots point to the same WAR

    Evyatar Kafkafi Newbie

      I need a way to have 2 URLs that will direct my client to the same WAR.

      For example:
      http://localhost:8080/URL1/myServlet
      http://localhost:8080/URL2/myServlet

      in jboss-web.xml file I can set the context root:
      <jboss-web>
      <context-root>URL1</context-root>
      </jboss-web>

      But I can't put 2 context roots:
      <jboss-web>
      <context-root>URL1</context-root>
      <context-root>URL2</context-root>
      </jboss-web>


      Is there any way to do it?


      TIA
      Evyatar