Chris/Phani,

Here are the files...

thank you,
ravish

-----Original Message-----
From: Chris Howe [mailto:[EMAIL PROTECTED]
Sent: Friday, September 15, 2006 4:37 PM
To: [email protected]
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" <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
> 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:[EMAIL PROTECTED]
> > Sent: Friday, September 15, 2006 3:48 PM
> > To: [email protected]
> > 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
> <[EMAIL PROTECTED]> 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 ===
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ofbiz-component PUBLIC "-//OFBiz//DTD Component Config//EN" "http://www.ofbiz.org/dtds/ofbiz-component.dtd";>

<!--
 *  Copyright (c) 2003 The Open For Business Project - www.ofbiz.org
 *
 *  Permission is hereby granted, free of charge, to any person obtaining a 
 *  copy of this software and associated documentation files (the "Software"), 
 *  to deal in the Software without restriction, including without limitation 
 *  the rights to use, copy, modify, merge, publish, distribute, sublicense, 
 *  and/or sell copies of the Software, and to permit persons to whom the 
 *  Software is furnished to do so, subject to the following conditions:
 *
 *  The above copyright notice and this permission notice shall be included 
 *  in all copies or substantial portions of the Software.
 *
 *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 
 *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
 *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
 *  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
 *  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT 
 *  OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR 
 *  THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *  $Id: ofbiz-component.xml 2917 2004-07-31 00:24:12Z ajzeneski $
-->

<ofbiz-component name="images">
    <resource-loader name="main" type="component"/>
    <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="def.abc.com"/>
	</webapp>
</ofbiz-component>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ofbiz-component PUBLIC "-//OFBiz//DTD Component Config//EN" "http://www.ofbiz.org/dtds/ofbiz-component.dtd";>

<!--
 *  Copyright (c) 2003 The Open For Business Project - www.ofbiz.org
 *
 *  Permission is hereby granted, free of charge, to any person obtaining a 
 *  copy of this software and associated documentation files (the "Software"), 
 *  to deal in the Software without restriction, including without limitation 
 *  the rights to use, copy, modify, merge, publish, distribute, sublicense, 
 *  and/or sell copies of the Software, and to permit persons to whom the 
 *  Software is furnished to do so, subject to the following conditions:
 *
 *  The above copyright notice and this permission notice shall be included 
 *  in all copies or substantial portions of the Software.
 *
 *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 
 *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
 *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
 *  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
 *  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT 
 *  OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR 
 *  THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *  $Id: ofbiz-component.xml 3073 2004-08-20 17:36:21Z jaz $
-->

<ofbiz-component name="ecommerce">
    <resource-loader name="main" type="component"/>
    <classpath type="jar" location="build/lib/*"/>
    <classpath type="dir" location="config"/>
    <classpath type="dir" location="script"/>
    <entity-resource type="data" reader-name="main" loader="main" location="data/DemoMerchant.xml"/>
    <entity-resource type="data" reader-name="main" loader="main" location="data/DemoProduct.xml"/>
    <entity-resource type="data" reader-name="main" loader="main" location="data/DemoSurvey.xml"/>
    <entity-resource type="data" reader-name="main" loader="main" location="data/DemoShipping.xml"/>
    <entity-resource type="data" reader-name="main" loader="main" location="data/DemoWebSitePublishPointData.xml"/>
    <entity-resource type="data" reader-name="main" loader="main" location="data/DemoContentPermissionsData.xml"/>
    <entity-resource type="data" reader-name="main" loader="main" location="data/DemoTemplateData.xml"/>
    <entity-resource type="data" reader-name="main" loader="main" location="data/DemoContent.xml"/>
    <entity-resource type="data" reader-name="main" loader="main" location="data/DemoTopic.xml"/>
    <entity-resource type="data" reader-name="main" loader="main" location="data/DemoTree.xml"/>
    <entity-resource type="data" reader-name="main" loader="main" location="data/DemoFactoids.xml"/>
    <entity-resource type="data" reader-name="main" loader="main" location="data/DemoRelatedData.xml"/>
    <entity-resource type="data" reader-name="main" loader="main" location="data/DemoConfigurator.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="NQ ECommerce"
        server="default-server"
        location="webapp/nqcommerce"
        mount-point="/nqcommerce"
	app-bar-display="false">
		<virtual-host host-name="def.abc.com"/>
	</webapp>
</ofbiz-component>

Reply via email to