PURPOSE: This phase I trial is studying the side effects and best dose of gemcitabine when given together with radiation therapy in treating patients with locally advanced upper gastrointestinal cancer.