You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by su2 <sh...@pexsupply.com> on 2009/06/25 18:55:41 UTC
Component not loading
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-tp24206689p24206689.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Component not loading
Posted by Ashish Nagar <as...@hotwaxmedia.com>.
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.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: Component not loading
Posted by su2 <sh...@pexsupply.com>.
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.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/Component-not-loading-tp24206689p24222919.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Component not loading
Posted by Ashish Nagar <as...@hotwaxmedia.com>.
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.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: Component not loading
Posted by su2 <sh...@pexsupply.com>.
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.
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/Component-not-loading-tp24206689p24222532.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
RE: Component not loading
Posted by SELC Sales Div <se...@bdg.centrin.net.id>.
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:ashish.nagar@hotwaxmedia.com]
Sent: 26 Juni 2009 22:28
To: user@ofbiz.apache.org
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,
--
Re: Component not loading
Posted by Ashish Nagar <as...@hotwaxmedia.com>.
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.
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Re: Component not loading
Posted by su2 <sh...@pexsupply.com>.
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.
Re: Component not loading
Posted by Ashish Nagar <as...@hotwaxmedia.com>.
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.
>>>
>>>
>>
>>
>
>
RE: Component not loading
Posted by SELC Sales Div <se...@bdg.centrin.net.id>.
Hi Shuchi,
Never mind, just forget it.
Thanks.
- Charles TJ
-----Original Message-----
From: su2 [mailto:shuchi@pexsupply.com]
Sent: 26 Juni 2009 21:58
To: user@ofbiz.apache.org
Subject: RE: Component not loading
Hi,
Actually good not understand what step you suggested and what should I try.
Sorry.
Thanks.
RE: Component not loading
Posted by su2 <sh...@pexsupply.com>.
Hi,
Actually good not understand what step you suggested and what should I try.
Sorry.
Thanks.
SELC Sales Div wrote:
>
> 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:shuchi@pexsupply.com]
> Sent: 26 Juni 2009 21:46
> To: user@ofbiz.apache.org
> 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:shuchi@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.
>>
>>
>>
>
> --
> 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.
>
>
>
--
View this message in context: http://www.nabble.com/Component-not-loading-tp24206689p24221805.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
RE: Component not loading
Posted by SELC Sales Div <se...@bdg.centrin.net.id>.
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:shuchi@pexsupply.com]
Sent: 26 Juni 2009 21:46
To: user@ofbiz.apache.org
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:shuchi@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.
>
>
>
--
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.
RE: Component not loading
Posted by su2 <sh...@pexsupply.com>.
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:shuchi@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.
>
>
>
--
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.
RE: Component not loading
Posted by SELC Sales Div <se...@bdg.centrin.net.id>.
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:shuchi@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.
RE: Component not loading
Posted by SELC Sales Div <se...@bdg.centrin.net.id>.
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:shuchi@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.
Re: Component not loading
Posted by su2 <sh...@pexsupply.com>.
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-tp24206689p24220303.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Component not loading
Posted by Ashish Nagar <as...@hotwaxmedia.com>.
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.
>
Re: Component not loading
Posted by su2 <sh...@pexsupply.com>.
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>
************************
Vivek Mishra-2 wrote:
>
> 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.
>>
>
>
>
--
View this message in context: http://www.nabble.com/Component-not-loading-tp24206689p24219603.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Component not loading
Posted by Vivek Mishra <vi...@hotwaxmedia.com>.
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.
>