3 Replies Latest reply on Feb 1, 2012 1:42 AM by blabno

    Blank Page on AS7 Virtual Host Deployment

    nayabinghi

      Hi,

       

      I used the the console to upload a helloworld.war. I then created a virtual server and assigned helloworld as the default-web-module. However when go to the new virtual server I get a blank page. If I do the same with the IP address of the server I get the application with no problem. Here is what my configuration looks like. Any help on why this is happening will be freatly appreciated.

       

      <subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="default-host">

                  <connector name="http" protocol="HTTP/1.1" socket-binding="http" scheme="http"/>

                  <virtual-server name="default-host" enable-welcome-root="true">

                      <alias name="localhost"/>

                      <alias name="example.com"/>

                  </virtual-server>

                  <virtual-server name="jboss7" default-web-module="helloworld">

                      <alias name="jboss7.development.domain.com"/>

                  </virtual-server>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:weld:1.0"/>

       

      http://IP:8080/helloworld/hi.jsp works

      http://jboss7.development.domain.com:8080/helloworld/hi.jsp shows a blank white page

       

      Thank you,

        • 1. Re: Blank Page on AS7 Virtual Host Deployment
          blabno

          I've got the same issue. Have you solved this?

          • 2. Re: Blank Page on AS7 Virtual Host Deployment
            nayabinghi

            Hi Bernard,

             

            I did solve it. The problem was that unless you define virtual-hosts in  app.war/WEB-INF/jboss-web.xml JBoss will make the application available only to the default virtual-server. So you would need the following in app.war/WEB-INF/jboss-web.xml to make the application available for that virutal-server.

             

            <jboss-web>
               <virtual-host>domain.com</virtual-host>
               <virtual-host>www.domain.com</virtual-host>
            </jboss-web>

            • 3. Re: Blank Page on AS7 Virtual Host Deployment
              blabno

              I've also solved my problem, which was different. I've deployed one application into default-host to "/" context and the other application into different virtual-host but also to "/" context. It looks like default-host's contexts intefer with other virtual-hosts contexts.

              To solve this i've created additional virtual-host (so ended up with three: default-host, host-a, host-b) and i've moved app from default-host to that new virtual-host. I hope this was it.