5 Replies Latest reply on Feb 16, 2004 7:53 AM by martinbrice

    setting up virtual hosts in JBoss-3.2.3?

    martinbrice

      Do you have a link to set this up? I'm running jboss-3.2.3 under linux (can you have symbolic links with linux? I read in one posting this doesn't work, is this true?) and I've tried everything to get virtual hosts to work but I can't. :< I've played with the jboss-service.xml and the individual jboss-web.xmls for the web apps for the virtual hosts but nothing works. I've been going at this for three days. Please help! I ditched bea's wls for this, and well, this was much easier in WebLogic.

        • 1. Re: setting up virtual hosts in JBoss-3.2.3?
          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

            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

              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

                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

                  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.