Official documentation available
There is also official documentation available regarding the JBoss application server. Please check the pages
https://documentation.magnolia-cms.com/display/DOCS/JBoss+AS+configuration and
https://documentation.magnolia-cms.com/display/DOCS/Deploying+a+WAR+on+JBoss+AS
Because I had to install a newerversion of JBoss / WildFly recently, I'll describe the setup process I did because it was in the end slightly easier than described in the documents mentioned above. This guide is for the JetBrains IDEA IDE but you might be able to adjust it for Eclipse.