OFBiz Study Notes

Source: Internet
Author: User

Latest stable version apache-ofbiz-13.07.02

Latest Source ofbiz-release14.12


Ant load-demo loading Demo sample Data

ant load-seed only loads seed data

Ant Start startup server


http://http://localhost:8080/ecommerce/

https://localhost:8443/ordermgr/

Username/password:admin/ofbiz


Change the default database derby to MySQL

STEP1, build Database OFBiz, Ofbizolap, ofbiztenant in MySQL, create the database Username,password respectively ofbiz,ofbiz.

STEP2, copy the MySQL driver package to OFBIZ_HOME\FRAMEWORK\ENTITY\LIB\JDBC.

STEP3, change ofbiz_home\framework\entity\config under the Entityengine.xml,

First, find the following code in the file:

<delegator name= "Default" entity-model-reader= "main" entity-group-reader= "main" entity-eca-reader= "main" Distributed-cache-clear-enabled= "false" >
<group-map group-name= "org.ofbiz" datasource-name= "Localderby"/>
<group-map group-name= "Org.ofbiz.olap" datasource-name= "Localderbyolap"/>
<group-map group-name= "org.ofbiz.tenant" datasource-name= "Localderbytenant"/>
</delegator>
<delegator name= "Default-no-eca" entity-model-reader= "main" entity-group-reader= "main" entity-eca-reader= "main" Entity-eca-enabled= "false" distributed-cache-clear-enabled= "false" >
<group-map group-name= "org.ofbiz" datasource-name= "Localderby"/>
<group-map group-name= "Org.ofbiz.olap" datasource-name= "Localderbyolap"/>
<group-map group-name= "org.ofbiz.tenant" datasource-name= "Localderbytenant"/>
</delegator>

Put the above codeRepairSwitch
<delegator name= "Default" entity-model-reader= "main" entity-group-reader= "main" entity-eca-reader= "main" Distributed-cache-clear-enabled= "false" >
<group-map group-name= "org.ofbiz" datasource-name= "Localmysql"/>
<group-map group-name= "Org.ofbiz.olap" datasource-name= "Localmysqlolap"/>
<group-map group-name= "org.ofbiz.tenant" datasource-name= "Localmysqltenant"/>
</delegator>
<delegator name= "Default-no-eca" entity-model-reader= "main" entity-group-reader= "main" entity-eca-reader= "main" Entity-eca-enabled= "false" distributed-cache-clear-enabled= "false" >
<group-map group-name= "org.ofbiz" datasource-name= "Localmysql"/>
<group-map group-name= "Org.ofbiz.olap" datasource-name= "Localmysqlolap"/>
<group-map group-name= "org.ofbiz.tenant" datasource-name= "Localmysqltenant"/>

STEP4, DOS command line, to the Ofbiz_home folder run the following command:

Ant Load-demo

OFBiz Study Notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.