Well, perhaps the following may be of use to you. I have only skipped through
your error message briefly, but from what I can see, it seems as if your
error is caused because you simply copied the controller.xml file from any
other ofbiz component and copied it into your new web-inf directory. OFbiz
will hence assume that the directions from within that file are with purpose
and redirect any request to the /control/main screen... which your new war
application probably doesn't feature...
Try the following stept by step approach (Is this in the wiki anywhere?):
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
3) create a webapp folder within this very same, newly created, directory
4) copy every folder within the war file to this webapp folder (there should
be a web-inf directory under hot-deploy/yourapp/webapp/ now)
5) 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>
6) Remain everything else in touch (don't add anything) & Restart ofbiz and
give it all a go...
... I hope this works/ and helps ;)
--
View this message in context:
http://www.nabble.com/Integrating-War-into-Opentaps-%28OFBiz%29-tp20987940p21035756.html
Sent from the OFBiz - User mailing list archive at Nabble.com.