I have a few years of experience with ofbiz. I’ve tinkered with the code and managed things from the systems side. But I’ve always had a couple of developers in the cubicle next to me I could turn to when I ran into troubles. I’m now going to setup ofbiz to run on my local desktop, and document the steps I take here (more for future reference for myself than for anyone else.)
First of all, there are a few prerequisites. I’m running SuSE 10.1 and have made sure I have these packages installed (as well as any required dependencies):
Add this line as the first uncommented line in /var/lib/pgsql/data/pg_hba.conf
host ofbiz ofbiz 127.0.0.1/32 trust
This allows the ofbiz user to connect to the ofbiz database locally regardless of the password supplied.
Create the database
su - postgres
createuser -A -D ofbiz
I then went into my working directory and checked out the ofbiz trunk
svn co http://svn.apache.org/repos/asf/ofbiz/trunk ofbiz
Copy the jdbc driver into the proper directory:
cp /usr/share/pgsql/postgresql-8.1-404.jdbc3.jar ofbiz/framework/entity/lib/jdbc
Edit the framework/entity/config/entityengine.xml file and replace localderby with localpostgres in the delegator entries.
In your ofbiz directory, run
You’ll see a bunch of stuff scroll by on the screen and it should end with: “
result - BUILD SUCCESSFUL”
From your ofbiz directory, run
Then connect to https://localhost:8443/example/ or https://localhost:8443/ecommerce/ from your favorite browser.