set "JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.jersey.server.impl.cdi.lookupExtensionInBeanManager=true"1. Stop server if running
2. Set enable-welcome-root to false in stanalone.xml as only one app can run in root context [In fact, in any single context]
<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">
<configuration>
<mime-mapping name="manifest" value="text/xml"/>
</configuration>
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
<virtual-server name="default-host" enable-welcome-root="false">
<alias name="localhost"/>
</virtual-server>
</subsystem>
3. Add ROOT.war folder [Exploded war] or Your own folder with .war as part of the name in deployments folder
The structure of ROOT.war is as follows:
ROOT.war
ROOT.war/WEB-INF
ROOT.war/WEB-INF/jboss-web.xml
where definition of jboss-web.xml setting the context root to / is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<context-root>/</context-root>
</jboss-web>
4. Add the file ROOT.war.dodeploy in deployments folder
5. Start the server
<dependency><groupId>com.wordnik</groupId><artifactId>swagger-jersey-jaxrs_2.10</artifactId><version>1.3.0</version></dependency>and replaced it for