1 Reply Latest reply on Aug 11, 2014 4:32 PM by pdegave

    root context path for jboss

    samwun9988

      How to configure jboss AS so that my application started at http://xxx.xxx.xxx.xxx/ ?

      My jboss 7.1.1.Final AS runs only 1 application.

       

      I changed the web.xml to be

      <context-param>

      <param-name>context-root</param-name>

      <param-value>/</param-value>

      </context-param>

       

      I created a jboss-web.xml with this code inside

      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-web>

      <context-root>/</context-root>

      </jboss-web>

       

      I also tied the change at /META-INF/application.xml

       

      <web>

      <web-uri>bank-webapp.war</web-uri>

      <context-root>mymoney</context-root>

      </web>

       

      I read the above info at;:

      https://community.jboss.org/wiki/HowDoIOverrideTheWebContextRoot

       

      And I found this at the atg documentation

       

      I changed the MANIFEST.MF of my app to be

       

      But none of those options worked.

       

      I just want to accomplish the following:

      change from htttp://www.mystore.com/store to htttp://www.mystore.com/ (This an example is not the actual site)

       

      I have also looked into the standard/configuration/standard-full.xml file, but I could not found any attribute that is relevant of setting context-root for the jboss.

      I will really appreciate your help.

       

      Regards,

      Sam

        • 1. Re: root context path for jboss
          pdegave

          Hi Sam,

           

          Edit the file $JBOSS_HOME/standalone/configuration/standalone.xml and try by changing the value of this attrinbute "enable-welcome-root" property to false and do the test again.

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

           

          Regards,

          Pankaj D.