How to resolve flex2gateway 500 errors?

I am working on an application based on flex and ColdFusion while setup application in flex and ColdFusion, Gateway 500 errors has occurred. I am trying to resolve the problem but still unable. I am looking for solution. Does anyone have same experience please share?