Hi Beejal, For fast learning you can also wash your hand on this http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginners+Development+Guide+Using+Practice+Application+%28Hello+World...%29
Hope that help for you for learning fast Regards Ravindra Mandre On 6/24/09, Beejal Kamdar <[email protected]> wrote: > > > Hi, > > I am new to Ofbiz and trying to run the tutorial applications. > I am getting an error when try to run the Hello World 2 application. > > > The error message is : > java.net.MalformedURLException: Could not get root location for component > with name [hello2], error was: > org.ofbiz.base.component.ComponentException: No component found named : > hello2 > > Following is the code in the controller.xml, HelloScreens.xml and > ofbiz-component.xml > > 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://hello2/widget/HelloScreens.xml#main"/> > <!-- end of view mappings --> > </site-conf> > > > > > HelloScreens.xml > > <?xml version="1.0" encoding="UTF-8"?> > > <!DOCTYPE screens PUBLIC "-//OFBiz//DTD OFBiz Screen Widget//EN" " > http://www.ofbiz.org/dtds/widget-screen.dtd"> > > <screens> > > <screen name="main"> > > <section> > > <widgets> > > <platform-specific><html> <html-template > location="component://hello2/webapp/hello2/includes/header.ftl" > /></html></platform-specific> > > <platform-specific><html> <html-template > location="component://hello2/webapp/hello2/main.ftl" > /></html></platform-specific> > > <platform-specific><html> <html-template > location="component://hello2/webapp/hello2/includes/footer.ftl" > /></html></platform-specific> > > </widgets> > > </section> > > </screen> > > </screens> > > > > ofbiz-component.xml > > <?xml version="1.0" encoding="UTF-8"?> > > <ofbiz-component name="hello1" > 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="hello2" > title="Hello2 Application" > server="default-server" > base-permission="OFBTOOLS" > location="webapp/hello2" > mount-point="/hello2" > app-bar-display="false"/> > </ofbiz-component> > > > Please help. > > > Thanks, > Beejal > > > >
