OFBIZ learning

xiaoxiao2021-03-06  61

1 OFBIZ Overview

OFBIZ is a very famous open source project, providing creation of the latest J2EE / XML specification and technical standards, building large and medium-sized enterprise, cross-platform, cross-database, multi-level, distributed e-commerce web application system for cross-use servers frame. The main feature of OFBIZ is that OFBIZ provides a complete set of components and tools based on Java-based web applications. Includes physical engines, service engines, message engines, workflow engines, rule engines, etc.

2 system composition and hierarchy

1) a few major engines

Entity engine, service engine, message engine, workflow engine, rule engine, etc .;

All of them are entity engine and service engines, and the workflow engine is based on both engines.

2) several major applications

Below the application name and directory:

Content management Content

User Management Partymgr

Market Management Marketing

Cataloging management Catalog

Equipment Management Facility

Order management Ordermgr (using a workflow engine)

Account Management Accounting

Human Resources Management Workeffort

System management WebTools3 OFBIZ installation

The default Web Server provided by OFBIZ2.11 is Jetty, and we intend to transfer him to Tomcat. The default database provided by OFBIZ2.11 is HSQL, which is very convenient to transfer his database with WebTools. Here we describe how to install it into MySQL.

3.1 Download OFBIZ2.11 You can download by www.ofbiz.org, you can also find the OFBIZ project download directly to http://sf.net.

3.2 Download and install Tomcat recommends using Tomcat4.1.18, it has seen the version of Tomcat.4.1.7, and the latter version did not have this problem online. Tomcat can be downloaded at www.apache.org.

3.3 Install MySQL

It is mainly to establish a table space and establish a user.

3.4 Installing OFBIZ

3.4.1 Set the environment variable java_home = c: /j2sdk1.4.1_01ant_home =c: / antcatalina_home = c: / tomcat4ofbiz_home = C: / OFBIZ

PATH = C: / Ant / bin; C: / JDK131 / BIN ....

3.4.2 Running Ant Enter C: / OFBIZ ANT Install Ant Ant Deploycopy Database Drive Under DOS Drive to C: / Tomcat / Shared / LIB / Under Copy C: /Ofbiz/Setup/catalina41/conf/server.xml to C: /Tomcat/conf/server.xml Copy C: /Ofbiz/Setup/catalina41/bin/ofbiz.bat to c: /tomcat/bin/ofbiz.bat

OK! Whether the test can be run now. C: / tomcat / bin / OFBIZ RUN After the service, run http: // localhost: 8080 / WebTools / Control / Main if successful, indicating that it is. If you fail, check the logs directory under Tomcat, view the log, usually missing some JAR files.

3.4.3 Editing Catalina_Home / Share / Classes / EntityEngine.xml File

Found the following text:

Helper-class = "org.ofbiz.core.entity.GenerichelperDao"

Field-type-name = "mysql"

Check-on-start = "true" add-missing-on-start = "true"

Use-foreign-keys = "false"

Join-Style = "Theta-Oracle">

JDBC-Driver = "org.gjt.mm.mysql.driver"

JDBC-URI = "JDBC: MYSQL: // Localhost: 3306 / OFBIZ"

JDBC-UserName = "OFBIZ"

JDBC-Password = "OFBIZ"

isolation-level = "serializable" />

Edit the corresponding configuration.

Find Change to

3.4.3 Establishing a database to establish the OFBIZ database in MySQL, and OFBIZ users, passwords, allocation permissions. It is recommended to use the MySQL Studio graphical interface. 4.0 Re-running OFBIZ.BATHTTP: // localhost: 8080 / WebTools / Control / Main Remember to import data with WebTools first, otherwise you can't log in with Admin / OFBIZ! Here http: // localhost: 8080 / WebTools / Control / Install Direct Point LOAD DATA button After execution, here http: // localhost: 8080 / WebTools / Control / Checklogin / Install Log in with Admin / OFBIZ, login success certificate installation After completion, I will check the log file in unsuccessful.

转载请注明原文地址:https://www.9cbs.com/read-84960.html

New Post(0)