3 Replies Latest reply on Aug 25, 2006 10:24 AM by yxyang

    virtual-host and context-root for portal

    sverker

      Hi
      maybe I'm missing something obvious but I have not been able to deploy a portal on the root context in a virtual host, at least not in the usual way by seting virtual-host and context-root in jboss-web.xml.

      Is this correct that it's not possible to deploy a portal as a virtual host and in a specific context?

      This is what is preventing me from starting to use jboss portal so if someone can give me some hints to where to start looking I'm willing to look into adding this functionality to jboss/jboss-portal

        • 1. Re: virtual-host and context-root for portal

          Stack Trace?

          • 2. Re: virtual-host and context-root for portal
            sverker

            Hi
            no stacktrace, I just get a directory listing in my test war.

            I've used the helloworldportal as my testbed, here is my jboss-web.xml:

            <?xml version="1.0"?>
            <jboss-web>
             <virtual-host>localhost.abrahamsson.com</virtual-host>
             <context-root>/</context-root>
            </jboss-web>
            


            • 3. Re: virtual-host and context-root for portal

              I also cannot make it work.

              I use the HelloPortal for testing. and changed the jboss-web.xml file

              <?xml version="1.0"?>
              <jboss-web>
              <context-root>/hello</context-root>
              <virtual-host>www.test.com</virtual-host>
              </jboss-web>
              


              And then i access:

              http://www.test.com/hello/portal/foobar
              the browse shows:

              HTTP Status 404 - /hello/portal/foobar

              type Status report

              message /hello/portal/foobar

              description The requested resource (/hello/portal/foobar) is not available.



              Who can help? I am using jbossportal 2.2.1

              yang