|
From: James W. <ji...@wr...> - 2010-01-28 23:13:39
|
Hi Tim et al, I am trying to fix this without a hack: javax.servlet.ServletException: org.melati.template.TemplateEngineException: org.melati.template.TemplateEngineException java.lang.Exception: Unable to configure AvalonLogSystem : java.io.FileNotFoundException: /usr/share/tomcat5/velocity.log (Permission denied) org.melati.servlet.TemplateServlet.init(TemplateServlet.java:90) It seems that VelocityTemplateEngine.init() ignores the given melatiConfig and uses loadConfiguration() to get a trivial set of property definitons designed solely to load templates. Effectively: resource.loader=class class.resource.loader.class=WebMacroClasspathResourceLoader I am not sure my understanding is correct, which is why I am writing. Anyway, org/melati/org.melati.MelatiConfig.properties defines a set of properties org.melati.*. The number of times org*melati appears in the last sentence has always looked to me like some kind of smell but I am not sure. If the aim is that we can add lines like this: org.apache.velocity.properties=/WEB-INF/conf/velocity.properties then maybe some of the reduncy makes sense. OK, my suggestion is to pass the melatiConfig to a new loadConfig(Properties p) and add any default property definitons to those in the config file. Maybe I will try it over the weekend. In the meantime I would be grateful for any comments. TIA. Jim |