Fix legacy jboss-as usage.