Another day I had this problem with a bundle other than dom. So I think it's not only about dom bundle but building of Mime4j.