Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-4282

Can't create a root context web app

XMLWordPrintable

    • Documentation (Ref Guide, User Guide, etc.), Compatibility/Configuration
    • Hide

      See description. There is a workaround if you are deploying the root context inside an EAR. There is no workaround if you need to deploy the root context as a standalone WAR.

      Show
      See description. There is a workaround if you are deploying the root context inside an EAR. There is no workaround if you need to deploy the root context as a standalone WAR.

      I am unable to deploy a web app as root context using the instructions here:
      http://wiki.jboss.org/wiki/Wiki.jsp?page=SetupARootContextApp

      One thing that is unclear is if ROOT.war "must" be removed from /deploy. In 4.2, root context web apps do not require removal of ROOT.war. IMHO, this is how it should work. If you deploy a WAR as the root context, it should simply override whatever was there before.

      If ROOT.war is removed, 5.0 will allow a root context web app as long as it is deployed from an EAR and specified as such in application.xml. Otherwise, it will fail.

      If you choose to deploy a stand-alone WAR and specify it as root context using jboss-web.xml, it will always fail - regardless of whether or not you remove ROOT.war.

      I have committed a test for root deployment in both 4.2 and 5.0. The test passes in 4.2, but not in 5.0. You can run it with:

      build one-test -Dtest=org.jboss.test.web.test.RootContextUnitTestCase

            rmaucher Remy Maucherat
            ssilvert@redhat.com Stan Silvert
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: