Multiple webapps on virtual hosts

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Multiple webapps on virtual hosts

Ravish Kamath
All,

We have a store set-up on Ofbiz, lets say
www.abc.com/ecommerce/control/main. As a next step we are looking at
launching another store targetted at a sub-vertical within the abc space
with a different view/catalog running of the same instance. The new store
should be accessible @ www.def.abc.com/defecommerce/control/main. The
following are the steps we followed:

a) Created a new Store
b) Created a new website and associated the store created in step a with
this site.
c) Replicated the ecommerce webapp and renamed it as defecommerce.
d) Altered the ofbiz-component.xml and added the following entry:

    <webapp name="defecommerce"
        title="Def ECommerce"
        server="default-server"
        location="webapp/defecommerce"
        mount-point="/defecommerce"
        app-bar-display="false">
                <virtual-host host-name="www.def.abc.com"/>
        </webapp>

e) Edited the web.xml under WEB-INF, to point to the new website id.
f) On restarting the ofbiz instance, while both the ecommerce instances can
be accessed, the static resources served out of the images component, are
not being served for the defecommerce webapp. Access logs show that all
static resource fetch requests have received http 400 error code response.
Would this means that all static resources need to be served out of the same
webapp, defecommerce ?

TIA,
ravish

Reply | Threaded
Open this post in threaded view
|

Re: Multiple webapps on virtual hosts

cjhowe
you need to change the webapp configuratino for the
images component to have virtual hosts for def.abc.com
as well as abc.com (as well as localhost,etc)  I'm
sure there's a more elegant way of doing it so that
you don't have to explicitly list every host, but this
should get your current setup going.

--- Ravish Kamath <[hidden email]> wrote:

> All,
>
> We have a store set-up on Ofbiz, lets say
> www.abc.com/ecommerce/control/main. As a next step
> we are looking at
> launching another store targetted at a sub-vertical
> within the abc space
> with a different view/catalog running of the same
> instance. The new store
> should be accessible @
> www.def.abc.com/defecommerce/control/main. The
> following are the steps we followed:
>
> a) Created a new Store
> b) Created a new website and associated the store
> created in step a with
> this site.
> c) Replicated the ecommerce webapp and renamed it as
> defecommerce.
> d) Altered the ofbiz-component.xml and added the
> following entry:
>
>     <webapp name="defecommerce"
>         title="Def ECommerce"
>         server="default-server"
>         location="webapp/defecommerce"
>         mount-point="/defecommerce"
> app-bar-display="false">
> <virtual-host host-name="www.def.abc.com"/>
> </webapp>
>
> e) Edited the web.xml under WEB-INF, to point to the
> new website id.
> f) On restarting the ofbiz instance, while both the
> ecommerce instances can
> be accessed, the static resources served out of the
> images component, are
> not being served for the defecommerce webapp. Access
> logs show that all
> static resource fetch requests have received http
> 400 error code response.
> Would this means that all static resources need to
> be served out of the same
> webapp, defecommerce ?
>
> TIA,
> ravish
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Multiple webapps on virtual hosts

G.Venkata Phanindra
In reply to this post by Ravish Kamath
Hi,
We too had a similar Problem, One of the Hack or a work arround we found was
to define one more images Instance of images by adding

    <webapp name="images"
        title="Images"
        server="default-server"
        location="webapp/images"
        mount-point="/images"
        app-bar-display="false">
        <virtual-host host-name="hostname"/>
    </webapp>
But we r creating two instances of images.
Phani

On 9/15/06, Ravish Kamath <[hidden email]> wrote:

>
> All,
>
> We have a store set-up on Ofbiz, lets say
> www.abc.com/ecommerce/control/main. As a next step we are looking at
> launching another store targetted at a sub-vertical within the abc space
> with a different view/catalog running of the same instance. The new store
> should be accessible @ www.def.abc.com/defecommerce/control/main. The
> following are the steps we followed:
>
> a) Created a new Store
> b) Created a new website and associated the store created in step a with
> this site.
> c) Replicated the ecommerce webapp and renamed it as defecommerce.
> d) Altered the ofbiz-component.xml and added the following entry:
>
>     <webapp name="defecommerce"
>         title="Def ECommerce"
>         server="default-server"
>         location="webapp/defecommerce"
>         mount-point="/defecommerce"
>         app-bar-display="false">
>                 <virtual-host host-name="www.def.abc.com"/>
>         </webapp>
>
> e) Edited the web.xml under WEB-INF, to point to the new website id.
> f) On restarting the ofbiz instance, while both the ecommerce instances
> can
> be accessed, the static resources served out of the images component, are
> not being served for the defecommerce webapp. Access logs show that all
> static resource fetch requests have received http 400 error code response.
> Would this means that all static resources need to be served out of the
> same
> webapp, defecommerce ?
>
> TIA,
> ravish
>
>


--
G.Venkata Phanindra
Mob:: 9849852989
Reply | Threaded
Open this post in threaded view
|

RE: Multiple webapps on virtual hosts

Ravish Kamath
Chris/Venkata,

Here is the set-up we attempted based on your suggestions:

Based on Venkata's suggestion
-----------------------------

Images component - ofbiz-component.xml

    <webapp name="images"
        title="Images"
        server="default-server"
        location="webapp/images"
        mount-point="/images"
        app-bar-display="false">
        </webapp>

    <webapp name="images"
        title="Images"
        server="default-server"
        location="webapp/images"
        mount-point="/images"
        app-bar-display="false">
                <virtual-host host-name="www.def.abc.com"/>
        </webapp>

Ecommerce component - ofbiz-component.xml

            <webapp name="ecommerce"
        title="ECommerce"
        server="default-server"
        location="webapp/ecommerce"
        mount-point="/ecommerce"
        app-bar-display="false">
        </webapp>

    <webapp name="nqcommerce"
        title="Nasdaq ECommerce"
        server="default-server"
        location="webapp/nqcommerce"
        mount-point="/nqcommerce"
        app-bar-display="false">
                <virtual-host host-name="def.abc.com"/>
        </webapp>

Result:

http://localhost:8080/ecommerce/control/main - works fine with all static
resources being accessed

http://def.abc.com/ecommerce/control/main - returns 400 bad request,
response code.

Based on Chris's suggestion
---------------------------

Images component - ofbiz-component.xml

    <webapp name="images"
        title="Images"
        server="default-server"
        location="webapp/images"
        mount-point="/images"
        app-bar-display="false">
                <virtual-host host-name="abc.def.com"/>
                <virtual-host host-name="localhost"/>
        </webapp>

Ecommerce component - ofbiz-component.xml

    <webapp name="ecommerce"
        title="ECommerce"
        server="default-server"
        location="webapp/ecommerce"
        mount-point="/ecommerce"
        app-bar-display="false">
        </webapp>

    <webapp name="nqcommerce"
        title="Nasdaq ECommerce"
        server="default-server"
        location="webapp/nqcommerce"
        mount-point="/nqcommerce"
        app-bar-display="false">
                <virtual-host host-name="abc.def.com"/>
        </webapp>

Result:

http://localhost:8080/ecommerce/control/main - returns 400 bad request,
response code

http://def.abc.com:8080/nqcommerce/control/main - returns 400 bad request,
response code

It would seem like, virtual-host is mapped to a single webapp. i.e. the
relationship is one-to-one. Are there anyother steps I can try out ?

thank you,
ravish

-----Original Message-----
From: G.Venkata Phanindra [mailto:[hidden email]]
Sent: Friday, September 15, 2006 10:51 AM
To: [hidden email]
Subject: Re: Multiple webapps on virtual hosts


Hi,
We too had a similar Problem, One of the Hack or a work arround we found was
to define one more images Instance of images by adding

    <webapp name="images"
        title="Images"
        server="default-server"
        location="webapp/images"
        mount-point="/images"
        app-bar-display="false">
        <virtual-host host-name="hostname"/>
    </webapp>
But we r creating two instances of images.
Phani

On 9/15/06, Ravish Kamath <[hidden email]> wrote:

>
> All,
>
> We have a store set-up on Ofbiz, lets say
> www.abc.com/ecommerce/control/main. As a next step we are looking at
> launching another store targetted at a sub-vertical within the abc space
> with a different view/catalog running of the same instance. The new store
> should be accessible @ www.def.abc.com/defecommerce/control/main. The
> following are the steps we followed:
>
> a) Created a new Store
> b) Created a new website and associated the store created in step a with
> this site.
> c) Replicated the ecommerce webapp and renamed it as defecommerce.
> d) Altered the ofbiz-component.xml and added the following entry:
>
>     <webapp name="defecommerce"
>         title="Def ECommerce"
>         server="default-server"
>         location="webapp/defecommerce"
>         mount-point="/defecommerce"
>         app-bar-display="false">
>                 <virtual-host host-name="www.def.abc.com"/>
>         </webapp>
>
> e) Edited the web.xml under WEB-INF, to point to the new website id.
> f) On restarting the ofbiz instance, while both the ecommerce instances
> can
> be accessed, the static resources served out of the images component, are
> not being served for the defecommerce webapp. Access logs show that all
> static resource fetch requests have received http 400 error code response.
> Would this means that all static resources need to be served out of the
> same
> webapp, defecommerce ?
>
> TIA,
> ravish
>
>


--
G.Venkata Phanindra
Mob:: 9849852989

Reply | Threaded
Open this post in threaded view
|

RE: Multiple webapps on virtual hosts

cjhowe


--- Ravish Kamath <[hidden email]> wrote:

> Chris/Venkata,

> Based on Chris's suggestion
> ---------------------------
>
> Images component - ofbiz-component.xml
>
>     <webapp name="images"
>         title="Images"
>         server="default-server"
>         location="webapp/images"
>         mount-point="/images"
> app-bar-display="false">
> <virtual-host host-name="abc.def.com"/>
> <virtual-host host-name="localhost"/>
---------------------------------------
Try:
<virtual-host host-name="def.abc.com"/>
<virtual-host host-name="abc.com"/><!-- this missing
is what caused the 400 on abc.com-->
<virtual-host host-name="localhost"/>

----------------------------------------

> </webapp>
>
> Ecommerce component - ofbiz-component.xml
>
>     <webapp name="ecommerce"
>         title="ECommerce"
>         server="default-server"
>         location="webapp/ecommerce"
>         mount-point="/ecommerce"
> app-bar-display="false">
> </webapp>
>
>     <webapp name="nqcommerce"
>         title="Nasdaq ECommerce"
>         server="default-server"
>         location="webapp/nqcommerce"
>         mount-point="/nqcommerce"
-----------------------------------------
Do you actually have files located at
/applications/ecommerce/webapp/nqcommerce?

ie
/applications/ecommerce/webapp/nqcommerce/WEB-INF/controller.xml
------------------------------------------

> app-bar-display="false">
> <virtual-host host-name="abc.def.com"/>
> </webapp>
>
> Result:
>
> http://localhost:8080/ecommerce/control/main -
> returns 400 bad request,
> response code
>
> http://def.abc.com:8080/nqcommerce/control/main -
> returns 400 bad request,
> response code
>
> It would seem like, virtual-host is mapped to a
> single webapp. i.e. the
> relationship is one-to-one. Are there anyother steps
> I can try out ?
>
> thank you,
> ravish
>
> -----Original Message-----
> From: G.Venkata Phanindra
> [mailto:[hidden email]]
> Sent: Friday, September 15, 2006 10:51 AM
> To: [hidden email]
> Subject: Re: Multiple webapps on virtual hosts
>
>
> Hi,
> We too had a similar Problem, One of the Hack or a
> work arround we found was
> to define one more images Instance of images by
> adding
>
>     <webapp name="images"
>         title="Images"
>         server="default-server"
>         location="webapp/images"
>         mount-point="/images"
>         app-bar-display="false">
>         <virtual-host host-name="hostname"/>
>     </webapp>
> But we r creating two instances of images.
> Phani
>
> On 9/15/06, Ravish Kamath <[hidden email]>
> wrote:
> >
> > All,
> >
> > We have a store set-up on Ofbiz, lets say
> > www.abc.com/ecommerce/control/main. As a next step
> we are looking at
> > launching another store targetted at a
> sub-vertical within the abc space
> > with a different view/catalog running of the same
> instance. The new store
> > should be accessible @
> www.def.abc.com/defecommerce/control/main. The
> > following are the steps we followed:
> >
> > a) Created a new Store
> > b) Created a new website and associated the store
> created in step a with
> > this site.
> > c) Replicated the ecommerce webapp and renamed it
> as defecommerce.
> > d) Altered the ofbiz-component.xml and added the
> following entry:
> >
> >     <webapp name="defecommerce"
> >         title="Def ECommerce"
> >         server="default-server"
> >         location="webapp/defecommerce"
> >         mount-point="/defecommerce"
> >         app-bar-display="false">
> >                 <virtual-host
> host-name="www.def.abc.com"/>
> >         </webapp>
> >
> > e) Edited the web.xml under WEB-INF, to point to
> the new website id.
> > f) On restarting the ofbiz instance, while both
> the ecommerce instances
> > can
> > be accessed, the static resources served out of
> the images component, are
> > not being served for the defecommerce webapp.
> Access logs show that all
> > static resource fetch requests have received http
> 400 error code response.
> > Would this means that all static resources need to
> be served out of the
> > same
> > webapp, defecommerce ?
> >
> > TIA,
> > ravish
> >
> >
>
>
> --
> G.Venkata Phanindra
> Mob:: 9849852989
>
>

Reply | Threaded
Open this post in threaded view
|

RE: Multiple webapps on virtual hosts

Ravish Kamath
Chris,

With the modification (3 sets attempted to arrive @ some conclusions below),

    <webapp name="images"
        title="Images"
        server="default-server"
        location="webapp/images"
        mount-point="/images"
        app-bar-display="false">
        <virtual-host host-name="abc.com"/>
        <virtual-host host-name="def.abc.com"/>
        <virtual-host host-name="localhost"/>
        </webapp>

Result:

http://def.abc.com:8080/nqcommerce/control/main - HTTP 400 bad request

http://abc.com:8080/ecommerce/control/main - HTTP 400 bad request

On attempting image accesses only:

http://localhost:8080/images/maincss.css - Able to access the css

http://def.abc.com:8080/images/maincss.css - HTTP 400 bad request

http://abc.com:8080/images/maincss.css - HTTP 400 bad request

After re-ordering the webapp as follows,

    <webapp name="images"
        title="Images"
        server="default-server"
        location="webapp/images"
        mount-point="/images"
        app-bar-display="false">
        <virtual-host host-name="def.abc.com"/>
        <virtual-host host-name="localhost"/>
        <virtual-host host-name="abc.com"/>
        </webapp>

http://abc.com:8080/images/maincss.css - able to access the css

http://def.abc.com:8080/images/maincss.css - HTTP 400 bad request

http://localhost:8080/images/maincss.css - HTTP 400 bad request


After another set of changes:

    <webapp name="images"
        title="Images"
        server="default-server"
        location="webapp/images"
        mount-point="/images"
        app-bar-display="false">
        <virtual-host host-name="localhost"/>
        <virtual-host host-name="abc.com"/>
        <virtual-host host-name="def.abc.com"/>
        </webapp>

http://def.abc.com:8080/images/maincss.css - able to access the css

http://localhost:8080/images/maincss.css - HTTP 400 bad request

http://abc.com:8080/images/maincss.css - HTTP 400 bad request

http://def.abc.com:8080/nqcommerce/control/main - HTTP 400 bad request

From the above am tending towards the conclusions that:

a) Multiple virtual-hosts even though can be specified to a webapp, the
webapp is bound to the last specified virtual-host.

b) Virtual hosts are unique to a webapp, since images component is loaded
before ecommerce, the virtual host is taken.

cheers,
ravish

-----Original Message-----
From: Chris Howe [mailto:[hidden email]]
Sent: Friday, September 15, 2006 12:21 PM
To: [hidden email]
Subject: RE: Multiple webapps on virtual hosts




--- Ravish Kamath <[hidden email]> wrote:

> Chris/Venkata,

> Based on Chris's suggestion
> ---------------------------
>
> Images component - ofbiz-component.xml
>
>     <webapp name="images"
>         title="Images"
>         server="default-server"
>         location="webapp/images"
>         mount-point="/images"
> app-bar-display="false">
> <virtual-host host-name="abc.def.com"/>
> <virtual-host host-name="localhost"/>
---------------------------------------
Try:
<virtual-host host-name="def.abc.com"/>
<virtual-host host-name="abc.com"/><!-- this missing
is what caused the 400 on abc.com-->
<virtual-host host-name="localhost"/>

----------------------------------------

> </webapp>
>
> Ecommerce component - ofbiz-component.xml
>
>     <webapp name="ecommerce"
>         title="ECommerce"
>         server="default-server"
>         location="webapp/ecommerce"
>         mount-point="/ecommerce"
> app-bar-display="false">
> </webapp>
>
>     <webapp name="nqcommerce"
>         title="Nasdaq ECommerce"
>         server="default-server"
>         location="webapp/nqcommerce"
>         mount-point="/nqcommerce"
-----------------------------------------
Do you actually have files located at
/applications/ecommerce/webapp/nqcommerce?

ie
/applications/ecommerce/webapp/nqcommerce/WEB-INF/controller.xml
------------------------------------------

> app-bar-display="false">
> <virtual-host host-name="abc.def.com"/>
> </webapp>
>
> Result:
>
> http://localhost:8080/ecommerce/control/main -
> returns 400 bad request,
> response code
>
> http://def.abc.com:8080/nqcommerce/control/main -
> returns 400 bad request,
> response code
>
> It would seem like, virtual-host is mapped to a
> single webapp. i.e. the
> relationship is one-to-one. Are there anyother steps
> I can try out ?
>
> thank you,
> ravish
>
> -----Original Message-----
> From: G.Venkata Phanindra
> [mailto:[hidden email]]
> Sent: Friday, September 15, 2006 10:51 AM
> To: [hidden email]
> Subject: Re: Multiple webapps on virtual hosts
>
>
> Hi,
> We too had a similar Problem, One of the Hack or a
> work arround we found was
> to define one more images Instance of images by
> adding
>
>     <webapp name="images"
>         title="Images"
>         server="default-server"
>         location="webapp/images"
>         mount-point="/images"
>         app-bar-display="false">
>         <virtual-host host-name="hostname"/>
>     </webapp>
> But we r creating two instances of images.
> Phani
>
> On 9/15/06, Ravish Kamath <[hidden email]>
> wrote:
> >
> > All,
> >
> > We have a store set-up on Ofbiz, lets say
> > www.abc.com/ecommerce/control/main. As a next step
> we are looking at
> > launching another store targetted at a
> sub-vertical within the abc space
> > with a different view/catalog running of the same
> instance. The new store
> > should be accessible @
> www.def.abc.com/defecommerce/control/main. The
> > following are the steps we followed:
> >
> > a) Created a new Store
> > b) Created a new website and associated the store
> created in step a with
> > this site.
> > c) Replicated the ecommerce webapp and renamed it
> as defecommerce.
> > d) Altered the ofbiz-component.xml and added the
> following entry:
> >
> >     <webapp name="defecommerce"
> >         title="Def ECommerce"
> >         server="default-server"
> >         location="webapp/defecommerce"
> >         mount-point="/defecommerce"
> >         app-bar-display="false">
> >                 <virtual-host
> host-name="www.def.abc.com"/>
> >         </webapp>
> >
> > e) Edited the web.xml under WEB-INF, to point to
> the new website id.
> > f) On restarting the ofbiz instance, while both
> the ecommerce instances
> > can
> > be accessed, the static resources served out of
> the images component, are
> > not being served for the defecommerce webapp.
> Access logs show that all
> > static resource fetch requests have received http
> 400 error code response.
> > Would this means that all static resources need to
> be served out of the
> > same
> > webapp, defecommerce ?
> >
> > TIA,
> > ravish
> >
> >
>
>
> --
> G.Venkata Phanindra
> Mob:: 9849852989
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Multiple webapps on virtual hosts

G.Venkata Phanindra
Try the Following Configurations
Images component - ofbiz-component.xml

   <webapp name="images"
       title="Images"
       server="default-server"
       location="webapp/images"
       mount-point="/images"
       app-bar-display="false">
       <virtual-host host-name="abc.com"/>
       </webapp>

   <webapp name="images"
       title="Images"
       server="default-server"
       location="webapp/images"
       mount-point="/images"
       app-bar-display="false">
        <virtual-host host-name="www.def.abc.com"/>
       </webapp>

Ecommerce component - ofbiz-component.xml

       <webapp name="ecommerce"
       title="ECommerce"
       server="default-server"
       location="webapp/ecommerce"
       mount-point="/ecommerce"
       app-bar-display="false">
       <virtual-host host-name="abc.com"/>
       </webapp>

   <webapp name="nqcommerce"
       title="Nasdaq ECommerce"
       server="default-server"
       location="webapp/nqcommerce"
       mount-point="/nqcommerce"
       app-bar-display="false">
       <virtual-host host-name="def.abc.com"/>
       </webapp>
regards
Phani

On 9/15/06, Ravish Kamath <[hidden email]> wrote:

>
> Chris,
>
> With the modification (3 sets attempted to arrive @ some conclusions
> below),
>
>     <webapp name="images"
>         title="Images"
>         server="default-server"
>         location="webapp/images"
>         mount-point="/images"
>         app-bar-display="false">
>         <virtual-host host-name="abc.com"/>
>         <virtual-host host-name="def.abc.com"/>
>         <virtual-host host-name="localhost"/>
>         </webapp>
>
> Result:
>
> http://def.abc.com:8080/nqcommerce/control/main - HTTP 400 bad request
>
> http://abc.com:8080/ecommerce/control/main - HTTP 400 bad request
>
> On attempting image accesses only:
>
> http://localhost:8080/images/maincss.css - Able to access the css
>
> http://def.abc.com:8080/images/maincss.css - HTTP 400 bad request
>
> http://abc.com:8080/images/maincss.css - HTTP 400 bad request
>
> After re-ordering the webapp as follows,
>
>     <webapp name="images"
>         title="Images"
>         server="default-server"
>         location="webapp/images"
>         mount-point="/images"
>         app-bar-display="false">
>         <virtual-host host-name="def.abc.com"/>
>         <virtual-host host-name="localhost"/>
>         <virtual-host host-name="abc.com"/>
>         </webapp>
>
> http://abc.com:8080/images/maincss.css - able to access the css
>
> http://def.abc.com:8080/images/maincss.css - HTTP 400 bad request
>
> http://localhost:8080/images/maincss.css - HTTP 400 bad request
>
>
> After another set of changes:
>
>     <webapp name="images"
>         title="Images"
>         server="default-server"
>         location="webapp/images"
>         mount-point="/images"
>         app-bar-display="false">
>         <virtual-host host-name="localhost"/>
>         <virtual-host host-name="abc.com"/>
>         <virtual-host host-name="def.abc.com"/>
>         </webapp>
>
> http://def.abc.com:8080/images/maincss.css - able to access the css
>
> http://localhost:8080/images/maincss.css - HTTP 400 bad request
>
> http://abc.com:8080/images/maincss.css - HTTP 400 bad request
>
> http://def.abc.com:8080/nqcommerce/control/main - HTTP 400 bad request
>
> From the above am tending towards the conclusions that:
>
> a) Multiple virtual-hosts even though can be specified to a webapp, the
> webapp is bound to the last specified virtual-host.
>
> b) Virtual hosts are unique to a webapp, since images component is loaded
> before ecommerce, the virtual host is taken.
>
> cheers,
> ravish
>
> -----Original Message-----
> From: Chris Howe [mailto:[hidden email]]
> Sent: Friday, September 15, 2006 12:21 PM
> To: [hidden email]
> Subject: RE: Multiple webapps on virtual hosts
>
>
>
>
> --- Ravish Kamath <[hidden email]> wrote:
>
> > Chris/Venkata,
>
> > Based on Chris's suggestion
> > ---------------------------
> >
> > Images component - ofbiz-component.xml
> >
> >     <webapp name="images"
> >         title="Images"
> >         server="default-server"
> >         location="webapp/images"
> >         mount-point="/images"
> >       app-bar-display="false">
> >               <virtual-host host-name="abc.def.com"/>
> >               <virtual-host host-name="localhost"/>
> ---------------------------------------
> Try:
> <virtual-host host-name="def.abc.com"/>
> <virtual-host host-name="abc.com"/><!-- this missing
> is what caused the 400 on abc.com-->
> <virtual-host host-name="localhost"/>
>
> ----------------------------------------
> >       </webapp>
> >
> > Ecommerce component - ofbiz-component.xml
> >
> >     <webapp name="ecommerce"
> >         title="ECommerce"
> >         server="default-server"
> >         location="webapp/ecommerce"
> >         mount-point="/ecommerce"
> >       app-bar-display="false">
> >       </webapp>
> >
> >     <webapp name="nqcommerce"
> >         title="Nasdaq ECommerce"
> >         server="default-server"
> >         location="webapp/nqcommerce"
> >         mount-point="/nqcommerce"
> -----------------------------------------
> Do you actually have files located at
> /applications/ecommerce/webapp/nqcommerce?
>
> ie
> /applications/ecommerce/webapp/nqcommerce/WEB-INF/controller.xml
> ------------------------------------------
>
> >       app-bar-display="false">
> >               <virtual-host host-name="abc.def.com"/>
> >       </webapp>
> >
> > Result:
> >
> > http://localhost:8080/ecommerce/control/main -
> > returns 400 bad request,
> > response code
> >
> > http://def.abc.com:8080/nqcommerce/control/main -
> > returns 400 bad request,
> > response code
> >
> > It would seem like, virtual-host is mapped to a
> > single webapp. i.e. the
> > relationship is one-to-one. Are there anyother steps
> > I can try out ?
> >
> > thank you,
> > ravish
> >
> > -----Original Message-----
> > From: G.Venkata Phanindra
> > [mailto:[hidden email]]
> > Sent: Friday, September 15, 2006 10:51 AM
> > To: [hidden email]
> > Subject: Re: Multiple webapps on virtual hosts
> >
> >
> > Hi,
> > We too had a similar Problem, One of the Hack or a
> > work arround we found was
> > to define one more images Instance of images by
> > adding
> >
> >     <webapp name="images"
> >         title="Images"
> >         server="default-server"
> >         location="webapp/images"
> >         mount-point="/images"
> >         app-bar-display="false">
> >         <virtual-host host-name="hostname"/>
> >     </webapp>
> > But we r creating two instances of images.
> > Phani
> >
> > On 9/15/06, Ravish Kamath <[hidden email]>
> > wrote:
> > >
> > > All,
> > >
> > > We have a store set-up on Ofbiz, lets say
> > > www.abc.com/ecommerce/control/main. As a next step
> > we are looking at
> > > launching another store targetted at a
> > sub-vertical within the abc space
> > > with a different view/catalog running of the same
> > instance. The new store
> > > should be accessible @
> > www.def.abc.com/defecommerce/control/main. The
> > > following are the steps we followed:
> > >
> > > a) Created a new Store
> > > b) Created a new website and associated the store
> > created in step a with
> > > this site.
> > > c) Replicated the ecommerce webapp and renamed it
> > as defecommerce.
> > > d) Altered the ofbiz-component.xml and added the
> > following entry:
> > >
> > >     <webapp name="defecommerce"
> > >         title="Def ECommerce"
> > >         server="default-server"
> > >         location="webapp/defecommerce"
> > >         mount-point="/defecommerce"
> > >         app-bar-display="false">
> > >                 <virtual-host
> > host-name="www.def.abc.com"/>
> > >         </webapp>
> > >
> > > e) Edited the web.xml under WEB-INF, to point to
> > the new website id.
> > > f) On restarting the ofbiz instance, while both
> > the ecommerce instances
> > > can
> > > be accessed, the static resources served out of
> > the images component, are
> > > not being served for the defecommerce webapp.
> > Access logs show that all
> > > static resource fetch requests have received http
> > 400 error code response.
> > > Would this means that all static resources need to
> > be served out of the
> > > same
> > > webapp, defecommerce ?
> > >
> > > TIA,
> > > ravish
> > >
> > >
> >
> >
> > --
> > G.Venkata Phanindra
> > Mob:: 9849852989
> >
> >
>
>


--
G.Venkata Phanindra
Mob:: 9849852989
Reply | Threaded
Open this post in threaded view
|

RE: Multiple webapps on virtual hosts

Ravish Kamath
Phani,

http://abc.com:8080/ecommerce - HTTP 400 bad request

http://def.abc.com:8080/nqcommerce - HTTP 400 bad request

http://abc.com:8080/images/maincss.css - works !!!

http://def.abc.com:8080/images/maincss.css - works !!!

http://localhost:8080/nqcommerce - HTTP 404 response code

http://localhost:8080/ecommerce - HTTP 404 response code

So this did not work either. I am increasingly sure of the following:

a) Images component is loaded before the ecommerce component, therefore the
two unqiue virtual-hosts, abc.com and def.abc.com are taken.

b) Both the webapps under ecommerce component are not bound to the specified
ecommerce component.

Thank you,
ravish

-----Original Message-----
From: G.Venkata Phanindra [mailto:[hidden email]]
Sent: Friday, September 15, 2006 3:48 PM
To: [hidden email]
Subject: Re: Multiple webapps on virtual hosts


Try the Following Configurations
Images component - ofbiz-component.xml

   <webapp name="images"
       title="Images"
       server="default-server"
       location="webapp/images"
       mount-point="/images"
       app-bar-display="false">
       <virtual-host host-name="abc.com"/>
       </webapp>

   <webapp name="images"
       title="Images"
       server="default-server"
       location="webapp/images"
       mount-point="/images"
       app-bar-display="false">
        <virtual-host host-name="www.def.abc.com"/>
       </webapp>

Ecommerce component - ofbiz-component.xml

       <webapp name="ecommerce"
       title="ECommerce"
       server="default-server"
       location="webapp/ecommerce"
       mount-point="/ecommerce"
       app-bar-display="false">
       <virtual-host host-name="abc.com"/>
       </webapp>

   <webapp name="nqcommerce"
       title="Nasdaq ECommerce"
       server="default-server"
       location="webapp/nqcommerce"
       mount-point="/nqcommerce"
       app-bar-display="false">
       <virtual-host host-name="def.abc.com"/>
       </webapp>
regards
Phani

On 9/15/06, Ravish Kamath <[hidden email]> wrote:

>
> Chris,
>
> With the modification (3 sets attempted to arrive @ some conclusions
> below),
>
>     <webapp name="images"
>         title="Images"
>         server="default-server"
>         location="webapp/images"
>         mount-point="/images"
>         app-bar-display="false">
>         <virtual-host host-name="abc.com"/>
>         <virtual-host host-name="def.abc.com"/>
>         <virtual-host host-name="localhost"/>
>         </webapp>
>
> Result:
>
> http://def.abc.com:8080/nqcommerce/control/main - HTTP 400 bad request
>
> http://abc.com:8080/ecommerce/control/main - HTTP 400 bad request
>
> On attempting image accesses only:
>
> http://localhost:8080/images/maincss.css - Able to access the css
>
> http://def.abc.com:8080/images/maincss.css - HTTP 400 bad request
>
> http://abc.com:8080/images/maincss.css - HTTP 400 bad request
>
> After re-ordering the webapp as follows,
>
>     <webapp name="images"
>         title="Images"
>         server="default-server"
>         location="webapp/images"
>         mount-point="/images"
>         app-bar-display="false">
>         <virtual-host host-name="def.abc.com"/>
>         <virtual-host host-name="localhost"/>
>         <virtual-host host-name="abc.com"/>
>         </webapp>
>
> http://abc.com:8080/images/maincss.css - able to access the css
>
> http://def.abc.com:8080/images/maincss.css - HTTP 400 bad request
>
> http://localhost:8080/images/maincss.css - HTTP 400 bad request
>
>
> After another set of changes:
>
>     <webapp name="images"
>         title="Images"
>         server="default-server"
>         location="webapp/images"
>         mount-point="/images"
>         app-bar-display="false">
>         <virtual-host host-name="localhost"/>
>         <virtual-host host-name="abc.com"/>
>         <virtual-host host-name="def.abc.com"/>
>         </webapp>
>
> http://def.abc.com:8080/images/maincss.css - able to access the css
>
> http://localhost:8080/images/maincss.css - HTTP 400 bad request
>
> http://abc.com:8080/images/maincss.css - HTTP 400 bad request
>
> http://def.abc.com:8080/nqcommerce/control/main - HTTP 400 bad request
>
> From the above am tending towards the conclusions that:
>
> a) Multiple virtual-hosts even though can be specified to a webapp, the
> webapp is bound to the last specified virtual-host.
>
> b) Virtual hosts are unique to a webapp, since images component is loaded
> before ecommerce, the virtual host is taken.
>
> cheers,
> ravish
>
> -----Original Message-----
> From: Chris Howe [mailto:[hidden email]]
> Sent: Friday, September 15, 2006 12:21 PM
> To: [hidden email]
> Subject: RE: Multiple webapps on virtual hosts
>
>
>
>
> --- Ravish Kamath <[hidden email]> wrote:
>
> > Chris/Venkata,
>
> > Based on Chris's suggestion
> > ---------------------------
> >
> > Images component - ofbiz-component.xml
> >
> >     <webapp name="images"
> >         title="Images"
> >         server="default-server"
> >         location="webapp/images"
> >         mount-point="/images"
> >       app-bar-display="false">
> >               <virtual-host host-name="abc.def.com"/>
> >               <virtual-host host-name="localhost"/>
> ---------------------------------------
> Try:
> <virtual-host host-name="def.abc.com"/>
> <virtual-host host-name="abc.com"/><!-- this missing
> is what caused the 400 on abc.com-->
> <virtual-host host-name="localhost"/>
>
> ----------------------------------------
> >       </webapp>
> >
> > Ecommerce component - ofbiz-component.xml
> >
> >     <webapp name="ecommerce"
> >         title="ECommerce"
> >         server="default-server"
> >         location="webapp/ecommerce"
> >         mount-point="/ecommerce"
> >       app-bar-display="false">
> >       </webapp>
> >
> >     <webapp name="nqcommerce"
> >         title="Nasdaq ECommerce"
> >         server="default-server"
> >         location="webapp/nqcommerce"
> >         mount-point="/nqcommerce"
> -----------------------------------------
> Do you actually have files located at
> /applications/ecommerce/webapp/nqcommerce?
>
> ie
> /applications/ecommerce/webapp/nqcommerce/WEB-INF/controller.xml
> ------------------------------------------
>
> >       app-bar-display="false">
> >               <virtual-host host-name="abc.def.com"/>
> >       </webapp>
> >
> > Result:
> >
> > http://localhost:8080/ecommerce/control/main -
> > returns 400 bad request,
> > response code
> >
> > http://def.abc.com:8080/nqcommerce/control/main -
> > returns 400 bad request,
> > response code
> >
> > It would seem like, virtual-host is mapped to a
> > single webapp. i.e. the
> > relationship is one-to-one. Are there anyother steps
> > I can try out ?
> >
> > thank you,
> > ravish
> >
> > -----Original Message-----
> > From: G.Venkata Phanindra
> > [mailto:[hidden email]]
> > Sent: Friday, September 15, 2006 10:51 AM
> > To: [hidden email]
> > Subject: Re: Multiple webapps on virtual hosts
> >
> >
> > Hi,
> > We too had a similar Problem, One of the Hack or a
> > work arround we found was
> > to define one more images Instance of images by
> > adding
> >
> >     <webapp name="images"
> >         title="Images"
> >         server="default-server"
> >         location="webapp/images"
> >         mount-point="/images"
> >         app-bar-display="false">
> >         <virtual-host host-name="hostname"/>
> >     </webapp>
> > But we r creating two instances of images.
> > Phani
> >
> > On 9/15/06, Ravish Kamath <[hidden email]>
> > wrote:
> > >
> > > All,
> > >
> > > We have a store set-up on Ofbiz, lets say
> > > www.abc.com/ecommerce/control/main. As a next step
> > we are looking at
> > > launching another store targetted at a
> > sub-vertical within the abc space
> > > with a different view/catalog running of the same
> > instance. The new store
> > > should be accessible @
> > www.def.abc.com/defecommerce/control/main. The
> > > following are the steps we followed:
> > >
> > > a) Created a new Store
> > > b) Created a new website and associated the store
> > created in step a with
> > > this site.
> > > c) Replicated the ecommerce webapp and renamed it
> > as defecommerce.
> > > d) Altered the ofbiz-component.xml and added the
> > following entry:
> > >
> > >     <webapp name="defecommerce"
> > >         title="Def ECommerce"
> > >         server="default-server"
> > >         location="webapp/defecommerce"
> > >         mount-point="/defecommerce"
> > >         app-bar-display="false">
> > >                 <virtual-host
> > host-name="www.def.abc.com"/>
> > >         </webapp>
> > >
> > > e) Edited the web.xml under WEB-INF, to point to
> > the new website id.
> > > f) On restarting the ofbiz instance, while both
> > the ecommerce instances
> > > can
> > > be accessed, the static resources served out of
> > the images component, are
> > > not being served for the defecommerce webapp.
> > Access logs show that all
> > > static resource fetch requests have received http
> > 400 error code response.
> > > Would this means that all static resources need to
> > be served out of the
> > > same
> > > webapp, defecommerce ?
> > >
> > > TIA,
> > > ravish
> > >
> > >
> >
> >
> > --
> > G.Venkata Phanindra
> > Mob:: 9849852989
> >
> >
>
>


