I took a look at this but don't know what to do next. EmbeddedCatalina.findHost() is returning the default host in the engine for both queries, each with the correct different virtual host names. When StandardHost.addChild() is called the first time, of course it works fine, dies on the second time, since the empty context root is trying to be added to the same StandardHost (the default host) twice.
Should EmbeddedCatalina.findHost() be returning two different StandardHosts? It seems like it, but where should they get created, before the call to EmbeddedCatalina.findHost() or inside it? Thanks, -b > -----Original Message----- > From: Scott M Stark [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 18, 2002 12:27 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] Virtual hosting question > > > It should work and it does work fine with Jetty. I'll have to look > into the tomcat behavior. > > xxxxxxxxxxxxxxxxxxxxxxxx > Scott Stark > Chief Technology Officer > JBoss Group, LLC > xxxxxxxxxxxxxxxxxxxxxxxx > > ----- Original Message ----- > From: "Brian Topping" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, September 18, 2002 8:10 AM > Subject: [JBoss-user] Virtual hosting question > > > Hi guys, > > I have map a different war deployment at the root of several different > name-based virtual hosts. In other words, http://a.foo.com and > http://b.foo.com should map directly to separate .war files. > > Right now, I have two separate war deployments, each with a > jboss-web.xml. > They look like: > > <jboss-web> > <context-root>/</context-root> > <virtual-host>a.digidemic.com</virtual-host> > </jboss-web> > > and > > <jboss-web> > <context-root>/</context-root> > <virtual-host>b.digidemic.com</virtual-host> > </jboss-web> > > but I am getting an error: > > 10:52:19,448 ERROR [URLDeploymentScanner] MBeanException: > Exception in MBean > operation 'checkIncompleteDeployments()' > Cause: Incomplete Deployment listing: > Packages waiting for a deployer: > <none> > Incompletely deployed packages: > [org.jboss.deployment.DeploymentInfo@716004b8 { > url=file:/C:/dev/jboss-3.0.1_tomcat-4.0.4/server/default/deplo > y/b.war/ } > deployer: org.jboss.web.catalina.EmbeddedCatalinaServiceSX@ff2e265c > status: Deployment FAILED reason: Error during deploy; - > nested throwable: > (java.lang.IllegalArgumentException: addChild: Child name '' > is not unique) > state: FAILED > watch: > file:/C:/dev/jboss-3.0.1_tomcat-4.0.4/server/default/deploy/b. war/WEB-INF/web .xml lastDeployed: 1032360729806 lastModified: 1032360644054 mbeans: ]MBeans waiting for classes: <none> MBeans waiting for other MBeans: <none> It makes sense what is going on, both are trying to use the same root mapping. Is there a way around this? Thanks for any info, brian ------------------------------------------------------- This SF.NET email is sponsored by: AMD - Your access to the experts on Hammer Technology! Open Source & Linux Developers, register now for the AMD Developer Symposium. Code: EX8664 http://www.developwithamd.com/developerlab _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
