PURPOSE: This phase I trial is studying the side effects and best dose of capecitabine when given together with carboplatin, paclitaxel, and radiation therapy in treating patients with esophageal cancer or gastroesophageal junction cancer.