Open Source Strategies
 
Main
About
Learn More
Services
Projects
Jobs
Contact

SourceForge.net Logo

Hello World Tutorials Fixes for More Recent OFBIZ Versions

The original Hello World tutorials were written in June 2005, and since then there have been some significant changes to the structure of the OFBiz directories after opentaps 0.9.x releases. If you are trying the Hello World tutorials on a later version of OFBiz or opentaps, you must make the following changes necessary:

First, each web.xml file in the hello_/webapp/hello_/WEB-INF/ must be changed so that:

org.ofbiz.securityext.login.LoginEventListener
is replaced by:
org.ofbiz.webapp.control.LoginEventListener

Second, the build.xml file in the hello3/ directory needs to have the lines:

<fileset dir="../../base/lib" includes="*.jar"/>
<fileset dir="../../base/build/lib" includes="*.jar"/>
changed to:
<fileset dir="../../framework/base/lib" includes="*.jar"/>
<fileset dir="../../framework/base/build/lib" includes="*.jar"/>

Third, if you are using opentaps 1.0.0 or later, you must edit the file hot-deploy/component-load.xml and add the hello applications there, like this:

<load-component component-location="${ofbiz.home}/hot-deploy/hello1"/>
This additional step is required because there are many opentaps modules in the hot-deploy/ directory which are not part of OFBIZ, and the component-load.xml file controls the correct sequence of loading. If you are just using OFBIZ, you do not need to do this.


© 2005-2007 Open Source Strategies, Inc. All rights reserved.