Fix some issues in eventreg mostly caused by removal of jboss dependencies