Problem cloning eCommerce Store

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem cloning eCommerce Store

MarioF
Hello!

I am starting with OFBiz and I have a problem. I copied the eCommerce folder (and changed the name for the original eCommerce folder) from specialpurpose folder to the hot-deploy folder. Then I changed the name of this folder to mystore and change in all the files the string component://ecommerce to component://mystore.

Then I execute the ofbiz server and type in the browser: localhost:8080/mystore and I can see correctly the lateral menus but I get some error in the header, footer and the main web.

I search in all the files in mystore and there isn't some component://ecommerce but I receive the following errors:


Error rendering included template at location [component://ecommerce/webapp/ecommerce/includes/header.ftl]: java.lang.IllegalArgumentException: FreeMarker file not found at location: component://ecommerce/webapp/ecommerce/includes/header.ftl

Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@1dc5a8b with arguments of types [java.lang.String,] The problematic instruction: ---------- ==> ${screens.render("component://mystore/widget/CatalogScreens.xml#category-include")} [on line 22, column 3 in component://mystore/webapp/mystore/main.ftl] ---------- Java backtrace for programmers: ---------- freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@1dc5a8b with arguments of types [java.lang.String,] at freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:134) at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.Expression.getStringValue(Expression.java:93) at freemarker.core.DollarVariable.accept(DollarVariable.java:76) at freemarker.core.Environment.visit(Environment.java:209) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:209) at freemarker.core.IfBlock.accept(IfBlock.java:82) at freemarker.core.Environment.visit(Environment.java:209) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:209) at freemarker.core.Environment.process(Environment.java:189) at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:205) at org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:205) at org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250) at org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110) at org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1001) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:691) at org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:168) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:723) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) at org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:297) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) at org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:297) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:229) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:659) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:229) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:95) at org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:99) at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:808) at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:550) at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:214) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:694) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:665) at org.apache.jsp.index_jsp._jspService(index_jsp.java:56) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:264) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) at org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595) Caused by: org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://mystore/widget/CatalogScreens.xml#category-include]: java.lang.IllegalArgumentException: Could not resolve location to URL: component://ecommerce/widget/CatalogScreens.xml (Could not resolve location to URL: component://ecommerce/widget/CatalogScreens.xml) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:406) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132) at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:95) at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:840) at freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:104) ... 72 more Caused by: java.lang.IllegalArgumentException: Could not resolve location to URL: component://ecommerce/widget/CatalogScreens.xml at org.ofbiz.widget.screen.ScreenFactory.getScreensFromLocation(ScreenFactory.java:123) at org.ofbiz.widget.screen.ScreenFactory.getScreenFromLocation(ScreenFactory.java:99) at org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:543) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:229) at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:229) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) ... 79 more Error rendering included template at location [component://mystore/webapp/mystore/main.ftl]: freemarker.template.TemplateModelException: Method public java.lang.String org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException threw an exception when invoked on org.ofbiz.widget.screen.ScreenRenderer@1dc5a8b with arguments of types [java.lang.String,]

Error rendering included template at location [component://ecommerce/webapp/ecommerce/includes/footer.ftl]: java.lang.IllegalArgumentException: FreeMarker file not found at location: component://ecommerce/webapp/ecommerce/includes/footer.ftl

-------------------------------------------------

Why mystore is trying to load some ecommerce component? I search in all mystore files and there isn't this component://ecommerce string. Where this string come from?

Any idea of how can I fix this?

Thanks in advance.
Reply | Threaded
Open this post in threaded view
|

Re: Problem cloning eCommerce Store

BJ Freeman
did you look at the clone in the ecommerce folder.

MarioF sent the following on 8/26/2009 7:41 AM:

> Hello!
>
> I am starting with OFBiz and I have a problem. I copied the eCommerce folder
> (and changed the name for the original eCommerce folder) from specialpurpose
> folder to the hot-deploy folder. Then I changed the name of this folder to
> mystore and change in all the files the string component://ecommerce to
> component://mystore.
>
> Then I execute the ofbiz server and type in the browser:
> localhost:8080/mystore and I can see correctly the lateral menus but I get
> some error in the header, footer and the main web.
>
> I search in all the files in mystore and there isn't some
> component://ecommerce but I receive the following errors:
>
>
> Error rendering included template at location
> [component://ecommerce/webapp/ecommerce/includes/header.ftl]:
> java.lang.IllegalArgumentException: FreeMarker file not found at location:
> component://ecommerce/webapp/ecommerce/includes/header.ftl
>
> Method public java.lang.String
> org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws
> org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException
> threw an exception when invoked on
> org.ofbiz.widget.screen.ScreenRenderer@1dc5a8b with arguments of types
> [java.lang.String,] The problematic instruction: ---------- ==>
> ${screens.render("component://mystore/widget/CatalogScreens.xml#category-include")}
> [on line 22, column 3 in component://mystore/webapp/mystore/main.ftl]
> ---------- Java backtrace for programmers: ----------
> freemarker.template.TemplateModelException: Method public java.lang.String
> org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws
> org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException
> threw an exception when invoked on
> org.ofbiz.widget.screen.ScreenRenderer@1dc5a8b with arguments of types
> [java.lang.String,] at
> freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:134)
> at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) at
> freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at
> freemarker.core.Expression.getStringValue(Expression.java:93) at
> freemarker.core.DollarVariable.accept(DollarVariable.java:76) at
> freemarker.core.Environment.visit(Environment.java:209) at
> freemarker.core.MixedContent.accept(MixedContent.java:92) at
> freemarker.core.Environment.visit(Environment.java:209) at
> freemarker.core.IfBlock.accept(IfBlock.java:82) at
> freemarker.core.Environment.visit(Environment.java:209) at
> freemarker.core.MixedContent.accept(MixedContent.java:92) at
> freemarker.core.Environment.visit(Environment.java:209) at
> freemarker.core.Environment.process(Environment.java:189) at
> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:205)
> at
> org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:205)
> at
> org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250)
> at
> org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1001)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:691)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:168)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:723)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:297)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:297)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:229)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:659)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:229)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
> at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132) at
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:95) at
> org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:99)
> at
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:808)
> at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:550)
> at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:214) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
> at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
> at
> org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:694)
> at
> org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:665)
> at org.apache.jsp.index_jsp._jspService(index_jsp.java:56) at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:264)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> at
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:595) Caused by:
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
> [component://mystore/widget/CatalogScreens.xml#category-include]:
> java.lang.IllegalArgumentException: Could not resolve location to URL:
> component://ecommerce/widget/CatalogScreens.xml (Could not resolve location
> to URL: component://ecommerce/widget/CatalogScreens.xml) at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:406)
> at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132) at
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:95) at
> sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585) at
> freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:840) at
> freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:104)
> ... 72 more Caused by: java.lang.IllegalArgumentException: Could not resolve
> location to URL: component://ecommerce/widget/CatalogScreens.xml at
> org.ofbiz.widget.screen.ScreenFactory.getScreensFromLocation(ScreenFactory.java:123)
> at
> org.ofbiz.widget.screen.ScreenFactory.getScreenFromLocation(ScreenFactory.java:99)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:543)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:229)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:229)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
> ... 79 more Error rendering included template at location
> [component://mystore/webapp/mystore/main.ftl]:
> freemarker.template.TemplateModelException: Method public java.lang.String
> org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws
> org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException
> threw an exception when invoked on
> org.ofbiz.widget.screen.ScreenRenderer@1dc5a8b with arguments of types
> [java.lang.String,]
>
> Error rendering included template at location
> [component://ecommerce/webapp/ecommerce/includes/footer.ftl]:
> java.lang.IllegalArgumentException: FreeMarker file not found at location:
> component://ecommerce/webapp/ecommerce/includes/footer.ftl
>
> -------------------------------------------------
>
> Why mystore is trying to load some ecommerce component? I search in all
> mystore files and there isn't this component://ecommerce string. Where this
> string come from?
>
> Any idea of how can I fix this?
>
> Thanks in advance.

--
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com
http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
Systems Integrator.

Reply | Threaded
Open this post in threaded view
|

Re: Problem cloning eCommerce Store

MarioF
Thanks BJ. The problem was in the VT_HDR_TMPLT_LOC. Originally has a [0], if I change to [1] works fine.
 


BJ Freeman wrote
did you look at the clone in the ecommerce folder.

MarioF sent the following on 8/26/2009 7:41 AM:
> Hello!
>
> I am starting with OFBiz and I have a problem. I copied the eCommerce folder
> (and changed the name for the original eCommerce folder) from specialpurpose
> folder to the hot-deploy folder. Then I changed the name of this folder to
> mystore and change in all the files the string component://ecommerce to
> component://mystore.
>
> Then I execute the ofbiz server and type in the browser:
> localhost:8080/mystore and I can see correctly the lateral menus but I get
> some error in the header, footer and the main web.
>
> I search in all the files in mystore and there isn't some
> component://ecommerce but I receive the following errors:
>
>
> Error rendering included template at location
> [component://ecommerce/webapp/ecommerce/includes/header.ftl]:
> java.lang.IllegalArgumentException: FreeMarker file not found at location:
> component://ecommerce/webapp/ecommerce/includes/header.ftl
>
> Method public java.lang.String
> org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws
> org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException
> threw an exception when invoked on
> org.ofbiz.widget.screen.ScreenRenderer@1dc5a8b with arguments of types
> [java.lang.String,] The problematic instruction: ---------- ==>
> ${screens.render("component://mystore/widget/CatalogScreens.xml#category-include")}
> [on line 22, column 3 in component://mystore/webapp/mystore/main.ftl]
> ---------- Java backtrace for programmers: ----------
> freemarker.template.TemplateModelException: Method public java.lang.String
> org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws
> org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException
> threw an exception when invoked on
> org.ofbiz.widget.screen.ScreenRenderer@1dc5a8b with arguments of types
> [java.lang.String,] at
> freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:134)
> at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93) at
> freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at
> freemarker.core.Expression.getStringValue(Expression.java:93) at
> freemarker.core.DollarVariable.accept(DollarVariable.java:76) at
> freemarker.core.Environment.visit(Environment.java:209) at
> freemarker.core.MixedContent.accept(MixedContent.java:92) at
> freemarker.core.Environment.visit(Environment.java:209) at
> freemarker.core.IfBlock.accept(IfBlock.java:82) at
> freemarker.core.Environment.visit(Environment.java:209) at
> freemarker.core.MixedContent.accept(MixedContent.java:92) at
> freemarker.core.Environment.visit(Environment.java:209) at
> freemarker.core.Environment.process(Environment.java:189) at
> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:205)
> at
> org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:205)
> at
> org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250)
> at
> org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1001)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:691)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:168)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSectionInclude.renderWidgetString(ModelScreenWidget.java:723)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:297)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Container.renderWidgetString(ModelScreenWidget.java:297)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:229)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:659)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:229)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
> at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132) at
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:95) at
> org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:99)
> at
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:808)
> at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:550)
> at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:214) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
> at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
> at
> org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:694)
> at
> org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:665)
> at org.apache.jsp.index_jsp._jspService(index_jsp.java:56) at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:264)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
> at
> org.ofbiz.catalina.container.CrossSubdomainSessionValve.invoke(CrossSubdomainSessionValve.java:44)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:595) Caused by:
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
> [component://mystore/widget/CatalogScreens.xml#category-include]:
> java.lang.IllegalArgumentException: Could not resolve location to URL:
> component://ecommerce/widget/CatalogScreens.xml (Could not resolve location
> to URL: component://ecommerce/widget/CatalogScreens.xml) at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:406)
> at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:132) at
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:95) at
> sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585) at
> freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:840) at
> freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:104)
> ... 72 more Caused by: java.lang.IllegalArgumentException: Could not resolve
> location to URL: component://ecommerce/widget/CatalogScreens.xml at
> org.ofbiz.widget.screen.ScreenFactory.getScreensFromLocation(ScreenFactory.java:123)
> at
> org.ofbiz.widget.screen.ScreenFactory.getScreenFromLocation(ScreenFactory.java:99)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:543)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:229)
> at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:138)
> at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:229)
> at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
> ... 79 more Error rendering included template at location
> [component://mystore/webapp/mystore/main.ftl]:
> freemarker.template.TemplateModelException: Method public java.lang.String
> org.ofbiz.widget.screen.ScreenRenderer.render(java.lang.String) throws
> org.ofbiz.base.util.GeneralException,java.io.IOException,org.xml.sax.SAXException,javax.xml.parsers.ParserConfigurationException
> threw an exception when invoked on
> org.ofbiz.widget.screen.ScreenRenderer@1dc5a8b with arguments of types
> [java.lang.String,]
>
> Error rendering included template at location
> [component://ecommerce/webapp/ecommerce/includes/footer.ftl]:
> java.lang.IllegalArgumentException: FreeMarker file not found at location:
> component://ecommerce/webapp/ecommerce/includes/footer.ftl
>
> -------------------------------------------------
>
> Why mystore is trying to load some ecommerce component? I search in all
> mystore files and there isn't this component://ecommerce string. Where this
> string come from?
>
> Any idea of how can I fix this?
>
> Thanks in advance.

--
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com
http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
Systems Integrator.