RESTEasy 404 not found
<p>i'm trying to create an API using RESTEasy, i've been looking for hours on differents topics but none could resolve my issues.</p>

<p>I spent one hour trying different url's, none worked, the project used to work when i was using jersey but the fact is that i'm on wildfly 10 so it's a bit complicated to deal without runtime (or maybe not but i already lost so much time configuring everything that i'm exhausted with such steps).</p>

<p>Here is my WEB.XML</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://xmlns.jcp.org/xml/ns/javaee"
    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
    id="WebApp_ID" version="3.1"&gt;
    &lt;display-name&gt;api&lt;/display-name&gt;
    &lt;servlet&gt;
        &lt;description&gt;JAX-RS Tools Generated - Do not modify&lt;/description&gt;
        &lt;servlet-name&gt;RestEasy&lt;/servlet-name&gt;
        &lt;servlet-class&gt;org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher&lt;/servlet-class&gt;
        &lt;init-param&gt;
            &lt;param-name&gt;api&lt;/param-name&gt;
            &lt;param-value&gt;api&lt;/param-value&gt;
        &lt;/init-param&gt;
        &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;
    &lt;servlet-mapping&gt;
        &lt;servlet-name&gt;RestEasy&lt;/servlet-name&gt;
        &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
&lt;/web-app&gt;
</code></pre>

<p>Here is my Application class</p>

<pre><code>@ApplicationPath("/api")
public class JaxRSActivator extends Application {

    public JaxRSActivator() {
        // TODO Auto-generated constructor stub
        System.out.println("Je passe dans le constructeur de l'application");
    }

}
</code></pre>

<p>Here is an exposed service :</p>

<pre><code>package api;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import entities.ApiUser;

@Path("ApiUser")

    public class ApiUserAPI {

        @POST
        @Consumes(MediaType.APPLICATION_JSON)
        @Produces(MediaType.APPLICATION_JSON)
        public Response createUser(ApiUser user) {
            System.out.println("JE PASSE DANS LE POST");
            if (user.getUsername() == null &amp;&amp; user.getPwd() == null)
                return Response.status(404).build();
            return Response.status(200).build();
        }

        @GET
        @Produces(MediaType.APPLICATION_JSON)
        public Response findUser() {
            System.out.println("JE PASSE DANS LE GET");
            return Response.status(200).build();
        }

    }
</code></pre>

<p>Here is the pom</p>

<pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.jboss.resteasy&lt;/groupId&gt;
    &lt;artifactId&gt;resteasy-jaxrs&lt;/artifactId&gt;
    &lt;version&gt;3.0.2.Final&lt;/version&gt;
    &lt;scope&gt;provided&lt;/scope&gt;
&lt;/dependency&gt;

&lt;!-- https://mvnrepository.com/artifact/org.jboss.resteasy/resteasy-jackson-provider --&gt;
&lt;dependency&gt;
    &lt;groupId&gt;org.jboss.resteasy&lt;/groupId&gt;
    &lt;artifactId&gt;resteasy-jackson-provider&lt;/artifactId&gt;
    &lt;version&gt;3.0.19.Final&lt;/version&gt;
&lt;/dependency&gt;
</code></pre>

<p>I've been working 3 hours on this and i'm not even able to catch a GET. As far as i can remember on all topics i've been through, there were almost 10 differents possibles URL to send this request. I think i tried them all.</p>

<p>Could someone tell me what's wrong in it and eventually the url i should use to send this damn GET request ?</p>

<p>ThanksFully yours,</p>