radzhang 发表于 2013-1-30 01:28:33

ofbiz学习手札1

1.Eclipse里建立project。把下载的ofbiz10.04import进来。

2.用外部db。postgreSQL。在postgreSQL里建立ofbiz数据库。和登录id
ofbiz,密码ofbiz。

3.把postgresql-9.0-801.jdbc4.jar复制到/ofbizbase/framework/entity/lib/jdbc

4.编辑/ofbizbase/framework/entity/config/entityengine.xml
把 <delegator name="default" 的 <group-map group-name="org.ofbiz" datasource-name="localpostgres"/>设置成postgres用的。
<datasource name="localpostgres" 的属性编辑成postgres的连接串。
。。。。。
    jdbc-uri="jdbc:postgresql://localhost:5432/ofbiz"
                jdbc-username="ofbiz"
                jdbc-password="ofbiz"
5.在ofbiz根目录下运行ant run-install。自动在postgreSQL里创建表。

6.运行ant run启动内嵌tomcat服务。

7.http://localhost:8080/ecommerce/ 运行网店,http://localhost:8080/myportal运行后台erp。
页: [1]
查看完整版本: ofbiz学习手札1