Removed -XX:ThreadStackSize parameter which was causing jboss not to start.