hi all, i am following the tutorial here and i got an error:
HTTP Status 404 - /practice/control/main type Status report message /practice/control/main description The requested resource (/practice/control/main) is not available. Apache Tomcat/6.0.33 ========================================= Here is my ofbiz-component.xml(under ofbiz/hot-deploy/practice)<?xml version="1.0" encoding="UTF-8"?> <ofbiz-component name="practice" 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"/> <webapp name="practice" title="Practice" server="default-server" base-permission="OFBTOOLS" location="webapp/practice" mount-point="/practice" app-bar-display="false"/> </ofbiz-component> ========================================= And this is the web.xml(under ofbiz/hot-deploy/practice/webapp/practice/WEB-INF)<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>Open For Business - Extended Example Application</display-name> <description>Extended Example Application of the Open For Business Project</description> <context-param> <param-name>webSiteId</param-name> <param-value>PRACTICE</param-value> <description>A unique ID used to look up the WebSite entity to get information about catalogs, etc.</description> </context-param> <context-param> <param-name>localDispatcherName</param-name> <param-value>practice</param-value> <description>A unique name used to identify/recognize the local dispatcher for the Service Engine</description> </context-param> <context-param> <param-name>mainDecoratorLocation</param-name> <param-value>component://practice/widget/CommonScreens.xml</param-value> <description>The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files.</description> </context-param> </web-app> ======================== this is the controller.xml(under ofbiz/hot-deploy/practice/webapp/practice/WEB-INF)<?xml version="1.0" encoding="UTF-8"?> <site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/site-conf.xsd"> <include location="component://common/webcommon/WEB-INF/common-controller.xml"/> <description>Extended Catalog Manager Controller Configuration File</description> <handler name="screen" type="view" class="org.ofbiz.widget.screen.ScreenWidgetViewHandler"/> <request-map uri="main"> <security https="false" auth="false"/> <response name="success" type="view" value="main"/> </request-map> <view-map name="main" type="screen" page="component://practice/widget/PracticeScreens.xml#main"/> </site-conf> ================= and finally the PracticeScreens.xml(under /ofbiz/hot-deploy/practice/widget)<?xml version="1.0" encoding="UTF-8"?> <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd"> <screen name="main"> <section> <widgets> <label text="This is first practice"/> </widgets> </section> </screen> </screens> ================================== The ofbiz verison i am using is 10.04. basically they are just copies from the tutorial and i have been trying to figure out what the probem is for days. Any helps would be appreciated and thanks in advance. |
Free forum by Nabble | Edit this page |