Logging indicates a FreeMarker template related exception related to "gateway.baseUrl".
It looks like this reference should be: "gateway.baseURL".
Tomcat log file output:
Caused by: sgf.gateway.mail.MailException: freemarker.core.InvalidReferenceExcep
tion: Expression gateway.baseUrl is undefined on line 8, column 4 in common/comm
on-subject.ftl.
at sgf.gateway.mail.impl.FreeMarkerMailMessage.processTemplate(FreeMarke
rMailMessage.java:213)
at sgf.gateway.mail.impl.FreeMarkerCommonMailMessage.getSubject(FreeMark
erCommonMailMessage.java:45)
at sgf.gateway.mail.impl.FreeMarkerMailMessage.createMimeMessage(FreeMar
kerMailMessage.java:102)
at sgf.gateway.mail.impl.SpringJavaMailSender$1.prepare(SpringJavaMailSe
nder.java:48)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSen
derImpl.java:352)
... 67 more
Caused by: freemarker.core.InvalidReferenceException: Expression gateway.baseUrl
is undefined on line 8, column 4 in common/common-subject.ftl.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.ja
va:134)
at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
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:208)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.Environment.process(Environment.java:188)
at freemarker.template.Template.process(Template.java:237)
at org.springframework.ui.freemarker.FreeMarkerTemplateUtils.processTemp
lateIntoString(FreeMarkerTemplateUtils.java:49)
at sgf.gateway.mail.impl.FreeMarkerMailMessage.processTemplate(FreeMarke
rMailMessage.java:205)
... 71 more
It looks like this reference should be: "gateway.baseURL".
Tomcat log file output:
Caused by: sgf.gateway.mail.MailException: freemarker.core.InvalidReferenceExcep
tion: Expression gateway.baseUrl is undefined on line 8, column 4 in common/comm
on-subject.ftl.
at sgf.gateway.mail.impl.FreeMarkerMailMessage.processTemplate(FreeMarke
rMailMessage.java:213)
at sgf.gateway.mail.impl.FreeMarkerCommonMailMessage.getSubject(FreeMark
erCommonMailMessage.java:45)
at sgf.gateway.mail.impl.FreeMarkerMailMessage.createMimeMessage(FreeMar
kerMailMessage.java:102)
at sgf.gateway.mail.impl.SpringJavaMailSender$1.prepare(SpringJavaMailSe
nder.java:48)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSen
derImpl.java:352)
... 67 more
Caused by: freemarker.core.InvalidReferenceException: Expression gateway.baseUrl
is undefined on line 8, column 4 in common/common-subject.ftl.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.ja
va:134)
at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
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:208)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.Environment.process(Environment.java:188)
at freemarker.template.Template.process(Template.java:237)
at org.springframework.ui.freemarker.FreeMarkerTemplateUtils.processTemp
lateIntoString(FreeMarkerTemplateUtils.java:49)
at sgf.gateway.mail.impl.FreeMarkerMailMessage.processTemplate(FreeMarke
rMailMessage.java:205)
... 71 more