OFBIZ-12032: Common theme does not work

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

OFBIZ-12032: Common theme does not work

Schumann
Dear Jacques,

I'd posted the captioned ticket as follows:

Similar as the ticket OFBIZ-10434<https://issues.apache.org/jira/browse/OFBIZ-10434>, I have installed it successfully and run "gradlew cleanAll loadAll". Databases "ofbiz/ofbizolap/ofbiztenant" are created in MSSQL also successfully.

"Gradlew ofbiz" can be also run successfully without error but when I try to access "https://localhost:8443/webtools" from chrome, I have the following Error Messages:

2020-09-30 08:06:52,171 |jsse-nio-8443-exec-6 |ConfigXMLReader |I| controller loaded: 0.004s, 112 requests, 78 views in file:/D:/Program%20Files/ofbiz/framework/webtools/webapp/webtools/WEB-INF/controller.xml<file:///D:/Program%20Files/ofbiz/framework/webtools/webapp/webtools/WEB-INF/controller.xml>
2020-09-30 08:06:52,198 |jsse-nio-8443-exec-6 |ConfigXMLReader |I| controller loaded: 0.001s, 48 requests, 22 views in file:/D:/Program%20Files/ofbiz/framework/common/webcommon/WEB-INF/common-controller.xml<file:///D:/Program%20Files/ofbiz/framework/common/webcommon/WEB-INF/common-controller.xml>
2020-09-30 08:06:52,219 |jsse-nio-8443-exec-6 |ConfigXMLReader |I| controller loaded: 0.0s, 0 requests, 0 views in file:/D:/Program%20Files/ofbiz/framework/common/webcommon/WEB-INF/handlers-controller.xml<file:///D:/Program%20Files/ofbiz/framework/common/webcommon/WEB-INF/handlers-controller.xml>
2020-09-30 08:06:52,251 |jsse-nio-8443-exec-6 |ConfigXMLReader |I| controller loaded: 0.001s, 26 requests, 10 views in file:/D:/Program%20Files/ofbiz/framework/common/webcommon/WEB-INF/portal-controller.xml<file:///D:/Program%20Files/ofbiz/framework/common/webcommon/WEB-INF/portal-controller.xml>
2020-09-30 08:06:52,280 |jsse-nio-8443-exec-6 |ConfigXMLReader |I| controller loaded: 0.0s, 30 requests, 13 views in file:/D:/Program%20Files/ofbiz/framework/common/webcommon/WEB-INF/security-controller.xml<file:///D:/Program%20Files/ofbiz/framework/common/webcommon/WEB-INF/security-controller.xml>
2020-09-30 08:06:52,311 |jsse-nio-8443-exec-6 |ConfigXMLReader |I| controller loaded: 0.0s, 5 requests, 0 views in file:/D:/Program%20Files/ofbiz/framework/common/webcommon/WEB-INF/tempexpr-controller.xml<file:///D:/Program%20Files/ofbiz/framework/common/webcommon/WEB-INF/tempexpr-controller.xml>
2020-09-30 08:06:52,376 |jsse-nio-8443-exec-6 |RequestHandler |I| This is the first request in this visit. Hidden sessionId by default.
2020-09-30 08:06:54,320 |jsse-nio-8443-exec-6 |RequestHandler |I| Rendering View [main]. Hidden sessionId by default.
2020-09-30 08:06:54,357 |jsse-nio-8443-exec-6 |AbstractEngine |I| Loaded Service Locations: {eedcc-test=https://localhost:8443/webtools/control/httpService, entity-sync-http=https://localhost:8443/webtools/control/httpService, rita-rmi=rmi://localhost:1099/RMIDispatcher, main-rmi=rmi://localhost:1099/RMIDispatcher, main-soap=http://localhost:8080/webtools/control/SOAPService, entity-sync-rmi=rmi://localhost:1099/RMIDispatcher, main-http=http://localhost:8080/webtools/control/httpService}
2020-09-30 08:06:54,552 |jsse-nio-8443-exec-6 |ServiceDispatcher |T| Sync service [webtools/getUserPreferenceGroup] finished in [221] milliseconds
2020-09-30 08:06:54,607 |jsse-nio-8443-exec-6 |ControlServlet |W| Communication error with the client while processing the request: /webtools/control/main
org.apache.ofbiz.webapp.control.RequestHandlerException: Error in the response writer/output stream: freemarker.template.TemplateNotFoundException: Template not found for name "component://common-theme/template/macro/HtmlScreenMacroLibrary.ftl".
The name was interpreted by this TemplateLoader: MultiTemplateLoader(loader1 = org.apache.ofbiz.base.util.template.FreeMarkerWorker$FlexibleTemplateLoader@18d7b49a, loader2 = StringTemplateLoader(Map { })). (Template not found for name "component://common-theme/template/macro/HtmlScreenMacroLibrary.ftl".
The name was interpreted by this TemplateLoader: MultiTemplateLoader(loader1 = org.apache.ofbiz.base.util.template.FreeMarkerWorker$FlexibleTemplateLoader@18d7b49a, loader2 = StringTemplateLoader(Map { })).)
at org.apache.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:979) ~[ofbiz.jar:?]
at org.apache.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:657) ~[ofbiz.jar:?]
at org.apache.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:217) [ofbiz.jar:?]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:686) [javax.servlet-api-4.0.0.jar:4.0.0]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:791) [javax.servlet-api-4.0.0.jar:4.0.0]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [tomcat-catalina-9.0.36.jar:9.0.36]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-catalina-9.0.36.jar:9.0.36]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) [tomcat-embed-websocket-9.0.31.jar:9.0.31]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-catalina-9.0.36.jar:9.0.36]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-catalina-9.0.36.jar:9.0.36]
at org.apache.ofbiz.webapp.control.SameSiteFilter.doFilter(SameSiteFilter.java:44) [ofbiz.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-catalina-9.0.36.jar:9.0.36]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-catalina-9.0.36.jar:9.0.36]
at org.apache.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:191) [ofbiz.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-catalina-9.0.36.jar:9.0.36]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-catalina-9.0.36.jar:9.0.36]
at org.apache.ofbiz.webapp.control.ControlFilter.doFilter(ControlFilter.java:157) [ofbiz.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-catalina-9.0.36.jar:9.0.36]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-catalina-9.0.36.jar:9.0.36]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) [tomcat-catalina-9.0.36.jar:9.0.36]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-catalina-9.0.36.jar:9.0.36]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) [tomcat-catalina-9.0.36.jar:9.0.36]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [tomcat-catalina-9.0.36.jar:9.0.36]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat-catalina-9.0.36.jar:9.0.36]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) [tomcat-catalina-9.0.36.jar:9.0.36]
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690) [tomcat-catalina-9.0.36.jar:9.0.36]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat-catalina-9.0.36.jar:9.0.36]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373) [tomcat-coyote-9.0.36.jar:9.0.36]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat-coyote-9.0.36.jar:9.0.36]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) [tomcat-coyote-9.0.36.jar:9.0.36]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590) [tomcat-coyote-9.0.36.jar:9.0.36]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-coyote-9.0.36.jar:9.0.36]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_261]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_261]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util-9.0.36.jar:9.0.36]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_261]
Caused by: freemarker.template.TemplateNotFoundException: Template not found for name "component://common-theme/template/macro/HtmlScreenMacroLibrary.ftl".
The name was interpreted by this TemplateLoader: MultiTemplateLoader(loader1 = org.apache.ofbiz.base.util.template.FreeMarkerWorker$FlexibleTemplateLoader@18d7b49a, loader2 = StringTemplateLoader(Map { })).
at freemarker.template.Configuration.getTemplate(Configuration.java:2797) ~[freemarker-2.3.28.jar:2.3.28]
at freemarker.template.Configuration.getTemplate(Configuration.java:2599) ~[freemarker-2.3.28.jar:2.3.28]
at org.apache.ofbiz.base.util.template.FreeMarkerWorker.getTemplate(FreeMarkerWorker.java:275) ~[ofbiz.jar:?]
at org.apache.ofbiz.base.util.template.FreeMarkerWorker.getTemplate(FreeMarkerWorker.java:269) ~[ofbiz.jar:?]
at org.apache.ofbiz.widget.renderer.macro.MacroScreenRenderer.<init>(MacroScreenRenderer.java:88) ~[ofbiz.jar:?]
at org.apache.ofbiz.widget.renderer.macro.MacroScreenViewHandler.loadRenderers(MacroScreenViewHandler.java:70) ~[ofbiz.jar:?]
at org.apache.ofbiz.widget.renderer.macro.MacroScreenViewHandler.render(MacroScreenViewHandler.java:110) ~[ofbiz.jar:?]
at org.apache.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:976) ~[ofbiz.jar:?]
... 35 more
2020-09-30 08:06:54,688 |jsse-nio-8443-exec-6 |ServerHitBin |I| Visit delegatorName=default, ServerHitBin delegatorName=default
2020-09-30 08:06:54,696 |jsse-nio-8443-exec-6 |ControlServlet |T| [[[main(Domain:https://localhost)] Request Done- total:3.387,since last([main(Domain:http...):3.387]]





I have double checked that the file "HtmlScreenMacroLibrary.ftl" exists under the folder D:\Program Files\ofbiz\themes\common\template\macro.

Where did I do something wrong?

B.R.
Schumann