- Unzip your War file locally.
- 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).
- 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: <?xml version="1.0" encoding="UTF-8"?> <ofbiz-component name="cms" 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>Code Block - Remain everything else in touch (don't add anything) & Restart ofbiz and give it all a go...
...