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