Re: ResourceNotFoundException: Unable to find resource

2012-07-19 Thread petercs
I was reading http://velocity.apache.org/engine/devel/developer-guide.html#Configuring_Resource_Loaders and it turns out that ClasspathResourceLoader I am using doesn't requre any configuration, FileResourceLoader is the one as example that you can set cache to true so my orgiinal question is s

Re: ResourceNotFoundException: Unable to find resource

2012-07-19 Thread petercs
LOL no you are not helping a spammer what I also tried to send one email per second over long time, eventually velocity will crash, so even if you send few emails, things will go bad at some point unless you restart your application server which most do new deployment every few months or so. any

Re: ResourceNotFoundException: Unable to find resource

2012-07-19 Thread Marnix Bindels
I know, it does not make a lot of sense but on the other hand it is very easy to try and verify. I am sorry, but don't know the exact syntax for setting the caching but the docs should help you on your way. Again, it's a long shot... But I recently had a caching should be on in production exper

Re: ResourceNotFoundException: Unable to find resource

2012-07-19 Thread petercs
I was just thinking about your comment. I do have only 10 templates, and so I think I don't need caching unless velocity is not able to clear already loaded templates after finish using it. petercs wrote: > > Marnix, this is a great hint! I am using the default , how to enable it? > is adding

Re: ResourceNotFoundException: Unable to find resource

2012-07-19 Thread petercs
Marmix, this is a great hint! I am using the default , how to enable it? is adding velocity.engine.resource.manager.cache.enabled=true ? resource.loader=class class.resource.loader.class=org.apache.velocity.runtime.resource.loader.ClasspathResourceLoade

Re: ResourceNotFoundException: Unable to find resource

2012-07-19 Thread Marnix Bindels
Can you verify whether resource caching is enabled? It's off by default, to my experience Cheers, Marnix Op 19 jul. 2012 om 19:25 heeft "petercs" het volgende geschreven: > > Hi, > > I am using velocity to generate emails out of templates. the email > generation goes fine for a while bu

ResourceNotFoundException: Unable to find resource

2012-07-19 Thread petercs
Hi, I am using velocity to generate emails out of templates. the email generation goes fine for a while but after sending like 50k-60K successful emails I then start on getting : Caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'mail/velocity/badDisconn