Implement RESTEasy as a Servlet
RESTeasy is implemented as a Servlet and deployed within a WAR file. If you open up the WEB-INF/web.xml in one of the example projects of your RESTeasy download you will see this: Archetype Created Web Application Resteasy org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher javax.ws.rs.Application com.restfully.shop.services.ShoppingApplication Resteasy /* The Resteasy servlet is responsible for initializing some basic components of RESTeasy. 3.2. Configuration Switches Resteasy receives configuration options from elements. Table 3.1. Option Name Default Value Description resteasy.servlet.mapping.prefix no default If the url-pattern for the Resteasy servlet-mapping is not /* resteasy.scan false Automatically scan WEB-INF/lib jars and WEB-INF/classes directory for both @Provider and JAX-RS resource classes (@Path, @GET, @POST etc..) and register them resteasy.scan.providers false Scan for @Provider classes and register them resteasy.scan.resources false Scan for JAX-RS resource classes resteasy.providers no default A comma delimited list of fully qualified @Provider class names you want to register resteasy.use.builtin.providers true Whether or not to register default, built-in @Provider classes. (Only available in 1.0-beta-5 and later) resteasy.resources no default A comma delimited list of fully qualified JAX-RS resource class names you want to register resteasy.jndi.resources no default A comma delimited list of JNDI names which reference objects you want to register as JAX-RS resources javax.ws.rs.Application no default Fully qualified name of Application class to bootstrap in a spec portable way resteasy.media.type.mappings no default Replaces the need for an Accept header by mapping file name extensions (like .xml or .txt) to a media type. Used when the client is unable to use a Accept header to choose a representation (i.e. a browser). See JAX-RS Content Negotiation chapter for more details. resteasy.language.mappings no default Replaces the need for an Accept-Language header by mapping file name extensions (like .en or .fr) to a language. Used when the client is unable to use a Accept-Language header to choose a language (i.e. a browser). See JAX-RS Content Negotiation chapter for more details The resteasy.servlet.mapping.prefix variable must be set if your servlet-mapping for the Resteasy servlet has a url-pattern other than /*. For example, if the url-pattern is Resteasy /restful-services/* Then the value of resteasy-servlet.mapping.prefix must be: resteasy.servlet.mapping.prefix /restful-services