You 500 error is just what is being reported back to the browser. It basically tells the browser the app server messed up.
Check the logs on the app server for some better messages.
You should see some type of exception in the logs.
Which server are you using for deployment?
-Cameron McKenzie