The Freemarker project gave me similar problems. They have a Configuration object where you can do configuration.setClassForTemplateLoading(Class clazz, String directory). Does Velocity have the same option? If it does, I just used getClass() within my service to supply that Class parameter.
On Tue, Jan 10, 2012 at 2:19 PM, Thiago H. de Paula Figueiredo <thiag...@gmail.com> wrote: > On Tue, 10 Jan 2012 16:09:07 -0200, Julien Martin <bal...@gmail.com> wrote: > >> Caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable >> to find resource 'request-childminder-confirmation-mail-template_fr.htm' >> at >> org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:474) > > > This is where the problem is. Tapestry itself doesn't change the classpath > at all, just the classloader for classes in the controlled packages, so this > isn't related to Tapestry. > > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and > instructor > Owner, Ars Machina Tecnologia da Informação Ltda. > http://www.arsmachina.com.br > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > -- Jonathan Barker ITStrategic --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org