freemarker找不到.ftl文件

freemarker.template.TemplateNotFoundException: Template not found for name "taskArriveNotification.ftl".
The name was interpreted by this TemplateLoader: Configuration$LegacyDefaultFileTemplateLoader(baseDir="D:\installed\Java\jdk1.7.0_79\jre\bin", canonicalBasePath="D:\installed\Java\jdk1.7.0_79\jre\bin\").
Warning: The "template_loader" FreeMarker setting wasn't set (Configuration.setTemplateLoader), and using the default value is most certainly not intended and dangerous, and can be the cause of this error.
    at freemarker.template.Configuration.getTemplate(Configuration.java:1833)
    at freemarker.template.Configuration.getTemplate(Configuration.java:1646)
    at com.baidu.ebs.module.mail.service.TemplateEmailService.getMailText(TemplateEmailService.java:46)
    at com.baidu.ebs.module.mail.service.TemplateEmailService.sendMail(TemplateEmailService.java:64)
    at com.baidu.ebs.cms.service.WorkflowService.sendTaskArriveNotification(WorkflowService.java:2339)
    at com.baidu.ebs.cms.service.WorkflowService$$FastClassBySpringCGLIB$$3bfbe00.invoke()
    at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)

freemarker.template.TemplateNotFoundException: Template not found for name "taskArriveNotification.ftl".
The name was interpreted by this TemplateLoader: Configuration$LegacyDefaultFileTemplateLoader(baseDir="D:\installed\Java\jdk1.7.0_79\jre\bin", canonicalBasePath="D:\installed\Java\jdk1.7.0_79\jre\bin\").
Warning: The "template_loader" FreeMarker setting wasn't set (Configuration.setTemplateLoader), and using the default value is most certainly not intended and dangerous, and can be the cause of this error.
	at freemarker.template.Configuration.getTemplate(Configuration.java:1833)
	at freemarker.template.Configuration.getTemplate(Configuration.java:1646)
	at com.baidu.ebs.module.mail.service.TemplateEmailService.getMailText(TemplateEmailService.java:46)
	at com.baidu.ebs.module.mail.service.TemplateEmailService.sendMail(TemplateEmailService.java:64)
	at com.baidu.ebs.cms.service.WorkflowService.sendTaskArriveNotification(WorkflowService.java:2339)
	at com.baidu.ebs.cms.service.WorkflowService$$FastClassBySpringCGLIB$$3bfbe00.invoke()
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)








 

 

tomcat版本问题,
tomcat 7.0.92报错

tomcat 6.0.37则正常

你可能感兴趣的:(freemarker)