Hi,
I have a lot of troubles using Mina Server to handle tasks and lost a lot of time, is buggy on linux too. I recomend use LocalTaskService, it works well (have a bug but it is resolved), see this thread.
Use local task service, forgot mina server. Only works in sample applications.
Juan