Hi Shuchi, Sorry I mean to /Practice/Widget/Practice/PracticeScreens.xml#main
---- I saw that your view-map it is not pointing to = "component://practice/widget/Practice/PracticeScreens.xml#main" Please Check ? - Charles TJ ======== -----Original Message----- From: su2 [mailto:shu...@pexsupply.com] Sent: 26 Juni 2009 20:28 To: user@ofbiz.apache.org Subject: Re: Component not loading 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.xs d"> <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. >> > > > -- View this message in context: http://www.nabble.com/Component-not-loading-tp24206689p24220303.html Sent from the OFBiz - User mailing list archive at Nabble.com.