MODE-295 Minor fixes to the JBoss deployment