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. |
Hi,
Could you please post your ofbiz-component.xml file entry here? Thanks! Regards, -- Vivek Mishra 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. > smime.p7s (4K) Download Attachment |
Hi Vivek,
My ofbiz-component.xml is ************************ <?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> ************************
|
In reply to this post by su2
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. > |
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-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 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> ************************
|
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. >>> >>> >> >> > > |
In reply to this post by su2
Hi Shuchi,
I saw that your view-map it is not pointing to = "component://practice/widget/PracticeScreens.xml#main" Please Check ? - Charles TJ ======== -----Original Message----- From: su2 [mailto:[hidden email]] Sent: 26 Juni 2009 20:28 To: [hidden email] 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. |
In reply to this post by su2
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:[hidden email]] Sent: 26 Juni 2009 20:28 To: [hidden email] 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. |
In reply to this post by Ashish Nagar
Hi Ashish,
Following is my web.xml *************************** <?xml version="1.0"?> <!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>Opentaps - Practice Application</display-name> <description>Practice Application of the Opentaps Project</description> <context-param> <param-name>entityDelegatorName</param-name> <param-value>default</param-value> <description>The Name of the Entity Delegator to use, defined in entityengine.xml</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>mainApplicationDecoratorLocation</param-name> <param-value>component://practice/widget/CommonScreens.xml</param-value> <description>The location of the main-application-decorator screen to use for this webapp; referred to as a context variable in screen def XML files.</description> </context-param> <filter> <filter-name>ContextFilter</filter-name> <display-name>ContextFilter</display-name> <filter-class>org.ofbiz.webapp.control.ContextFilter</filter-class> <init-param> <param-name>disableContextSecurity</param-name> <param-value>N</param-value> </init-param> <init-param> <param-name>allowedPaths</param-name> <param-value>/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/includes/maincss.css:/css</param-value> </init-param> <init-param> <param-name>errorCode</param-name> <param-value>403</param-value> </init-param> <init-param> <param-name>redirectPath</param-name> <param-value>/control/main</param-value> </init-param> </filter> <filter-mapping> <filter-name>ContextFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <listener><listener-class>org.ofbiz.webapp.control.ControlEventListener</listener-class></listener> <listener><listener-class>org.ofbiz.webapp.control.LoginEventListener</listener-class></listener> <servlet> <servlet-name>ControlServlet</servlet-name> <display-name>ControlServlet</display-name> <description>Main Control Servlet</description> <servlet-class>org.ofbiz.webapp.control.ControlServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>ControlServlet</servlet-name> <url-pattern>/control/*</url-pattern> </servlet-mapping> <session-config> <session-timeout>60</session-timeout> </session-config> <welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> </welcome-file-list> </web-app> ***************************
|
In reply to this post by Charles Tjandra
Sorry SELC,
I could not understand your suggestion. Shouldn't view map be <view-map name="main" type="screen" page="component://practice/widget/PracticeScreens.xml#main"/> OR you are suggesting me to have like following <view-map name="main" type="screen" page="component<b>:/practice/widget/PracticeScreens.xml#main"/> Please advise. Thank you.
|
Hi Shuchi,
Sorry, I thought that you try my step - I have sent it to you. Never mind... - Charles TJ =============== -----Original Message----- From: su2 [mailto:[hidden email]] Sent: 26 Juni 2009 21:46 To: [hidden email] Subject: RE: Component not loading Sorry SELC, I could not understand your suggestion. Shouldn't view map be <view-map name="main" type="screen" page="component://practice/widget/PracticeScreens.xml#main"/> OR you are suggesting me to have like following <view-map name="main" type="screen" page="component:/practice/widget/PracticeScreens.xml#main"/> Please advise. Thank you. SELC Sales Div wrote: > > 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:[hidden email]] > Sent: 26 Juni 2009 20:28 > To: [hidden email] > 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" > > > <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" > > > 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. > > > -- View this message in context: http://www.nabble.com/Component-not-loading-tp24206689p24221609.html Sent from the OFBiz - User mailing list archive at Nabble.com. |
Hi,
Actually good not understand what step you suggested and what should I try. Sorry. Thanks.
|
Hi Shuchi, Never mind, just forget it. Thanks. - Charles TJ -----Original Message----- From: su2 [mailto:[hidden email]] Sent: 26 Juni 2009 21:58 To: [hidden email] Subject: RE: Component not loading Hi, Actually good not understand what step you suggested and what should I try. Sorry. Thanks. |
In reply to this post by su2
This is strange. Your web.xml has no issue as well. At this moment can
you tell what your console says? I think you should check the directory structure. You can use command ant create-component to build proper directory structure. Try ant clean-all then ant run-install again and start the server. Regards, -- Ashish Nagar su2 wrote: > Hi Ashish, > > Following is my web.xml > > *************************** > <?xml version="1.0"?> > <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application > 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> > > <!-- > * Copyright (c) 2006 - 2007 Open Source Strategies, Inc. > * > * This program is free software; you can redistribute it and/or modify > * it under the terms of the Honest Public License. > * > * This program is distributed in the hope that it will be useful, > * but WITHOUT ANY WARRANTY; without even the implied warranty of > * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > * Honest Public License for more details. > * > * You should have received a copy of the Honest Public License > * along with this program; if not, write to Funambol, > * 643 Bair Island Road, Suite 305 - Redwood City, CA 94063, USA > --> > > <web-app> > <display-name>Opentaps - Practice Application</display-name> > <description>Practice Application of the Opentaps Project</description> > > <context-param> > <param-name>entityDelegatorName</param-name> > <param-value>default</param-value> > <description>The Name of the Entity Delegator to use, defined in > entityengine.xml</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>mainApplicationDecoratorLocation</param-name> > > <param-value>component://practice/widget/CommonScreens.xml</param-value> > <description>The location of the main-application-decorator screen > to use for this webapp; referred to as a context variable in screen def XML > files.</description> > </context-param> > > <filter> > <filter-name>ContextFilter</filter-name> > <display-name>ContextFilter</display-name> > <filter-class>org.ofbiz.webapp.control.ContextFilter</filter-class> > <init-param> > <param-name>disableContextSecurity</param-name> > <param-value>N</param-value> > </init-param> > <init-param> > <param-name>allowedPaths</param-name> > > <param-value>/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/includes/maincss.css:/css</param-value> > </init-param> > <init-param> > <param-name>errorCode</param-name> > <param-value>403</param-value> > </init-param> > <init-param> > <param-name>redirectPath</param-name> > <param-value>/control/main</param-value> > </init-param> > </filter> > <filter-mapping> > <filter-name>ContextFilter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > > > <listener><listener-class>org.ofbiz.webapp.control.ControlEventListener</listener-class></listener> > > <listener><listener-class>org.ofbiz.webapp.control.LoginEventListener</listener-class></listener> > <!-- NOTE: not all app servers support mounting implementations of the > HttpSessionActivationListener interface --> > <!-- > <listener><listener-class>org.ofbiz.webapp.control.ControlActivationEventListener</listener-class></listener> > --> > > <servlet> > <servlet-name>ControlServlet</servlet-name> > <display-name>ControlServlet</display-name> > <description>Main Control Servlet</description> > > <servlet-class>org.ofbiz.webapp.control.ControlServlet</servlet-class> > <load-on-startup>1</load-on-startup> > </servlet> > <servlet-mapping> > <servlet-name>ControlServlet</servlet-name> > <url-pattern>/control/*</url-pattern> > </servlet-mapping> > > <session-config> > <session-timeout>60</session-timeout> <!-- in minutes --> > </session-config> > > <welcome-file-list> > <welcome-file>index.jsp</welcome-file> > <welcome-file>index.html</welcome-file> > <welcome-file>index.htm</welcome-file> > </welcome-file-list> > </web-app> > > *************************** > > > > > Ashish Nagar wrote: > >> 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. >>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > |
Hi Ashish,
I think we have to know which version used. Maybe applying the 'hello world' for v9.xx at the v4.xx ? - Charles Tj ===== -----Original Message----- From: Ashish Nagar [mailto:[hidden email]] Sent: 26 Juni 2009 22:28 To: [hidden email] Subject: Re: Component not loading This is strange. Your web.xml has no issue as well. At this moment can you tell what your console says? I think you should check the directory structure. You can use command ant create-component to build proper directory structure. Try ant clean-all then ant run-install again and start the server. Regards, -- |
In reply to this post by Ashish Nagar
It Woked yeyyyy!!!
Once I added component in component-load.xml file, it worked. But I do not see such step in tutorial though. Do we always have to add in this file? just want to know whether what i did is work around fix or that is how it suppose to be. Thanks
|
Are you using open-taps? If yes then you have to add it in
component-load.xml. Ofbiz does not require to add it in that file, so not mentioned in the tutorials. Regards, -- Ashish Nagar su2 wrote: > It Woked yeyyyy!!! > > Once I added component in component-load.xml file, it worked. > > But I do not see such step in tutorial though. Do we always have to add in > this file? just want to know whether what i did is work around fix or that > is how it suppose to be. > > Thanks > > > > Ashish Nagar wrote: > >> This is strange. Your web.xml has no issue as well. At this moment can >> you tell what your console says? I think you should check the directory >> structure. You can use command ant create-component to build proper >> directory structure. >> >> Try ant clean-all then ant run-install again and start the server. >> >> Regards, >> -- >> Ashish Nagar >> >> su2 wrote: >> >>> Hi Ashish, >>> >>> Following is my web.xml >>> >>> *************************** >>> <?xml version="1.0"?> >>> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application >>> 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> >>> >>> <!-- >>> * Copyright (c) 2006 - 2007 Open Source Strategies, Inc. >>> * >>> * This program is free software; you can redistribute it and/or modify >>> * it under the terms of the Honest Public License. >>> * >>> * This program is distributed in the hope that it will be useful, >>> * but WITHOUT ANY WARRANTY; without even the implied warranty of >>> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >>> * Honest Public License for more details. >>> * >>> * You should have received a copy of the Honest Public License >>> * along with this program; if not, write to Funambol, >>> * 643 Bair Island Road, Suite 305 - Redwood City, CA 94063, USA >>> --> >>> >>> <web-app> >>> <display-name>Opentaps - Practice Application</display-name> >>> <description>Practice Application of the Opentaps >>> Project</description> >>> >>> <context-param> >>> <param-name>entityDelegatorName</param-name> >>> <param-value>default</param-value> >>> <description>The Name of the Entity Delegator to use, defined in >>> entityengine.xml</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>mainApplicationDecoratorLocation</param-name> >>> >>> <param-value>component://practice/widget/CommonScreens.xml</param-value> >>> <description>The location of the main-application-decorator >>> screen >>> to use for this webapp; referred to as a context variable in screen def >>> XML >>> files.</description> >>> </context-param> >>> >>> <filter> >>> <filter-name>ContextFilter</filter-name> >>> <display-name>ContextFilter</display-name> >>> >>> <filter-class>org.ofbiz.webapp.control.ContextFilter</filter-class> >>> <init-param> >>> <param-name>disableContextSecurity</param-name> >>> <param-value>N</param-value> >>> </init-param> >>> <init-param> >>> <param-name>allowedPaths</param-name> >>> >>> <param-value>/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/includes/maincss.css:/css</param-value> >>> </init-param> >>> <init-param> >>> <param-name>errorCode</param-name> >>> <param-value>403</param-value> >>> </init-param> >>> <init-param> >>> <param-name>redirectPath</param-name> >>> <param-value>/control/main</param-value> >>> </init-param> >>> </filter> >>> <filter-mapping> >>> <filter-name>ContextFilter</filter-name> >>> <url-pattern>/*</url-pattern> >>> </filter-mapping> >>> >>> >>> <listener><listener-class>org.ofbiz.webapp.control.ControlEventListener</listener-class></listener> >>> >>> <listener><listener-class>org.ofbiz.webapp.control.LoginEventListener</listener-class></listener> >>> <!-- NOTE: not all app servers support mounting implementations of >>> the >>> HttpSessionActivationListener interface --> >>> <!-- >>> <listener><listener-class>org.ofbiz.webapp.control.ControlActivationEventListener</listener-class></listener> >>> --> >>> >>> <servlet> >>> <servlet-name>ControlServlet</servlet-name> >>> <display-name>ControlServlet</display-name> >>> <description>Main Control Servlet</description> >>> >>> <servlet-class>org.ofbiz.webapp.control.ControlServlet</servlet-class> >>> <load-on-startup>1</load-on-startup> >>> </servlet> >>> <servlet-mapping> >>> <servlet-name>ControlServlet</servlet-name> >>> <url-pattern>/control/*</url-pattern> >>> </servlet-mapping> >>> >>> <session-config> >>> <session-timeout>60</session-timeout> <!-- in minutes --> >>> </session-config> >>> >>> <welcome-file-list> >>> <welcome-file>index.jsp</welcome-file> >>> <welcome-file>index.html</welcome-file> >>> <welcome-file>index.htm</welcome-file> >>> </welcome-file-list> >>> </web-app> >>> >>> *************************** >>> >>> >>> >>> >>> Ashish Nagar wrote: >>> >>> >>>> 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. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > |
Hi Ashish,
Yes you are right I am using opentaps 1.0.3 but thats what I got it from ofbiz.apache.org > ofbiz download
|
You can download ofbiz from release or trunk version from this list
http://build.ofbiz.org/ Regards, -- Ashish Nagar su2 wrote: > Hi Ashish, > > Yes you are right I am using opentaps 1.0.3 but thats what I got it from > ofbiz.apache.org > ofbiz download > > > > > > Ashish Nagar wrote: > >> Are you using open-taps? If yes then you have to add it in >> component-load.xml. Ofbiz does not require to add it in that file, so >> not mentioned in the tutorials. >> >> Regards, >> -- >> Ashish Nagar >> >> su2 wrote: >> >>> It Woked yeyyyy!!! >>> >>> Once I added component in component-load.xml file, it worked. >>> >>> But I do not see such step in tutorial though. Do we always have to add >>> in >>> this file? just want to know whether what i did is work around fix or >>> that >>> is how it suppose to be. >>> >>> Thanks >>> >>> >>> >>> Ashish Nagar wrote: >>> >>> >>>> This is strange. Your web.xml has no issue as well. At this moment can >>>> you tell what your console says? I think you should check the directory >>>> structure. You can use command ant create-component to build proper >>>> directory structure. >>>> >>>> Try ant clean-all then ant run-install again and start the server. >>>> >>>> Regards, >>>> -- >>>> Ashish Nagar >>>> >>>> su2 wrote: >>>> >>>> >>>>> Hi Ashish, >>>>> >>>>> Following is my web.xml >>>>> >>>>> *************************** >>>>> <?xml version="1.0"?> >>>>> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web >>>>> Application >>>>> 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> >>>>> >>>>> <!-- >>>>> * Copyright (c) 2006 - 2007 Open Source Strategies, Inc. >>>>> * >>>>> * This program is free software; you can redistribute it and/or modify >>>>> * it under the terms of the Honest Public License. >>>>> * >>>>> * This program is distributed in the hope that it will be useful, >>>>> * but WITHOUT ANY WARRANTY; without even the implied warranty of >>>>> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >>>>> * Honest Public License for more details. >>>>> * >>>>> * You should have received a copy of the Honest Public License >>>>> * along with this program; if not, write to Funambol, >>>>> * 643 Bair Island Road, Suite 305 - Redwood City, CA 94063, USA >>>>> --> >>>>> >>>>> <web-app> >>>>> <display-name>Opentaps - Practice Application</display-name> >>>>> <description>Practice Application of the Opentaps >>>>> Project</description> >>>>> >>>>> <context-param> >>>>> <param-name>entityDelegatorName</param-name> >>>>> <param-value>default</param-value> >>>>> <description>The Name of the Entity Delegator to use, defined >>>>> in >>>>> entityengine.xml</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>mainApplicationDecoratorLocation</param-name> >>>>> >>>>> <param-value>component://practice/widget/CommonScreens.xml</param-value> >>>>> <description>The location of the main-application-decorator >>>>> screen >>>>> to use for this webapp; referred to as a context variable in screen def >>>>> XML >>>>> files.</description> >>>>> </context-param> >>>>> >>>>> <filter> >>>>> <filter-name>ContextFilter</filter-name> >>>>> <display-name>ContextFilter</display-name> >>>>> >>>>> <filter-class>org.ofbiz.webapp.control.ContextFilter</filter-class> >>>>> <init-param> >>>>> <param-name>disableContextSecurity</param-name> >>>>> <param-value>N</param-value> >>>>> </init-param> >>>>> <init-param> >>>>> <param-name>allowedPaths</param-name> >>>>> >>>>> <param-value>/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/includes/maincss.css:/css</param-value> >>>>> </init-param> >>>>> <init-param> >>>>> <param-name>errorCode</param-name> >>>>> <param-value>403</param-value> >>>>> </init-param> >>>>> <init-param> >>>>> <param-name>redirectPath</param-name> >>>>> <param-value>/control/main</param-value> >>>>> </init-param> >>>>> </filter> >>>>> <filter-mapping> >>>>> <filter-name>ContextFilter</filter-name> >>>>> <url-pattern>/*</url-pattern> >>>>> </filter-mapping> >>>>> >>>>> >>>>> <listener><listener-class>org.ofbiz.webapp.control.ControlEventListener</listener-class></listener> >>>>> >>>>> <listener><listener-class>org.ofbiz.webapp.control.LoginEventListener</listener-class></listener> >>>>> <!-- NOTE: not all app servers support mounting implementations of >>>>> the >>>>> HttpSessionActivationListener interface --> >>>>> <!-- >>>>> <listener><listener-class>org.ofbiz.webapp.control.ControlActivationEventListener</listener-class></listener> >>>>> --> >>>>> >>>>> <servlet> >>>>> <servlet-name>ControlServlet</servlet-name> >>>>> <display-name>ControlServlet</display-name> >>>>> <description>Main Control Servlet</description> >>>>> >>>>> <servlet-class>org.ofbiz.webapp.control.ControlServlet</servlet-class> >>>>> <load-on-startup>1</load-on-startup> >>>>> </servlet> >>>>> <servlet-mapping> >>>>> <servlet-name>ControlServlet</servlet-name> >>>>> <url-pattern>/control/*</url-pattern> >>>>> </servlet-mapping> >>>>> >>>>> <session-config> >>>>> <session-timeout>60</session-timeout> <!-- in minutes --> >>>>> </session-config> >>>>> >>>>> <welcome-file-list> >>>>> <welcome-file>index.jsp</welcome-file> >>>>> <welcome-file>index.html</welcome-file> >>>>> <welcome-file>index.htm</welcome-file> >>>>> </welcome-file-list> >>>>> </web-app> >>>>> >>>>> *************************** >>>>> >>>>> >>>>> >>>>> >>>>> Ashish Nagar wrote: >>>>> >>>>> >>>>> >>>>>> 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. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > |
Free forum by Nabble | Edit this page |