Phase II trial to study the effectiveness of imatinib mesylate in treating patients who have myelofibrosis. Imatinib mesylate may stop the growth of myelofibrosis by blocking certain enzymes necessary for cell growth.