- 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
- 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="cmsyourapp" 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>
- Remain everything else in touch (don't add anything) & Restart ofbiz and give it all a go...
...