Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Deprecation notice
Warning
titleDeprecated

This is deprecated with last versions, for instance the appserver component has been moved first from framework to specialpurpose and then recently to OFBiz Attic#Appserver

HOW-TO

This page describes how to deploy OFBiz on Glassfish Server v2.1. The process is tested on Solaris and Ubuntu and the current (as of July 12th 2009) SVN trunk. The procedure is to setup a free area where the automated scripts create the required WARs and the ofbiz EAR file out of the OFBiz source. Finally the EAR file is copied to autodeploy folder of the specified glassfish domain.

...

    1. Create a folder somewhere on the disk with ~800MB free memory. This becomes the work area. Referred as <work-folder> hence forth.
    2. Download Glassfish Server v2.1 and install. (Download it from [1])
    3. Download OFBiz source (if you have not done already). (Either download a release or what not from http://ofbiz.apache.org/download.html or checkout from SVN. Refer [2])
    4. Build OFBiz sources (in case of svn checkout) using 'ant' command. This will create 'ofbiz.jar' file.
    5. Generate container templates for Glassfish v2.1 server.
      1. Goto the OFBiz source folder (referred as OFBIZ_HOME).
      2. Use the command 'java -jar ofbiz.jar -setup glassfish21' to generate the templates. For more information refer [3]. This will create a new folder called 'setup' inside OFBIZ_HOME and place the generated templates under the folder 'setup/glassfish21'. 

        Code Block
        
        if (you are using JavaDB && want seed and demo data loaded) {
            Copy OFBIZ_HOME/setup/glassfish21/run.sh to <work-folder>;
            run run.sh script now !;
            // (without quotes) './run.sh <glassfish_home> <glassfish-domain-path>'
        } else {
         read ahead;
        }
        

...