These look fine to me. Now i guess, i would need to see web.xml. Please post your web.xml here.

Regards,
--
Ashish Nagar
su2 wrote:
Hi Ashish,

Following is my controller.xml.

************************
<?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>Practice Component Site Configuration File</description>
<owner>Copyright 2001-2008 The Apache Software Foundation</owner> <handler name="screen" type="view"
class="org.ofbiz.widget.screen.ScreenWidgetViewHandler"/>       <!-- Request
Mappings -->
       <request-map uri="main">
           <security https="false" auth="false"/>
           <response name="success" type="view" value="main"/>
       </request-map>
       <!-- end of request mappings -->
       <!-- View Mappings -->
       <view-map name="main" type="screen"
page="component://practice/widget/PracticeScreens.xml#main"/>
       <!-- end of view mappings -->
</site-conf>
************************

And Following is my PracticeScreens.xml

************************
<?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>

************************



Ashish Nagar wrote:
Hi,

What made you thinking that your component is not loaded? Also have you done request and view mapping in the controller.xml? If all is correct make sure that the screen name, you have mentioned in controller.xml is consistent with the one you defined in PracticeScreens.xml

Thanks,
--
Ashish Nagar

su2 wrote:
Hi All, I have added a new component under hot-deploy named practice. I added ofbiz-component.xml file with location="webapp/practice" and mount-point="/practice" I added practice>webapp>practice>WEB-INF>controller.xml & web.xml I added practice>widget>PracticeSreens.xml I started the server using java -Xmx256M -jar ofbiz.jar command. but I get following error message. ********************* HTTP Status 404 - /practice/control/main type Status report message /practice/control/main description The requested resource (/practice/control/main) is not available. *********************** Some how my newly added component is not able to load. Does anybody have idea on this? I really appreciate your help. Thanks in advance.



Reply via email to