FileNotFoundException when loading freemarker template in java
问题 I get a file not found exception while loading a freemarker template even though the template is actually present in the path. Update: This is running as a webservice. It will return an xml to the client based on a search query. The template loads successfully when i call it from another java program(from static main). But the when the client requests for the xml, FileNotFoundException occurs. OS: Windows 7 Absolute path of file: C:/Users/Jay/workspace/WebService/templates/ Here is my code: