org.apache.ofbiz.webapp.control.RequestHandlerException

Error in the response writer/output stream: freemarker.template.TemplateNotFoundException: Template not found for name "component://widget/templates/HtmlScreenMacroLibrary.ftl". The name was interpreted by this TemplateLoader: MultiTemplateLoader(loader1 = org.apache.ofbiz.base.util.template.FreeMarkerWorker$FlexibleTemplateLoader@6e5ece55, loader2 = StringTemplateLoader(Map { })). (Template not found for name "component://widget/templates/HtmlScreenMacroLibrary.ftl". The name was interpreted by this TemplateLoader: MultiTemplateLoader(loader1 = org.apache.ofbiz.base.util.template.FreeMarkerWorker$FlexibleTemplateLoader@6e5ece55, loader2 = StringTemplateLoader(Map { })).)

Samebug tips1

SpringFramework DefaultResourceLoader won't load some types of URLs, if you want to pass it to them, try overriding the method and using the Resource Loader of your own choice. If you need more info, take a look at this answer: https://goo.gl/WV241z

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web2

  • via Stack Overflow by Gryphoenix
    , 5 months ago
    Error in the response writer/output stream: freemarker.template.TemplateNotFoundException: Template not found for name "component://widget/templates/HtmlScreenMacroLibrary.ftl". The name was interpreted by this TemplateLoader: MultiTemplateLoader
  • Error in the response writer/output stream: freemarker.template.TemplateNotFoundException: Template not found for name "component://widget/templates/HtmlScreenMacroLibrary.ftl". The name was interpreted by this TemplateLoader: MultiTemplateLoader
  • Stack trace

    • org.apache.ofbiz.webapp.control.RequestHandlerException: Error in the response writer/output stream: freemarker.template.TemplateNotFoundException: Template not found for name "component://widget/templates/HtmlScreenMacroLibrary.ftl". The name was interpreted by this TemplateLoader: MultiTemplateLoader(loader1 = org.apache.ofbiz.base.util.template.FreeMarkerWorker$FlexibleTemplateLoader@6e5ece55, loader2 = StringTemplateLoader(Map { })). (Template not found for name "component://widget/templates/HtmlScreenMacroLibrary.ftl". The name was interpreted by this TemplateLoader: MultiTemplateLoader(loader1 = org.apache.ofbiz.base.util.template.FreeMarkerWorker$FlexibleTemplateLoader@6e5ece55, loader2 = StringTemplateLoader(Map { })).) at org.apache.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:989)[ofbiz.jar:?] at org.apache.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:649)[ofbiz.jar:?] at org.apache.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:210)[ofbiz.jar:?] at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)[javax.servlet-api-3.1.0.jar:3.1.0] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)[javax.servlet-api-3.1.0.jar:3.1.0] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)[tomcat-catalina-8.0.37.jar:8.0.37] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)[tomcat-catalina-8.0.37.jar:8.0.37] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)[tomcat-embed-websocket-8.0.36.jar:8.0.36] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)[tomcat-catalina-8.0.37.jar:8.0.37] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)[tomcat-catalina-8.0.37.jar:8.0.37] at org.apache.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:209)[ofbiz.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)[tomcat-catalina-8.0.37.jar:8.0.37] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)[tomcat-catalina-8.0.37.jar:8.0.37] at org.apache.ofbiz.webapp.control.ControlFilter.doFilter(ControlFilter.java:156)[ofbiz.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)[tomcat-catalina-8.0.37.jar:8.0.37] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)[tomcat-catalina-8.0.37.jar:8.0.37] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)[tomcat-catalina-8.0.37.jar:8.0.37] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)[tomcat-catalina-8.0.37.jar:8.0.37] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)[tomcat-catalina-8.0.37.jar:8.0.37] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)[tomcat-catalina-8.0.37.jar:8.0.37] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)[tomcat-catalina-8.0.37.jar:8.0.37] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)[tomcat-catalina-8.0.37.jar:8.0.37] at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)[tomcat-catalina-8.0.37.jar:8.0.37] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528)[tomcat-catalina-8.0.37.jar:8.0.37] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1100)[tomcat-coyote-8.0.37.jar:8.0.37] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:687)[tomcat-coyote-8.0.37.jar:8.0.37] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)[tomcat-coyote-8.0.37.jar:8.0.37] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)[tomcat-coyote-8.0.37.jar:8.0.37] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_121] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_121] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)[tomcat-util-8.0.37.jar:8.0.37] at java.lang.Thread.run(Thread.java:745)[?:1.8.0_121] Caused by: freemarker.template.TemplateNotFoundException: Template not found for name "component://widget/templates/HtmlScreenMacroLibrary.ftl". The name was interpreted by this TemplateLoader: MultiTemplateLoader(loader1 = org.apache.ofbiz.base.util.template.FreeMarkerWorker$FlexibleTemplateLoader@6e5ece55, loader2 = StringTemplateLoader(Map { })). at freemarker.template.Configuration.getTemplate(Configuration.java:2430)[freemarker-2.3.24-incubating.jar:2.3.24] at freemarker.template.Configuration.getTemplate(Configuration.java:2232)[freemarker-2.3.24-incubating.jar:2.3.24] at org.apache.ofbiz.base.util.template.FreeMarkerWorker.getTemplate(FreeMarkerWorker.java:259)[ofbiz.jar:?] at org.apache.ofbiz.base.util.template.FreeMarkerWorker.getTemplate(FreeMarkerWorker.java:253)[ofbiz.jar:?] at org.apache.ofbiz.widget.renderer.macro.MacroScreenRenderer.<init>(MacroScreenRenderer.java:84)[ofbiz.jar:?] at org.apache.ofbiz.widget.renderer.macro.MacroScreenViewHandler.loadRenderers(MacroScreenViewHandler.java:113)[ofbiz.jar:?] at org.apache.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:152)[ofbiz.jar:?] at org.apache.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:985)[ofbiz.jar:?] ... 31 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.