Error Resourcemanager Unable To Find Resource
Contents |
here for a quick overview of the site resourcemanager unable to find resource 'error.vm' in any resource loader Help Center Detailed answers to any questions you might
Resourcemanager Unable To Find Resource 'vm_global_library.vm' In Any Resource Loader
have Meta Discuss the workings and policies of this site About Us Learn resourcemanager unable to find resource c# more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags unable to find resource 'error.vm' in any resource loader Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Velocity can't find resource up vote 17 down vote favorite 3
Velocity Classpath Resource Loader Example
Something is wrong and it is very frustrating. I read on velocity's homepage that when I run a webapp then some properties should be set. And I've done that but no matter what I do I keep getting the same error. This is where I set the props and use velocity public class ConfirmationMailGenerator implements MailGenerator { private BasicUser user; private String htmlTemplate = "HTMLConfirmationMailTemplate.vsl"; private String plainTemplate = "PlainConfirmationMailTemplate.vsl"; public ConfirmationMailGenerator(BasicUser user) { this.user = user; } public StringWriter generateHTML() throws Exception { Properties props = new Properties(); props.setProperty("resource.loader", "wepapp"); props.setProperty("webapp.resource.loader.class", "org.apache.velocity.tools.view.WebappResourceLoader"); props.setProperty("webapp.resource.loader.path", "/WEB-INF/mailtemplates/"); VelocityEngine engine = new VelocityEngine(props); VelocityContext context = new VelocityContext(); engine.init(); Map map = createDataModel(); context.put("user", map); Template template = engine.getTemplate(htmlTemplate); StringWriter writer = new StringWriter(); template.merge(context, writer); return writer; } ... } The files is of course saved i
here for a quick overview of the site Help Center Detailed answers to any questions you might have velocity resource loader Meta Discuss the workings and policies of this site About Us Learn spring boot resourcemanager : unable to find resource 'error.vm' in any resource loader. more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us
Velocity Template Resource Not Found Exception
Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like http://stackoverflow.com/questions/3443819/velocity-cant-find-resource you, helping each other. Join them; it only takes a minute: Sign up Spring + Thymeleaf: ResourceManager : unable to find resource 'index.vm' in any resource loader up vote 1 down vote favorite I am using Spring Boot + Thymeleaf. I don't understand why I am getting this error on each request: ResourceManager : unable to http://stackoverflow.com/questions/31812481/spring-thymeleaf-resourcemanager-unable-to-find-resource-index-vm-in-any find resource 'xxxx.vm' in any resource loader. where xxxx is a view name. Setting this in application.properties won't help: spring.velocity.checkTemplateLocation=false java spring spring-mvc thymeleaf share|improve this question asked Aug 4 '15 at 14:47 ACV 2,4771426 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote Setting this in the configuration class will help: @EnableAutoConfiguration(exclude = { DataSourceAutoConfiguration.class,VelocityAutoConfiguration.class }) share|improve this answer answered Aug 4 '15 at 14:51 ACV 2,4771426 add a comment| Your Answer draft saved draft discarded 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 Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged java spring spring-mvc thymeleaf or ask your own question. asked 1 year ago viewed 743 times active 1 year ago Related 4Spring MVC + Thymeleaf: Updates to static resour
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of http://stackoverflow.com/questions/35007185/error-org-apache-velocity-resourcemanager-unable-to-find-resource-xxx-html this site About Us Learn more about Stack Overflow the company Business http://stackoverflow.com/questions/35936650/error-org-apache-velocity-resourcemanager-unable-to-find-resource-layout-vm Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up unable to ERROR org.apache.velocity : ResourceManager : unable to find resource 'xxx.html.vm' in any resource loader up vote 3 down vote favorite I'm using Velocity templates along with Spring boot. When there is a file named 'xxx.vm' in templates directory, Spring Boot successfully loads 'xxx.vm'. But an ERROR message below is logged. "ERROR org.apache.velocity : ResourceManager : unable to find resource 'xxx.html.vm' in any resource unable to find loader." I don't understand why the system looks for 'xxx.html.vm' because the suffix in the application.properties is set to ".vm" Here is configuration in application.properties spring.velocity.enabled=true spring.velocity.resource-loader-path=classpath:/templates/ spring.velocity.suffix=.vm There is no problem with running my application, but I'd like to know what causes this Error message. Could you please help me deal with this? Thank you in advance. java spring spring-boot velocity resourcemanager share|improve this question edited Jan 26 at 4:51 asked Jan 26 at 4:43 Claire 285 Did you solve the issue? I have the same error on my logs :-( –Eduardo Leggiero May 20 at 9:49 add a comment| 2 Answers 2 active oldest votes up vote 3 down vote Add the following row to application.properties : spring.velocity.view-names=xxx,yyy,zzz share|improve this answer edited Mar 4 at 12:18 Engineer Dollery 6,58122754 answered Mar 4 at 11:37 juergen haferkamp 312 1 This is really weird, in my case I have more than 30 views. Is really painful to add all those views to this property and maintain it when adding or removing views. Are you sure that this is needed to solve the issue? –E
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up ERROR [org.apache.velocity] ResourceManager : unable to find resource 'layout.vm' in any resource loader up vote 0 down vote favorite MyController.java: @Controller public class ForemanController { @RequestMapping({"/index", "/"}) public ModelAndView home(Model model){ Map