So before you set the datasource and deploy your project wars, it works fine ?
If so I would suggest to go step by step and send the full error logs when it starts to fail and list all the changes you have performed. (Such as datasource descriptor...)