Note that we don’t test on Wildfly since we can’t test on all servlet containers and it’s not one we support in the xwiki dev team. XWiki will work on any servlet container of course but you may need to use the right configuration since servlet container have the bad habit of NOT isolating the webapp from the jars that the provide. I never understood why they’re not doing that but this is the main cause of problems.
Maybe this can help: java - Hadoop, Jersey, and JBoss: application won't start - Stack Overflow