Commit 2e20092d authored by michael.simon's avatar michael.simon
Browse files

change all velocity occurences to correctly initialize

parent 49e0ddef
......@@ -51,6 +51,8 @@ public class HttpUrlSingleAttributeSource extends
String urlTemplate = prop.readProp("url_template");
VelocityEngine engine = new VelocityEngine();
engine.setProperty("runtime.log.logsystem.log4j.logger", "root");
engine.init();
Map<String, Object> context = new HashMap<String, Object>();
context.put("user", user);
VelocityContext velocityContext = new VelocityContext(context);
......
......@@ -76,6 +76,8 @@ public class HttpCallbackHook implements UserServiceHook {
positiveMatchRegex = appConfig.getConfigValue("HttpCallbackHook_positive_match_regex");
VelocityEngine engine = new VelocityEngine();
engine.setProperty("runtime.log.logsystem.log4j.logger", "root");
engine.init();
Map<String, Object> context = new HashMap<String, Object>();
context.put("user", user);
VelocityContext velocityContext = new VelocityContext(context);
......
......@@ -343,6 +343,8 @@ public abstract class AbstractLdapRegisterWorkflow
private String evalTemplate(String template, UserEntity user, Map<String, String> reconMap, String homeId, String homeUid)
throws RegisterException {
VelocityEngine engine = new VelocityEngine();
engine.setProperty("runtime.log.logsystem.log4j.logger", "root");
engine.init();
Map<String, Object> context = new HashMap<String, Object>();
context.put("user", user);
context.put("reconMap", reconMap);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment