Templatenotfoundexception file not found
Active Oldest Votes. Improve this answer. Luismy Luismy 31 1 1 bronze badge. I tried it but did not work for me. I am receiving yet the exception java. FileNotFoundException above a existent path. That is really crazy! ChssPly76 ChssPly76 Thanks for the response!
I thought there was some kind of path issue I was originally thinking that the ViewResolver was a little to much. So I thought it would be better to use the configuration instead As for the IOException, the message coming back is template not found.
Oh and I am configuring the bean in the applicationContext. I did not put that in the DispatchServlet. How is context created for that "applicationContext.
Thanks ChssPly Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Helping communities build their own LTE networks. Podcast Making Agile work for data science. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.
Yes, I have tried pointing it to a. It displays it. CF is working for sure as I have other websites running in CF on the same machine and they all work fine. Terry Sasaki. Didn't you rename the file temporarily, get the exception, and then reverted it back? Well I created a index. It displayed properly. Then I deleted it. My Apache is configured to look for. SO after deleting the.
Why does giving the path separately in FileTemplateLoader templateLoader work, however giving the path in configuration. Configuration : setDirectoryForTemplateLoading java. File dir Sets the file system directory from which to load templates.
Note that FreeMarker can load templates from non-file-system sources too. See setTemplateLoader TemplateLoader from more details. Ryu S. AlexPes AlexPes 8 8 silver badges 17 17 bronze badges. I had the problem u stated earlier. I resolved it. I have detailed the new problem in my question with an update.
FileTemplateLoader; import freemarker. TemplateLoader; import freemarker. Configuration; import freemarker. Template; import freemarker. TemplateException; import freemarker. Version; import org. Autowired; import org. JavaMailSender; import org. MimeMessageHelper; import org. Service; import org. FreeMarkerTemplateUtils; import javax.
MessagingException; import javax.
0コメント