> If i run this stand alone application say more than 3 times
> continuosly, i get the below error and mails are not being sent after
> that.If i restart the server, start the application, then the mails
> will be sent without any problems for next 3 runs. Is it a bug with
> Velocity itself or bug in the way i implemented it?
I use Velocity in a production setting, constructing a few
hundred messages per day. I know which way I'm betting.
> I googled it and found many people face same problem. But couldn't get
> any solution for it. So thought this is the right place to post it.
[quoted text clipped - 6 lines]
>
> log4j:WARN Please initialize the log4j system properly.
Well, you can solve your log4j problem by putting a good
log4j.properties in your classpath. I suspect that Velocity
is trying to tell you more about what's going wrong, and you
might get more information that way. But that's not what's
causing you to run out of file handles.
> Can any one please help me to overcome this problem?
>
[quoted text clipped - 10 lines]
>
> put the data to context.
That should be fine. Something's missing: what do you
merge the context with? Most people load their template
from files; I'm guessing something's going wrong there.
If you can, by chopping out everything extraneous, get
this failure to appear in less than 100 lines of code or
so, just post the whole thing, and I'll be happy to take
a look.

Signature
Mark Jeffcoat
Austin, TX