I have a web project where I use Velocity templates. My *.vm files are located in a subdirectory called templates inside adfmsrc folder. Consequently, we could say that they are in templates package. However, when I tried call these VM files I got a ResourceNotFoundException. Analyzing the directory where my web application was deployed ( C:/Oracle/Middleware/jdeveloper/system18.104.22.168.38.62.29/o.j2ee/drs/MyWebApp ) I saw that templates folder and its VM files are not in WEB-INF/classes. My conclusion was that JDeveloper was not deploying templates package. In Project properties dialog I went to Project Source Paths -> Resources, Included tab and added adfmsrc/templates subfolder. But even then it did not work. Does someone have a beter suggestion?
*.vm files are not normalyy copies into the output path, so they don't end up in a jar, war or ear file. Chekc out my blog http://tompeez.wordpress.com/2012/05/13/jdeveloper-controlling-which-resources-files-are-copied-into-the-projects-output-directory/ to find the solution.