Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Bringing it in line with the ./ant create-component command
  1. Unzip your War file locally.
  2. Create a new folder in the hot-deploy directory by whatever name you want your new application to run under Create a webapp folder within this very same, newly created, directory(Tip: use the ./ant create-component command to generate a component skeleton in the hot-deploy folder of your OFBiz instantiation).
  3. Copy every folder within the war file to this webapp folder (there should be a web-inf directory under hot-deploy/yourapp/webapp/ now)Add a new ofbiz-component file to /hot-deploy/yourapp
    Change the following accordingly to your webapp: Code Block <?xml version="1.0" encoding="UTF-8"?> <ofbiz-component name="yourapp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd"> <resource-loader name="main" type="component" /> <!-- <classpath type="dir" location="config" /> --> <classpath location="lib/*" type="jar"/> <classpath type="jar" location="build/lib/*"/> <classpath type="dir" location="src/*" /> <webapp name="yourapp" title="yourapp" server="default-server" location="webapp" mount-point="/yourapp" app-bar-display="false" /> </ofbiz-component>
  4. Remain everything else in touch (don't add anything) & Restart ofbiz and give it all a go...

...