-
1. Re: setting up virtual hosts in JBoss-3.2.3?
martinbrice Feb 15, 2004 4:31 PM (in response to martinbrice)Here is the jboss-service.xml I currently have setup in case this helps.
<!-- Access logger -->
<!-- This valve clears any caller identity set by the realm
and provides access to the realm about the existence of an
authenticated caller to allow a web app to run with a realm
that support unauthenticated identities. It also establishes
any run-as principal for the servlet being accessed.
-->
<!-- Default context parameters -->
www.Yabber.com
MireilleFilion.com -
2. Re: setting up virtual hosts in JBoss-3.2.3?
martinbrice Feb 15, 2004 4:32 PM (in response to martinbrice)Shoot, here is another attempt at it.
<Engine name="MainEngine" defaultHost="localhost"> <Logger className="org.jboss.web.tomcat.Log4jLogger" verbosityLevel="debug" category="org.jboss.web.localhost.Engine"/> <Host name="localhost"> <!-- Access logger --> <Valve className="org.apache.catalina.valves.AccessLogValve" prefix="localhost_access" suffix=".log" pattern="common" directory="/log"/> <!-- This valve clears any caller identity set by the realm and provides access to the realm about the existence of an authenticated caller to allow a web app to run with a realm that support unauthenticated identities. It also establishes any run-as principal for the servlet being accessed. --> <Valve className="org.jboss.web.tomcat.security.SecurityAssociationValve"/> <!-- Default context parameters --> <DefaultContext cookies="true" crossContext="true" override="true"/> </Host> <Host name="www.Yabber.com"> <Alias>www.Yabber.com</Alias> <Valve className="org.apache.catalina.valves.AccessLogValve" prefix="Yabber" suffix=".log" pattern="common" directory="/log"/> <Valve className="org.jboss.web.tomcat.security.SecurityAssociationValve"/> <DefaultContext cookies="true" crossContext="true" override="true"/> <Context path="/" docBase="Yabber.war" reloadable="true"/> </Host> <Host name="www.MireilleFilion.com"> <Alias>MireilleFilion.com</Alias> <Valve className="org.apache.catalina.valves.AccessLogValve" prefix="MireilleFilion" suffix=".log" pattern="common" directory="/log"/> <Valve className="org.jboss.web.tomcat.security.SecurityAssociationValve"/> <DefaultContext cookies="true" crossContext="true" override="true"/> <Context path="/" docBase="MireilleFilion.war" reloadable="true"/> </Host> </Engine>
-
3. Re: setting up virtual hosts in JBoss-3.2.3?
martinbrice Feb 15, 2004 4:36 PM (in response to martinbrice)Nope, it didn't like that one either. :<
< Host name="www.Yabber.com">
< Alias>www.Yabber.com< /Alias>
< Valve className="org.apache.catalina.valves.AccessLogValve" prefix="Yabber" suffix=".log" pattern="common" directory="/log"/>
< Valve className="org.jboss.web.tomcat.security.SecurityAssociationValve"/>
< DefaultContext cookies="true" crossContext="true" override="true"/ >
< Context path="/" docBase="Yabber.war" reloadable="true"/ >
</ Host >
< Host name="www.MireilleFilion.com" >
< Alias>MireilleFilion.com< / Alias>
< Valve className="org.apache.catalina.valves.AccessLogValve" prefix="MireilleFilion" suffix=".log" pattern="common" directory="/log"/ >
< Valve className="org.jboss.web.tomcat.security.SecurityAssociationValve"/ >
< DefaultContext cookies="true" crossContext="true" override="true"/ >
< Context path="/" docBase="MireilleFilion.war" reloadable="true"/ >
</ Host >
I had to add some space to try to get it to display properly. :< -
4. Re: setting up virtual hosts in JBoss-3.2.3?
britten Feb 15, 2004 5:09 PM (in response to martinbrice)Some questions: have you successfully deployed virtual hosts under earlier versions of JBoss? Do each of the 5 apps deploy successfully as individual applications? Which JVM are you using?
I've tried playing with , nodes in the jboss-service.xml, as well as include a jboss-web.xml file with the proper <context-root> and <virtual-host> nodes, but still no dice
I ran into classloader issues before I finally gave up on JBoss virtual hosting and ran separate server instances -- have you got a jboss-app.xml file in your META-INF with a <loader-repository> entry? -
5. Re: setting up virtual hosts in JBoss-3.2.3?
martinbrice Feb 16, 2004 7:53 AM (in response to martinbrice)I was running with WebLogic 8.1 and j2sdk 1.4.2_03. I was able to get the previous virtual hosts running in WLS quite easily and was hoping it was just as easy with JBoss.