--
G.Venkata Phanindra
Mob:: 9849852989

Reply | Threaded
Open this post in threaded view
|

Re: Multiple webapps on virtual hosts

G.Venkata Phanindra
Hi Ravish,
I too struggled allot but i was able to deliver it with the above
configuration i gave.
Its better u send ur ofbiz-component.xml of ecommerce,nqecommerce, Images
and also component-load.xml files.
Thanks and Regards
Phani

On 9/15/06, Ravish Kamath <[hidden email]> wrote:

>
> Phani,
>
> http://abc.com:8080/ecommerce - HTTP 400 bad request
>
> http://def.abc.com:8080/nqcommerce - HTTP 400 bad request
>
> http://abc.com:8080/images/maincss.css - works !!!
>
> http://def.abc.com:8080/images/maincss.css - works !!!
>
> http://localhost:8080/nqcommerce - HTTP 404 response code
>
> http://localhost:8080/ecommerce - HTTP 404 response code
>
> So this did not work either. I am increasingly sure of the following:
>
> a) Images component is loaded before the ecommerce component, therefore
> the
> two unqiue virtual-hosts, abc.com and def.abc.com are taken.
>
> b) Both the webapps under ecommerce component are not bound to the
> specified
> ecommerce component.
>
> Thank you,
> ravish
>
> -----Original Message-----
> From: G.Venkata Phanindra [mailto:[hidden email]]
> Sent: Friday, September 15, 2006 3:48 PM
> To: [hidden email]
> Subject: Re: Multiple webapps on virtual hosts
>
>
> Try the Following Configurations
> Images component - ofbiz-component.xml
>
>    <webapp name="images"
>        title="Images"
>        server="default-server"
>        location="webapp/images"
>        mount-point="/images"
>        app-bar-display="false">
>        <virtual-host host-name="abc.com"/>
>        </webapp>
>
>    <webapp name="images"
>        title="Images"
>        server="default-server"
>        location="webapp/images"
>        mount-point="/images"
>        app-bar-display="false">
>         <virtual-host host-name="www.def.abc.com"/>
>        </webapp>
>
> Ecommerce component - ofbiz-component.xml
>
>        <webapp name="ecommerce"
>        title="ECommerce"
>        server="default-server"
>        location="webapp/ecommerce"
>        mount-point="/ecommerce"
>        app-bar-display="false">
>        <virtual-host host-name="abc.com"/>
>        </webapp>
>
>    <webapp name="nqcommerce"
>        title="Nasdaq ECommerce"
>        server="default-server"
>        location="webapp/nqcommerce"
>        mount-point="/nqcommerce"
>        app-bar-display="false">
>        <virtual-host host-name="def.abc.com"/>
>        </webapp>
> regards
> Phani
>
> On 9/15/06, Ravish Kamath <[hidden email]> wrote:
> >
> > Chris,
> >
> > With the modification (3 sets attempted to arrive @ some conclusions
> > below),
> >
> >     <webapp name="images"
> >         title="Images"
> >         server="default-server"
> >         location="webapp/images"
> >         mount-point="/images"
> >         app-bar-display="false">
> >         <virtual-host host-name="abc.com"/>
> >         <virtual-host host-name="def.abc.com"/>
> >         <virtual-host host-name="localhost"/>
> >         </webapp>
> >
> > Result:
> >
> > http://def.abc.com:8080/nqcommerce/control/main - HTTP 400 bad request
> >
> > http://abc.com:8080/ecommerce/control/main - HTTP 400 bad request
> >
> > On attempting image accesses only:
> >
> > http://localhost:8080/images/maincss.css - Able to access the css
> >
> > http://def.abc.com:8080/images/maincss.css - HTTP 400 bad request
> >
> > http://abc.com:8080/images/maincss.css - HTTP 400 bad request
> >
> > After re-ordering the webapp as follows,
> >
> >     <webapp name="images"
> >         title="Images"
> >         server="default-server"
> >         location="webapp/images"
> >         mount-point="/images"
> >         app-bar-display="false">
> >         <virtual-host host-name="def.abc.com"/>
> >         <virtual-host host-name="localhost"/>
> >         <virtual-host host-name="abc.com"/>
> >         </webapp>
> >
> > http://abc.com:8080/images/maincss.css - able to access the css
> >
> > http://def.abc.com:8080/images/maincss.css - HTTP 400 bad request
> >
> > http://localhost:8080/images/maincss.css - HTTP 400 bad request
> >
> >
> > After another set of changes:
> >
> >     <webapp name="images"
> >         title="Images"
> >         server="default-server"
> >         location="webapp/images"
> >         mount-point="/images"
> >         app-bar-display="false">
> >         <virtual-host host-name="localhost"/>
> >         <virtual-host host-name="abc.com"/>
> >         <virtual-host host-name="def.abc.com"/>
> >         </webapp>
> >
> > http://def.abc.com:8080/images/maincss.css - able to access the css
> >
> > http://localhost:8080/images/maincss.css - HTTP 400 bad request
> >
> > http://abc.com:8080/images/maincss.css - HTTP 400 bad request
> >
> > http://def.abc.com:8080/nqcommerce/control/main - HTTP 400 bad request
> >
> > From the above am tending towards the conclusions that:
> >
> > a) Multiple virtual-hosts even though can be specified to a webapp, the
> > webapp is bound to the last specified virtual-host.
> >
> > b) Virtual hosts are unique to a webapp, since images component is
> loaded
> > before ecommerce, the virtual host is taken.
> >
> > cheers,
> > ravish
> >
> > -----Original Message-----
> > From: Chris Howe [mailto:[hidden email]]
> > Sent: Friday, September 15, 2006 12:21 PM
> > To: [hidden email]
> > Subject: RE: Multiple webapps on virtual hosts
> >
> >
> >
> >
> > --- Ravish Kamath <[hidden email]> wrote:
> >
> > > Chris/Venkata,
> >
> > > Based on Chris's suggestion
> > > ---------------------------
> > >
> > > Images component - ofbiz-component.xml
> > >
> > >     <webapp name="images"
> > >         title="Images"
> > >         server="default-server"
> > >         location="webapp/images"
> > >         mount-point="/images"
> > >       app-bar-display="false">
> > >               <virtual-host host-name="abc.def.com"/>
> > >               <virtual-host host-name="localhost"/>
> > ---------------------------------------
> > Try:
> > <virtual-host host-name="def.abc.com"/>
> > <virtual-host host-name="abc.com"/><!-- this missing
> > is what caused the 400 on abc.com-->
> > <virtual-host host-name="localhost"/>
> >
> > ----------------------------------------
> > >       </webapp>
> > >
> > > Ecommerce component - ofbiz-component.xml
> > >
> > >     <webapp name="ecommerce"
> > >         title="ECommerce"
> > >         server="default-server"
> > >         location="webapp/ecommerce"
> > >         mount-point="/ecommerce"
> > >       app-bar-display="false">
> > >       </webapp>
> > >
> > >     <webapp name="nqcommerce"
> > >         title="Nasdaq ECommerce"
> > >         server="default-server"
> > >         location="webapp/nqcommerce"
> > >         mount-point="/nqcommerce"
> > -----------------------------------------
> > Do you actually have files located at
> > /applications/ecommerce/webapp/nqcommerce?
> >
> > ie
> > /applications/ecommerce/webapp/nqcommerce/WEB-INF/controller.xml
> > ------------------------------------------
> >
> > >       app-bar-display="false">
> > >               <virtual-host host-name="abc.def.com"/>
> > >       </webapp>
> > >
> > > Result:
> > >
> > > http://localhost:8080/ecommerce/control/main -
> > > returns 400 bad request,
> > > response code
> > >
> > > http://def.abc.com:8080/nqcommerce/control/main -
> > > returns 400 bad request,
> > > response code
> > >
> > > It would seem like, virtual-host is mapped to a
> > > single webapp. i.e. the
> > > relationship is one-to-one. Are there anyother steps
> > > I can try out ?
> > >
> > > thank you,
> > > ravish
> > >
> > > -----Original Message-----
> > > From: G.Venkata Phanindra
> > > [mailto:[hidden email]]
> > > Sent: Friday, September 15, 2006 10:51 AM
> > > To: [hidden email]
> > > Subject: Re: Multiple webapps on virtual hosts
> > >
> > >
> > > Hi,
> > > We too had a similar Problem, One of the Hack or a
> > > work arround we found was
> > > to define one more images Instance of images by
> > > adding
> > >
> > >     <webapp name="images"
> > >         title="Images"
> > >         server="default-server"
> > >         location="webapp/images"
> > >         mount-point="/images"
> > >         app-bar-display="false">
> > >         <virtual-host host-name="hostname"/>
> > >     </webapp>
> > > But we r creating two instances of images.
> > > Phani
> > >
> > > On 9/15/06, Ravish Kamath <[hidden email]>
> > > wrote:
> > > >
> > > > All,
> > > >
> > > > We have a store set-up on Ofbiz, lets say
> > > > www.abc.com/ecommerce/control/main. As a next step
> > > we are looking at
> > > > launching another store targetted at a
> > > sub-vertical within the abc space
> > > > with a different view/catalog running of the same
> > > instance. The new store
> > > > should be accessible @
> > > www.def.abc.com/defecommerce/control/main. The
> > > > following are the steps we followed:
> > > >
> > > > a) Created a new Store
> > > > b) Created a new website and associated the store
> > > created in step a with
> > > > this site.
> > > > c) Replicated the ecommerce webapp and renamed it
> > > as defecommerce.
> > > > d) Altered the ofbiz-component.xml and added the
> > > following entry:
> > > >
> > > >     <webapp name="defecommerce"
> > > >         title="Def ECommerce"
> > > >         server="default-server"
> > > >         location="webapp/defecommerce"
> > > >         mount-point="/defecommerce"
> > > >         app-bar-display="false">
> > > >                 <virtual-host
> > > host-name="www.def.abc.com"/>
> > > >         </webapp>
> > > >
> > > > e) Edited the web.xml under WEB-INF, to point to
> > > the new website id.
> > > > f) On restarting the ofbiz instance, while both
> > > the ecommerce instances
> > > > can
> > > > be accessed, the static resources served out of
> > > the images component, are
> > > > not being served for the defecommerce webapp.
> > > Access logs show that all
> > > > static resource fetch requests have received http
> > > 400 error code response.
> > > > Would this means that all static resources need to
> > > be served out of the
> > > > same
> > > > webapp, defecommerce ?
> > > >
> > > > TIA,
> > > > ravish
> > > >
> > > >
> > >
> > >
> > > --
> > > G.Venkata Phanindra
> > > Mob:: 9849852989
> > >
> > >
> >
> >
>
>
> --
> G.Venkata Phanindra
> Mob:: 9849852989
>
>


--
G.Venkata Phanindra
Mob:: 9849852989
Reply | Threaded
Open this post in threaded view
|

Re: Multiple webapps on virtual hosts

cjhowe
Also your /framework/logs/console.log file from the
database being checked until the end of the webapps
loading.

--- "G.Venkata Phanindra" <[hidden email]> wrote:

> Hi Ravish,
> I too struggled allot but i was able to deliver it
> with the above
> configuration i gave.
> Its better u send ur ofbiz-component.xml of
> ecommerce,nqecommerce, Images
> and also component-load.xml files.
> Thanks and Regards
> Phani
>
> On 9/15/06, Ravish Kamath <[hidden email]>
> wrote:
> >
> > Phani,
> >
> > http://abc.com:8080/ecommerce - HTTP 400 bad
> request
> >
> > http://def.abc.com:8080/nqcommerce - HTTP 400 bad
> request
> >
> > http://abc.com:8080/images/maincss.css - works !!!
> >
> > http://def.abc.com:8080/images/maincss.css - works
> !!!
> >
> > http://localhost:8080/nqcommerce - HTTP 404
> response code
> >
> > http://localhost:8080/ecommerce - HTTP 404
> response code
> >
> > So this did not work either. I am increasingly
> sure of the following:
> >
> > a) Images component is loaded before the ecommerce
> component, therefore
> > the
> > two unqiue virtual-hosts, abc.com and def.abc.com
> are taken.
> >
> > b) Both the webapps under ecommerce component are
> not bound to the
> > specified
> > ecommerce component.
> >
> > Thank you,
> > ravish
> >
> > -----Original Message-----
> > From: G.Venkata Phanindra
> [mailto:[hidden email]]
> > Sent: Friday, September 15, 2006 3:48 PM
> > To: [hidden email]
> > Subject: Re: Multiple webapps on virtual hosts
> >
> >
> > Try the Following Configurations
> > Images component - ofbiz-component.xml
> >
> >    <webapp name="images"
> >        title="Images"
> >        server="default-server"
> >        location="webapp/images"
> >        mount-point="/images"
> >        app-bar-display="false">
> >        <virtual-host host-name="abc.com"/>
> >        </webapp>
> >
> >    <webapp name="images"
> >        title="Images"
> >        server="default-server"
> >        location="webapp/images"
> >        mount-point="/images"
> >        app-bar-display="false">
> >         <virtual-host
> host-name="www.def.abc.com"/>
> >        </webapp>
> >
> > Ecommerce component - ofbiz-component.xml
> >
> >        <webapp name="ecommerce"
> >        title="ECommerce"
> >        server="default-server"
> >        location="webapp/ecommerce"
> >        mount-point="/ecommerce"
> >        app-bar-display="false">
> >        <virtual-host host-name="abc.com"/>
> >        </webapp>
> >
> >    <webapp name="nqcommerce"
> >        title="Nasdaq ECommerce"
> >        server="default-server"
> >        location="webapp/nqcommerce"
> >        mount-point="/nqcommerce"
> >        app-bar-display="false">
> >        <virtual-host host-name="def.abc.com"/>
> >        </webapp>
> > regards
> > Phani
> >
> > On 9/15/06, Ravish Kamath
> <[hidden email]> wrote:
> > >
> > > Chris,
> > >
> > > With the modification (3 sets attempted to
> arrive @ some conclusions
> > > below),
> > >
> > >     <webapp name="images"
> > >         title="Images"
> > >         server="default-server"
> > >         location="webapp/images"
> > >         mount-point="/images"
> > >         app-bar-display="false">
> > >         <virtual-host host-name="abc.com"/>
> > >         <virtual-host host-name="def.abc.com"/>
> > >         <virtual-host host-name="localhost"/>
> > >         </webapp>
> > >
> > > Result:
> > >
> > > http://def.abc.com:8080/nqcommerce/control/main
> - HTTP 400 bad request
> > >
> > > http://abc.com:8080/ecommerce/control/main -
> HTTP 400 bad request
> > >
> > > On attempting image accesses only:
> > >
> > > http://localhost:8080/images/maincss.css - Able
> to access the css
> > >
> > > http://def.abc.com:8080/images/maincss.css -
> HTTP 400 bad request
> > >
> > > http://abc.com:8080/images/maincss.css - HTTP
> 400 bad request
> > >
> > > After re-ordering the webapp as follows,
> > >
> > >     <webapp name="images"
> > >         title="Images"
> > >         server="default-server"
> > >         location="webapp/images"
> > >         mount-point="/images"
> > >         app-bar-display="false">
> > >         <virtual-host host-name="def.abc.com"/>
> > >         <virtual-host host-name="localhost"/>
> > >         <virtual-host host-name="abc.com"/>
> > >         </webapp>
> > >
> > > http://abc.com:8080/images/maincss.css - able to
> access the css
> > >
> > > http://def.abc.com:8080/images/maincss.css -
> HTTP 400 bad request
> > >
> > > http://localhost:8080/images/maincss.css - HTTP
> 400 bad request
> > >
> > >
> > > After another set of changes:
> > >
> > >     <webapp name="images"
> > >         title="Images"
> > >         server="default-server"
> > >         location="webapp/images"
> > >         mount-point="/images"
> > >         app-bar-display="false">
> > >         <virtual-host host-name="localhost"/>
> > >         <virtual-host host-name="abc.com"/>
> > >         <virtual-host host-name="def.abc.com"/>
> > >         </webapp>
> > >
> > > http://def.abc.com:8080/images/maincss.css -
> able to access the css
> > >
> > > http://localhost:8080/images/maincss.css - HTTP
> 400 bad request
> > >
> > > http://abc.com:8080/images/maincss.css - HTTP
> 400 bad request
> > >
> > > http://def.abc.com:8080/nqcommerce/control/main
> - HTTP 400 bad request
> > >
> > > From the above am tending towards the
> conclusions that:
> > >
> > > a) Multiple virtual-hosts even though can be
> specified to a webapp, the
> > > webapp is bound to the last specified
> virtual-host.
> > >
> > > b) Virtual hosts are unique to a webapp, since
> images component is
> > loaded
> > > before ecommerce, the virtual host is taken.
> > >
>
=== message truncated ===

Reply | Threaded
Open this post in threaded view
|

RE: Multiple webapps on virtual hosts

Ravish Kamath
Chris/Phani,

Here are the files...

thank you,
ravish

-----Original Message-----
From: Chris Howe [mailto:[hidden email]]
Sent: Friday, September 15, 2006 4:37 PM
To: [hidden email]
Subject: Re: Multiple webapps on virtual hosts


Also your /framework/logs/console.log file from the
database being checked until the end of the webapps
loading.

--- "G.Venkata Phanindra" <[hidden email]> wrote:

