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. >>>> >>>> >>> >>> >> >> > > > -- View this message in context: http://www.nabble.com/Component-not-loading-tp24206689p24221565.html Sent from the OFBiz - User mailing list archive at Nabble.com.
