PURPOSE: This randomized clinical trial is studying how ketoconazole, dexamethasone, and hydrocortisone act in the body of patients with prostate cancer that did not respond to androgen-deprivation therapy.