> Hi Ravish,
> I too struggled allot but i was able to deliver it
> with the above
> configuration i gave.
> Its better u send ur ofbiz-component.xml of
> ecommerce,nqecommerce, Images
> and also component-load.xml files.
> Thanks and Regards
> Phani
>
> On 9/15/06, Ravish Kamath <[hidden email]>
> wrote:
> >
> > Phani,
> >
> > http://abc.com:8080/ecommerce - HTTP 400 bad
> request
> >
> > http://def.abc.com:8080/nqcommerce - HTTP 400 bad
> request
> >
> > http://abc.com:8080/images/maincss.css - works !!!
> >
> > http://def.abc.com:8080/images/maincss.css - works
> !!!
> >
> > http://localhost:8080/nqcommerce - HTTP 404
> response code
> >
> > http://localhost:8080/ecommerce - HTTP 404
> response code
> >
> > So this did not work either. I am increasingly
> sure of the following:
> >
> > a) Images component is loaded before the ecommerce
> component, therefore
> > the
> > two unqiue virtual-hosts, abc.com and def.abc.com
> are taken.
> >
> > b) Both the webapps under ecommerce component are
> not bound to the
> > specified
> > ecommerce component.
> >
> > Thank you,
> > ravish
> >
> > -----Original Message-----
> > From: G.Venkata Phanindra
> [mailto:[hidden email]]
> > Sent: Friday, September 15, 2006 3:48 PM
> > To: [hidden email]
> > Subject: Re: Multiple webapps on virtual hosts
> >
> >
> > Try the Following Configurations
> > Images component - ofbiz-component.xml
> >
> >    <webapp name="images"
> >        title="Images"
> >        server="default-server"
> >        location="webapp/images"
> >        mount-point="/images"
> >        app-bar-display="false">
> >        <virtual-host host-name="abc.com"/>
> >        </webapp>
> >
> >    <webapp name="images"
> >        title="Images"
> >        server="default-server"
> >        location="webapp/images"
> >        mount-point="/images"
> >        app-bar-display="false">
> >         <virtual-host
> host-name="www.def.abc.com"/>
> >        </webapp>
> >
> > Ecommerce component - ofbiz-component.xml
> >
> >        <webapp name="ecommerce"
> >        title="ECommerce"
> >        server="default-server"
> >        location="webapp/ecommerce"
> >        mount-point="/ecommerce"
> >        app-bar-display="false">
> >        <virtual-host host-name="abc.com"/>
> >        </webapp>
> >
> >    <webapp name="nqcommerce"
> >        title="Nasdaq ECommerce"
> >        server="default-server"
> >        location="webapp/nqcommerce"
> >        mount-point="/nqcommerce"
> >        app-bar-display="false">
> >        <virtual-host host-name="def.abc.com"/>
> >        </webapp>
> > regards
> > Phani
> >
> > On 9/15/06, Ravish Kamath
> <[hidden email]> wrote:
> > >
> > > Chris,
> > >
> > > With the modification (3 sets attempted to
> arrive @ some conclusions
> > > below),
> > >
> > >     <webapp name="images"
> > >         title="Images"
> > >         server="default-server"
> > >         location="webapp/images"
> > >         mount-point="/images"
> > >         app-bar-display="false">
> > >         <virtual-host host-name="abc.com"/>
> > >         <virtual-host host-name="def.abc.com"/>
> > >         <virtual-host host-name="localhost"/>
> > >         </webapp>
> > >
> > > Result:
> > >
> > > http://def.abc.com:8080/nqcommerce/control/main
> - HTTP 400 bad request
> > >
> > > http://abc.com:8080/ecommerce/control/main -
> HTTP 400 bad request
> > >
> > > On attempting image accesses only:
> > >
> > > http://localhost:8080/images/maincss.css - Able
> to access the css
> > >
> > > http://def.abc.com:8080/images/maincss.css -
> HTTP 400 bad request
> > >
> > > http://abc.com:8080/images/maincss.css - HTTP
> 400 bad request
> > >
> > > After re-ordering the webapp as follows,
> > >
> > >     <webapp name="images"
> > >         title="Images"
> > >         server="default-server"
> > >         location="webapp/images"
> > >         mount-point="/images"
> > >         app-bar-display="false">
> > >         <virtual-host host-name="def.abc.com"/>
> > >         <virtual-host host-name="localhost"/>
> > >         <virtual-host host-name="abc.com"/>
> > >         </webapp>
> > >
> > > http://abc.com:8080/images/maincss.css - able to
> access the css
> > >
> > > http://def.abc.com:8080/images/maincss.css -
> HTTP 400 bad request
> > >
> > > http://localhost:8080/images/maincss.css - HTTP
> 400 bad request
> > >
> > >
> > > After another set of changes:
> > >
> > >     <webapp name="images"
> > >         title="Images"
> > >         server="default-server"
> > >         location="webapp/images"
> > >         mount-point="/images"
> > >         app-bar-display="false">
> > >         <virtual-host host-name="localhost"/>
> > >         <virtual-host host-name="abc.com"/>
> > >         <virtual-host host-name="def.abc.com"/>
> > >         </webapp>
> > >
> > > http://def.abc.com:8080/images/maincss.css -
> able to access the css
> > >
> > > http://localhost:8080/images/maincss.css - HTTP
> 400 bad request
> > >
> > > http://abc.com:8080/images/maincss.css - HTTP
> 400 bad request
> > >
> > > http://def.abc.com:8080/nqcommerce/control/main
> - HTTP 400 bad request
> > >
> > > From the above am tending towards the
> conclusions that:
> > >
> > > a) Multiple virtual-hosts even though can be
> specified to a webapp, the
> > > webapp is bound to the last specified
> virtual-host.
> > >
> > > b) Virtual hosts are unique to a webapp, since
> images component is
> > loaded
> > > before ecommerce, the virtual host is taken.
> > >
>
=== message truncated ===

ofbiz-component.xml (2K) Download Attachment
ofbiz-component.xml (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Multiple webapps on virtual hosts

Ravish Kamath
Sorry missed out on the console.log file...here it is..

-----Original Message-----
From: Ravish Kamath [mailto:[hidden email]]
Sent: Friday, September 15, 2006 4:39 PM
To: [hidden email]
Subject: RE: Multiple webapps on virtual hosts


Chris/Phani,

Here are the files...

thank you,
ravish

-----Original Message-----
From: Chris Howe [mailto:[hidden email]]
Sent: Friday, September 15, 2006 4:37 PM
To: [hidden email]
Subject: Re: Multiple webapps on virtual hosts


Also your /framework/logs/console.log file from the
database being checked until the end of the webapps
loading.

--- "G.Venkata Phanindra" <[hidden email]> wrote:

> Hi Ravish,
> I too struggled allot but i was able to deliver it
> with the above
> configuration i gave.
> Its better u send ur ofbiz-component.xml of
> ecommerce,nqecommerce, Images
> and also component-load.xml files.
> Thanks and Regards
> Phani
>
> On 9/15/06, Ravish Kamath <[hidden email]>
> wrote:
> >
> > Phani,
> >
> > http://abc.com:8080/ecommerce - HTTP 400 bad
> request
> >
> > http://def.abc.com:8080/nqcommerce - HTTP 400 bad
> request
> >
> > http://abc.com:8080/images/maincss.css - works !!!
> >
> > http://def.abc.com:8080/images/maincss.css - works
> !!!
> >
> > http://localhost:8080/nqcommerce - HTTP 404
> response code
> >
> > http://localhost:8080/ecommerce - HTTP 404
> response code
> >
> > So this did not work either. I am increasingly
> sure of the following:
> >
> > a) Images component is loaded before the ecommerce
> component, therefore
> > the
> > two unqiue virtual-hosts, abc.com and def.abc.com
> are taken.
> >
> > b) Both the webapps under ecommerce component are
> not bound to the
> > specified
> > ecommerce component.
> >
> > Thank you,
> > ravish
> >
> > -----Original Message-----
> > From: G.Venkata Phanindra
> [mailto:[hidden email]]
> > Sent: Friday, September 15, 2006 3:48 PM
> > To: [hidden email]
> > Subject: Re: Multiple webapps on virtual hosts
> >
> >
> > Try the Following Configurations
> > Images component - ofbiz-component.xml
> >
> >    <webapp name="images"
> >        title="Images"
> >        server="default-server"
> >        location="webapp/images"
> >        mount-point="/images"
> >        app-bar-display="false">
> >        <virtual-host host-name="abc.com"/>
> >        </webapp>
> >
> >    <webapp name="images"
> >        title="Images"
> >        server="default-server"
> >        location="webapp/images"
> >        mount-point="/images"
> >        app-bar-display="false">
> >         <virtual-host
> host-name="www.def.abc.com"/>
> >        </webapp>
> >
> > Ecommerce component - ofbiz-component.xml
> >
> >        <webapp name="ecommerce"
> >        title="ECommerce"
> >        server="default-server"
> >        location="webapp/ecommerce"
> >        mount-point="/ecommerce"
> >        app-bar-display="false">
> >        <virtual-host host-name="abc.com"/>
> >        </webapp>
> >
> >    <webapp name="nqcommerce"
> >        title="Nasdaq ECommerce"
> >        server="default-server"
> >        location="webapp/nqcommerce"
> >        mount-point="/nqcommerce"
> >        app-bar-display="false">
> >        <virtual-host host-name="def.abc.com"/>
> >        </webapp>
> > regards
> > Phani
> >
> > On 9/15/06, Ravish Kamath
> <[hidden email]> wrote:
> > >
> > > Chris,
> > >
> > > With the modification (3 sets attempted to
> arrive @ some conclusions
> > > below),
> > >
> > >     <webapp name="images"
> > >         title="Images"
> > >         server="default-server"
> > >         location="webapp/images"
> > >         mount-point="/images"
> > >         app-bar-display="false">
> > >         <virtual-host host-name="abc.com"/>
> > >         <virtual-host host-name="def.abc.com"/>
> > >         <virtual-host host-name="localhost"/>
> > >         </webapp>
> > >
> > > Result:
> > >
> > > http://def.abc.com:8080/nqcommerce/control/main
> - HTTP 400 bad request
> > >
> > > http://abc.com:8080/ecommerce/control/main -
> HTTP 400 bad request
> > >
> > > On attempting image accesses only:
> > >
> > > http://localhost:8080/images/maincss.css - Able
> to access the css
> > >
> > > http://def.abc.com:8080/images/maincss.css -
> HTTP 400 bad request
> > >
> > > http://abc.com:8080/images/maincss.css - HTTP
> 400 bad request
> > >
> > > After re-ordering the webapp as follows,
> > >
> > >     <webapp name="images"
> > >         title="Images"
> > >         server="default-server"
> > >         location="webapp/images"
> > >         mount-point="/images"
> > >         app-bar-display="false">
> > >         <virtual-host host-name="def.abc.com"/>
> > >         <virtual-host host-name="localhost"/>
> > >         <virtual-host host-name="abc.com"/>
> > >         </webapp>
> > >
> > > http://abc.com:8080/images/maincss.css - able to
> access the css
> > >
> > > http://def.abc.com:8080/images/maincss.css -
> HTTP 400 bad request
> > >
> > > http://localhost:8080/images/maincss.css - HTTP
> 400 bad request
> > >
> > >
> > > After another set of changes:
> > >
> > >     <webapp name="images"
> > >         title="Images"
> > >         server="default-server"
> > >         location="webapp/images"
> > >         mount-point="/images"
> > >         app-bar-display="false">
> > >         <virtual-host host-name="localhost"/>
> > >         <virtual-host host-name="abc.com"/>
> > >         <virtual-host host-name="def.abc.com"/>
> > >         </webapp>
> > >
> > > http://def.abc.com:8080/images/maincss.css -
> able to access the css
> > >
> > > http://localhost:8080/images/maincss.css - HTTP
> 400 bad request
> > >
> > > http://abc.com:8080/images/maincss.css - HTTP
> 400 bad request
> > >
> > > http://def.abc.com:8080/nqcommerce/control/main
> - HTTP 400 bad request
> > >
> > > From the above am tending towards the
> conclusions that:
> > >
> > > a) Multiple virtual-hosts even though can be
> specified to a webapp, the
> > > webapp is bound to the last specified
> virtual-host.
> > >
> > > b) Virtual hosts are unique to a webapp, since
> images component is
> > loaded
> > > before ecommerce, the virtual host is taken.
> > >
>
=== message truncated ===
Reply | Threaded
Open this post in threaded view
|

