Home > Unable To > Unable To Find Resource 'error.vm' In Any Resource Loader

Unable To Find Resource 'error.vm' In Any Resource Loader


asked 6 years ago viewed 38386 times active 3 months ago Blog Stack Overflow Gives Back 2016 Developers, Webmasters, and Ninjas: What’s in a Job Title? Reload to refresh your session. What are the considerations for waterproofing a building's first few floors? The documentation is very fuzzy about reading absolute templates.... this contact form

I use exclusively RestController from Spring. You can then give the name of the tempalte file when initializing the Template and it will find if it exists in the classpath. Replace elements in list larger than x times the magnitude of the previous value with the mean of its neighbours Do counters combine? I have tried every combination of paths, slashes both forward and back, and checked for typos. http://stackoverflow.com/questions/9051413/unable-to-find-velocity-template-resources

Unable To Find Resource 'error.vm' In Any Resource Loader

Sever-sort an array Big O Notation "is element of" or "is equal" Interview question "How long will you stay with us?" Theorems demoted back to conjectures "newfangled", "fandangle" and "fandango" Modern Linked 1 How to use VelocityLayoutViewResolver in spring-webmvc with velocity 0 MockMvc: Forwarded URL expected: but was: Related 29Unable to find velocity template resources1ResourceManager : unable to find resource 'emailTemplate.vm' in SEVERE: The log message is null. share|improve this answer answered Jul 17 '13 at 8:53 Cataclysm 95242664 add a comment| up vote 0 down vote For resolving this error --WEB-INF/classes and all the JARs in WEB-INF/lib are

What do you mean by "It's exclusively this vm file which is requested."? Please type your message and try again. Did Donald Trump say that "global warming was a hoax invented by the Chinese"? Resourcemanager Unable To Find Resource C# Holidays for Christmas Can the product of two nonsymmetric matrices be symmetric?

Where should I store email templates? Velocity Resource Loader But an ERROR message below is logged. "ERROR org.apache.velocity : ResourceManager : unable to find resource 'xxx.html.vm' in any resource loader." I don't understand why the system looks for 'xxx.html.vm' because Thanks in advance! -----------EDITED:----------- I've created classes directory ander WEB-INF and have added my templates there. i tried many ways.

Without this it wouldn't know where to look. Velocity Template Resource Not Found Exception Why are Stormtroopers stationed outside the Death Star near the turbolaser batteries adjacent to Bay 327? When hiking, why is the right of way given to people going up? Could you please tell me what need to be done?

Velocity Resource Loader

for your tip! –HankCa Nov 14 '13 at 0:14 @Archer please accept the answer if this suggestion helped you. http://stackoverflow.com/questions/12582419/apache-velocity-unable-to-find-resource How do I respond when players stray from my prepared material? Unable To Find Resource 'error.vm' In Any Resource Loader There is no JSP/HTML view. Velocity Classpath Resource Loader Example Do progress reports/logging information belong on stderr or stdout?

Can you give more info on the conditions when this error comes up? –Rob Baily Mar 23 at 15:00 I don't know exactly when this error comes up. weblink Re: Loading Velocity template 843844 Jan 2, 2008 1:35 PM (in response to 843844) hi i am using absolute path not relative path but stil get the exception Source Code: public Join them; it only takes a minute: Sign up Velocity can't find resource up vote 17 down vote favorite 3 Something is wrong and it is very frustrating. Reload to refresh your session. Spring Boot Resourcemanager : Unable To Find Resource 'error.vm' In Any Resource Loader.

Thank you for your time:) java web-applications velocity share|improve this question edited Dec 8 '11 at 12:53 Arne Evertsson 13k135371 asked Aug 9 '10 at 20:15 AnAmuser 91331434 add a comment| String result; final StringWriter templateData = new StringWriter(); final InputStream templateIn = YourClassName.class.getClassLoader().getResourceAsStream(path); for(int b=templateIn.read(); b != -1; b=templateIn.read()){ templateData.write(b); } templateIn.close(); result = MessageFormat.format(templateData.toString(), arguments); share|improve this answer answered Nov Do (did) powered airplanes exist where pilots are not in a seated position? http://popupjammer.com/unable-to/unable-to-find-resource-archetype-resources.html Try moving your folder with the .vm files under WEB-INF/classes --dont put the abolute path eg.

Here is my code: String body = VelocityEngineUtils.mergeTemplateIntoString(velocityEngine, templateLocation, "UTF-8", model); Where templateLocation is String variable which obvious looks something like this: "/email_templates/request-feedback.vm" Here is how I send mails: private void File.resource.loader.path Velocity Relative more hot questions question feed lang-java about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Member deepu105 commented Apr 27, 2016 we do not add velocity and hence this cannot be a JHipster issue.

The only way I can manage to do this is when I set the Fileloader property in velocity...

Do counters combine? How do publish end remote events work Theorems demoted back to conjectures Is a Windows XP virtual machine with no network connection safe from hacking? Join them; it only takes a minute: Sign up ResourceManager : unable to find resource 'emailTemplate.vm' in any resource loader up vote 1 down vote favorite 2 I am doing an Resourcemanager Unable To Find Resource Vm_global_library Vm In Any Resource Loader but when running locally everything runs smoothly JHipster Version(s) 3.0.0 JHipster configuration, a .yo-rc.json file generated in the root folder { "generator-jhipster": { "jhipsterVersion": "3.0.0", "baseName": "event", "packageName": "com.avew.event", "packageFolder": "com/avew/event",

Exception in thread "main" org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/helloworld.vm' at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:474) at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:352) at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1533) at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1514) at org.apache.velocity.app.VelocityEngine.getTemplate(VelocityEngine.java:373) at com.ggd543.velocitydemo.App$.main(App.scala:20) at com.ggd543.velocitydemo.App.main(App.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) but I can't seem to load the File with this absolute path. Re: Loading Velocity template 843844 Apr 3, 2007 1:40 PM (in response to 843842) Hi i'm not able to load the template in a servelet i'm working on . his comment is here You can check this by looking at Project (right-click) > Properties > Java Build Path > Source (tab) - the folder should be listed.

How do I respond when players stray from my prepared material? (Serious): Male genital protection for mountain biking/BMX and for common falls Output the sign Word for fake religious people An