Cohorts of 3-5 patients receive escalating doses of imatinib mesylate and gemcitabine hydrochloride until the maximum tolerated dose (MTD) is determined. The MTD is defined as the dose preceding that at which 2 of 5 or 3 of 5 patients experience dose-limiting toxicity.