RE: Multiple webapps on virtual hosts

Ravish Kamath
In reply to this post by cjhowe
Chris/Phani,

We have finally decided to go ahead with multiple ecommerce webapp approach.
But for now, we are not mapping the webapp to a virtual-host as this has not
worked out at all. TO summarize the problem we faced, on mapping the new
webapp, nqcommerce with the virtual host, def.abc.com, though the url
http://def.abc.com/nqcommerce/control/main was accessible, the resources
mapped under images webapp, werent accessible.

Approaches tried included adding virtual-host mappings (def.abc.com,
localhost, abc.com) to the images webapp, replicating images instance etc,
mapping ecommerce webapp to abc.com while nqcommerce was mapped to
def.abc.com.

Thank you for all the help,

cheers,
ravish

-----Original Message-----
From: Chris Howe [mailto:[hidden email]]
Sent: Friday, September 15, 2006 4:37 PM
To: [hidden email]
Subject: Re: Multiple webapps on virtual hosts


Also your /framework/logs/console.log file from the
database being checked until the end of the webapps
loading.

--- "G.Venkata Phanindra" <[hidden email]> wrote:

> Hi Ravish,
> I too struggled allot but i was able to deliver it
> with the above
> configuration i gave.
> Its better u send ur ofbiz-component.xml of
> ecommerce,nqecommerce, Images
> and also component-load.xml files.
> Thanks and Regards
> Phani
>
> On 9/15/06, Ravish Kamath <[hidden email]>
> wrote:
> >
> > Phani,
> >
> > http://abc.com:8080/ecommerce - HTTP 400 bad
> request
> >
> > http://def.abc.com:8080/nqcommerce - HTTP 400 bad
> request
> >
> > http://abc.com:8080/images/maincss.css - works !!!
> >
> > http://def.abc.com:8080/images/maincss.css - works
> !!!
> >
> > http://localhost:8080/nqcommerce - HTTP 404
> response code
> >
> > http://localhost:8080/ecommerce - HTTP 404
> response code
> >
> > So this did not work either. I am increasingly
> sure of the following:
> >
> > a) Images component is loaded before the ecommerce
> component, therefore
> > the
> > two unqiue virtual-hosts, abc.com and def.abc.com
> are taken.
> >
> > b) Both the webapps under ecommerce component are
> not bound to the
> > specified
> > ecommerce component.
> >
> > Thank you,
> > ravish
> >
> > -----Original Message-----
> > From: G.Venkata Phanindra
> [mailto:[hidden email]]
> > Sent: Friday, September 15, 2006 3:48 PM
> > To: [hidden email]
> > Subject: Re: Multiple webapps on virtual hosts
> >
> >
> > Try the Following Configurations
> > Images component - ofbiz-component.xml
> >
> >    <webapp name="images"
> >        title="Images"
> >        server="default-server"
> >        location="webapp/images"
> >        mount-point="/images"
> >        app-bar-display="false">
> >        <virtual-host host-name="abc.com"/>
> >        </webapp>
> >
> >    <webapp name="images"
> >        title="Images"
> >        server="default-server"
> >        location="webapp/images"
> >        mount-point="/images"
> >        app-bar-display="false">
> >         <virtual-host
> host-name="www.def.abc.com"/>
> >        </webapp>
> >
> > Ecommerce component - ofbiz-component.xml
> >
> >        <webapp name="ecommerce"
> >        title="ECommerce"
> >        server="default-server"
> >        location="webapp/ecommerce"
> >        mount-point="/ecommerce"
> >        app-bar-display="false">
> >        <virtual-host host-name="abc.com"/>
> >        </webapp>
> >
> >    <webapp name="nqcommerce"
> >        title="Nasdaq ECommerce"
> >        server="default-server"
> >        location="webapp/nqcommerce"
> >        mount-point="/nqcommerce"
> >        app-bar-display="false">
> >        <virtual-host host-name="def.abc.com"/>
> >        </webapp>
> > regards
> > Phani
> >
> > On 9/15/06, Ravish Kamath
> <[hidden email]> wrote:
> > >
> > > Chris,
> > >
> > > With the modification (3 sets attempted to
> arrive @ some conclusions
> > > below),
> > >
> > >     <webapp name="images"
> > >         title="Images"
> > >         server="default-server"
> > >         location="webapp/images"
> > >         mount-point="/images"
> > >         app-bar-display="false">
> > >         <virtual-host host-name="abc.com"/>
> > >         <virtual-host host-name="def.abc.com"/>
> > >         <virtual-host host-name="localhost"/>
> > >         </webapp>
> > >
> > > Result:
> > >
> > > http://def.abc.com:8080/nqcommerce/control/main
> - HTTP 400 bad request
> > >
> > > http://abc.com:8080/ecommerce/control/main -
> HTTP 400 bad request
> > >
> > > On attempting image accesses only:
> > >
> > > http://localhost:8080/images/maincss.css - Able
> to access the css
> > >
> > > http://def.abc.com:8080/images/maincss.css -
> HTTP 400 bad request
> > >
> > > http://abc.com:8080/images/maincss.css - HTTP
> 400 bad request
> > >
> > > After re-ordering the webapp as follows,
> > >
> > >     <webapp name="images"
> > >         title="Images"
> > >         server="default-server"
> > >         location="webapp/images"
> > >         mount-point="/images"
> > >         app-bar-display="false">
> > >         <virtual-host host-name="def.abc.com"/>
> > >         <virtual-host host-name="localhost"/>
> > >         <virtual-host host-name="abc.com"/>
> > >         </webapp>
> > >
> > > http://abc.com:8080/images/maincss.css - able to
> access the css
> > >
> > > http://def.abc.com:8080/images/maincss.css -
> HTTP 400 bad request
> > >
> > > http://localhost:8080/images/maincss.css - HTTP
> 400 bad request
> > >
> > >
> > > After another set of changes:
> > >
> > >     <webapp name="images"
> > >         title="Images"
> > >         server="default-server"
> > >         location="webapp/images"
> > >         mount-point="/images"
> > >         app-bar-display="false">
> > >         <virtual-host host-name="localhost"/>
> > >         <virtual-host host-name="abc.com"/>
> > >         <virtual-host host-name="def.abc.com"/>
> > >         </webapp>
> > >
> > > http://def.abc.com:8080/images/maincss.css -
> able to access the css
> > >
> > > http://localhost:8080/images/maincss.css - HTTP
> 400 bad request
> > >
> > > http://abc.com:8080/images/maincss.css - HTTP
> 400 bad request
> > >
> > > http://def.abc.com:8080/nqcommerce/control/main
> - HTTP 400 bad request
> > >
> > > From the above am tending towards the
> conclusions that:
> > >
> > > a) Multiple virtual-hosts even though can be
> specified to a webapp, the
> > > webapp is bound to the last specified
> virtual-host.
> > >
> > > b) Virtual hosts are unique to a webapp, since
> images component is
> > loaded
> > > before ecommerce, the virtual host is taken.
> > >
>
=== message truncated ===