Faq
How to run OfbizNeogia with an alternative configuration to avoid to have to modify default configuration files?
- Create folder ofbizNeogia/conf/site (it can not be commited by error because it is referenced in .cvsignore)
- Put in this folder modified configuration files and required jars
- Create file ofbizNeogia/site.properties that contains this line:
ofbiz.neogia.site.conf=conf/site
There are examples of alternative configuration in ofbizNeogia/conf:
- ofbiz.neogia.site.conf=conf/portplus1: allow running an ofbizNeogia instance with all ports setup to listen on default ports + 1
- ofbiz.neogia.site.conf=conf/postgresql-8.0: example of configuration to run ofbizNeogia with postgresql-8.0
How to run OfbizNeogia in Eclipse?
- Select ofbizNeogia project, right-click on it -> Run As -> Run ...
- Select Java Application and click on New
- Set Run configuration name to OfbizNeogia
- Main tab:
- Project: ofbizNeogia
- Main class: org.ofbiz.base.start.Start
- Arguments:
- VM arguments: -Xms128M -Xmx256M
- Working directory: Use default working directory
- Classpath
- Bootstrap Entries: JRE System Library
- User Entries: add ofbiz.jar from ofbizNeogia project and remove all others
- Source (for debugging)
- add ofbizNeogia java project
- Environment
- Add environment variable LC_ALL=C
- Main tab:
- Click on Apply and Run
You can also check out this guide (Spanish):
How to see which files have been really modified by a regeneration?
After having regenerated a component, all its generated files appear modified because their timestamp has changed. Therefore only a small subset of them has really been modified. By doing a cvs update at the component level, timestamp of not modified files will be reset.
Why some xml files contains validation errors when displayed in Eclipse?
By default, Eclipse looks for xml schema definitions by using the namespaces declared in xml documents which points to www.ofbiz.org. Xml schemas presented on this site don't contain neogia extensions that's why validation errors appear. You can define an XML catalog to force eclipse to look for xml schema on the machine instead of on the net.
- Window menu
- Preferences...
- Web and XML -> XML Catalog
- Click on Advanced...
- Click on Import...
- Select ofbizNeogia/.xmlcatalog
- Preferences...
Change TCP Port
You can find some basic start configuration in the file: {ofbiz.neogia.home}/base/config/ofbiz-containers.xml. On this file you can change the line:
<property name="port" value="8080"/>
You can use any port that you want (of course an unused port).
This works for windows also. Remember that you have to be careful with the port number, for example on linux any port below 1024 requires root priviledges to work.


