I've also hit the same issue when testing the an App, however I got some useful tips from Thomas Jung which worked for me.
Try deploying the application similar to the steps in '2.1.4 Deploy the "Tiny World" Application' in the XSA Dev guide.
It's a bit painful, but might get you past this issue.