cart migration fixes for Jboss 5