PURPOSE: Phase I trial to study the effectiveness of radiation therapy plus motexafin gadolinium in treating patients with bile duct, gallbladder, or pancreatic cancer that cannot be removed surgically.