[jboss-jira] [JBoss JIRA] Created: (JBAS-8893) Multiple war files with same context path but different virtual host cause "Web mapping already exjsts for deployment"

Sverker Abrahamsson (JIRA) jira-events at lists.jboss.org
Wed Feb 16 19:07:13 EST 2011


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

                 Key: JBAS-8893
                 URL: https://issues.jboss.org/browse/JBAS-8893
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Web (Tomcat) service
    Affects Versions: 6.0.0.Final
         Environment: Windows 7 and CentOS Linux tested, jdk 1.6
            Reporter: Sverker Abrahamsson
            Assignee: Remy Maucherat


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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list