Hi Boirs,

You are using ant-run-install target to load data, this target load all the 
data (seed, demo,test...).


And  WebSite data for WebStore define in ecommerce/data/DemoProductData.xml, so 
its override the seed data loaded by you.

<WebSite webSiteId="WebStore" siteName="eCommerce Web Site" 
productStoreId="9000" visualThemeSetId="ECOMMERCE"/> 

You have to try the run-install-seed or runi-install-extseed or 
run-install-readers target to load data.


Thanks & Regards
-- 
Deepak Dixit
Sr. Enterprise Software Developer
HotWax Media Pvt. Ltd.
www.hotwaxmedia.com
Contact :- +91-98267-54548
Skype  :- deepakdixit

On Nov 11, 2011, at 4:56 AM, Boris Hamanov wrote:

> Hi,
> 
> I am using latest Ofbiz 09.04 Stable;
> 
> I created my own store and I need the default ecommerce app to use it instead 
> of the built-in one (ID 9000)
> 
> I saw that webSiteId="WebStore" in web.xml of the ecommerce web app. I don’t 
> know how to override that, so I just put into my component seed data this 
> file:
> 
> My store has productStoreId of 90000
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <entity-engine-xml>
>    <WebSite webSiteId="WebStore" siteName="eCommerce Web Site" 
> productStoreId="90000" visualThemeSetId="ECOMMERCE"/>
> </entity-engine-xml>
> 
> I referenced that in my component ofbiz-component.xml like this: 
> 
> <entity-resource type="data" reader-name="seed" loader="main" 
> location="data/overrideMainPageData.xml"/>
> 
> I do ant clean run-install while my component is in the hot-deploy, but it 
> does not work. It works when I manually import overrideMainPageData.xml from 
> web tools, so the problem must be in the seed order. I read somewhere that 
> components in hot deploy are loaded last. So why is this happening? Any 
> better way to do what I want?
> 
> Thank you for any time you can spare on this. I would appreciate it!
> 

Reply via email to