ofbiz10.04安装。
准备工作:
第一步首先配置D:\ProgramFiles\apache-ofbiz-10.04\framework\entity\config下的entityengine.xml文件
<datasource name=”localmysql”
helper-class=”org.ofbiz.entity.datasource.GenericHelperDAO”
field-type-name=”mysql”
check-on-start=”true”
add-missing-on-start=”true”
check-pks-on-start=”false”
use-foreign-keys=”true”
join-style=”ansi-no-parenthesis”
alias-view-columns=”false”
drop-fk-use-foreign-key-keyword=”true”
table-type=”InnoDB”
character-set=”latin1″
collate=”latin1_general_cs”>
<read-data reader-name=”seed”/>
<read-data reader-name=”seed-initial”/>
<read-data reader-name=”demo”/>
<read-data reader-name=”ext”/>
<inline-jdbc
jdbc-driver=”com.mysql.jdbc.Driver”
jdbc-uri=”jdbc:mysql://127.0.0.1/ofbiz autoReconnect=true&characterEncoding=UTF-8″//数据库的名字
jdbc-username=”root”
jdbc-password=”root”//设置成自己的mysql帐号密码
isolation-level=”ReadCommitted”
pool-minsize=”2″
pool-maxsize=”250″
time-between-eviction-runs-millis=”600000″/><!– Please note that at least one person has experienced a problem with this value with MySQL
and had to set it to -1 in order to avoid this issue.
For more look at http://markmail.org/thread/5sivpykv7xkl66px and http://commons.apache.org/dbcp/configuration.html–>
<!– <jndi-jdbc jndi-server-name=”localjndi” jndi-name=”java:/MySqlDataSource” isolation-level=”Serializable”/> –>
</datasource>
第二步因为连接的是mysql需要mysql的jar包。所以将jar包放到apache-ofbiz-10.04\framework\entity\lib\jdbc下
第三步因为配置文件中设定的编码是utf—8,所以mysql的配置也必须是utf-8的。在配置里设置mysql的编码为utf8
1,解释编译过程
这个过程由cmd命令提示符完成
首先找到ofbiz10.0.4的路径我的是D:\ProgramFiles\apache-ofbiz-10.04
ofbiz10.04安装
2.运行ant run-install进行编译安装
这个过程需要一段时间
3,运行startofbiz.bat完成
4.在浏览器中键入http://localhost:8080/ecommerce
4.将编译安装后的ofbiz导入eclipse