我有一个带有电子邮件发送服务的java应用程序。 我在Godaddy中设置的域名。在godaddy中我们只有办公室365帐户。 电子邮件发送在本地工作正常。但是,当我在AWS ec2 ubuntu实例中托管时,未发送电子邮件。我是否需要在AWS中进行任何配置。 提前致谢。 我在控制台中收到错误,因为Exception:Velocity无法初始化。
答案 0 :(得分:0)
I found the solution the main cause is velocity.log file was not able to create due to permission issues in AWS. TO create that log messages in tomcat log its self i updated this code
VelocityEngine engine = new VelocityEngine();
Properties props = new Properties();
props.put("runtime.log.logsystem.class","org.apache.velocity.runtime.log.SimpleLog4JLogSystem");
props.put("runtime.log.logsystem.log4j.category", "velocity");
props.put("runtime.log.logsystem.log4j.logger", "velocity");
For more information check this link Error in velocity and log4J