Hello Jacques,
Jacques Le Roux <[email protected]> writes:
> This may help you:
>
> 2019-06-30 10:12:28,884 |main
> |ConfigXMLReader |I| controller loaded: 0.0s, 0
> requests, 0 views in
> file:/C:/projectsASF/ofbiz/framework/common/webcommon/WEB-INF/handlers-controller.xml
> Jun 30, 2019 10:12:28 AM org.apache.catalina.core.ApplicationContext log
> SEVERE: Servlet.init() for servlet [ControlServlet] threw exception
> org.apache.ofbiz.base.util.GeneralRuntimeException: null ()
> at
> org.apache.ofbiz.webapp.view.ViewFactory.<init>(ViewFactory.java:63)
> at
> org.apache.ofbiz.webapp.control.RequestHandler.<init>(RequestHandler.java:168)
> at
> org.apache.ofbiz.webapp.control.RequestHandler.getRequestHandler(RequestHandler.java:153)
> at
> org.apache.ofbiz.webapp.control.ControlServlet.init(ControlServlet.java:78)
> at javax.servlet.GenericServlet.init(GenericServlet.java:203)
> at
> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1122)
There was a typo added in revision 1862323
--8<---------------cut here---------------start------------->8---
private void loadHandlerMap(Element rootElement) {
Map<Boolean, Map<String, String>> handlers =
UtilXml.childElementList(rootElement, "handler").stream()
.collect(Collectors.partitioningBy(el ->
"view".equals(el.getAttribute("type")),
Collectors.toMap(el -> el.getAttribute("name"), el ->
el.getAttribute("className"))));
viewHandlerMap.putAll(handlers.get(true));
eventHandlerMap.putAll(handlers.get(false));
}
--8<---------------cut here---------------end--------------->8---
The "classname" attribute does not exist and should be "class". I will
commit the fixed version.
Thanks for spotting my mistake and taking care of the revert.
--
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37