[ http://jira.jboss.com/jira/browse/JBAS-1301?page=comments#action_12314849 ] Scott M Stark commented on JBAS-1301: -------------------------------------
The problem is that there are Host mbeans being created that should be aliases associated with a Host. At the following stack trace: Thread "main"@78 in group "jboss" status: RUNNING addHost():99, org.apache.tomcat.util.http.mapper.Mapper registerHost():297, org.apache.coyote.tomcat5.MapperListener init():119, org.apache.coyote.tomcat5.MapperListener start():1537, org.apache.coyote.tomcat5.CoyoteConnector startConnectors():449, org.jboss.web.tomcat.tc5.Tomcat5 handleNotification():475, org.jboss.web.tomcat.tc5.Tomcat5 these host mbeans are seen: [ObjectInstance[jboss.web:type=Host,host=choices.stage.bridges.com, org.apache.commons.modeler.BaseModelMBean], ObjectInstance[jboss.web:type=Host,host=localhost, org.apache.commons.modeler.BaseModelMBean], ObjectInstance[jboss.web:type=Host,host=cxonline.bridges.com, org.apache.commons.modeler.BaseModelMBean], ObjectInstance[jboss.web:type=Host,host=access.bridges.com, org.apache.commons.modeler.BaseModelMBean], ObjectInstance[jboss.web:type=Host,host=r.bridges.com, org.apache.commons.modeler.BaseModelMBean], ObjectInstance[jboss.web:type=Host,host=access.stage.bridges.com, org.apache.commons.modeler.BaseModelMBean], ObjectInstance[jboss.web:type=Host,host=choices.bridges.com, org.apache.commons.modeler.BaseModelMBean], ObjectInstance[jboss.web:type=Host,host=utahfinaid.bridges.com, org.apache.commons.modeler.BaseModelMBean], ObjectInstance[jboss.web:type=Host,host=cx.jboss.stage.bridges.com, org.apache.commons.modeler.BaseModelMBean]] When the contexts are latter mapped, there are matches to the alias host entry instead of the actual host, and therefore the host context is not updated. Any attempt to use another alias then results in a 400 error because the contexts were not updated. In the list shown, choices.stage.bridges.com, access.stage.bridges.com and cx.jboss.stage.bridges.com are aliases coming from the jboss-web.xml/virtual-host values. This looks like a problem with the jboss tomcat deployer not resolving the virtual host to the actual host name, but I need to track down where the Host mbeans are being created. > Tomcat backward compatbility loss VirtualHost->Alias mapping > ------------------------------------------------------------ > > Key: JBAS-1301 > URL: http://jira.jboss.com/jira/browse/JBAS-1301 > Project: JBoss Application Server > Type: Bug > Components: Web (Tomcat) service > Versions: JBossAS-4.0.1 Final, JBossAS-3.2.6 Final > Reporter: Andrew Oliver > Assignee: Scott M Stark > Fix For: JBossAS-3.2.7 Final > Attachments: server.xml > > Original Estimate: 3 hours > Remaining: 3 hours > > In JBoss 3.2.3 (Tomcat 4.x) it was possible to create a Virtual Host and set > of Aliases in the jboss-service.xml and then map the webapps to the aliases > through the app deployment descriptors. In tomcat 5 this works for *some* > apps that have been deployed. The rest throw a 400 error saying no virtual > host has been configured. The same apps mapped directly to the actual vhost > (not alias) do not throw this error. The previous behavior can be useful for > builds which target multiple environments (stage/test/prod/etc). Moreover it > should be preserverd for backward compatibility. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
