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

Multiple war files with same context path but different virtual host cause "Web mapping already exjsts for deployment"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • No Release
    • 6.0.0.Final
    • Web (Tomcat) service
    • None
    • Workaround Exists
    • Hide

      If all virtual hosts are defined as host entries in JBossweb config file should work around this problem

      Show
      If all virtual hosts are defined as host entries in JBossweb config file should work around this problem

      Example: Two war's will be deployed, The first has virtual-host=www.foo.com and context-root="/", the second has virtual-host=www.bar.com and context-root="/".

      This will cause an exception with message "Web mapping already exjsts for deployment" from org.jboss.web.tomcat.service.deployers.TomcatDeployer.performDeployInternal line 214.

      The cause of the issue is in TomcatDeployer.mapVirtualHosts, see the forum post for an analyze. A sidenote, the javadoc is incorrect on that method as well.

              rmaucher Remy Maucherat
              sverker_jira Sverker Abrahamsson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: