In this tutorial, we will see how to deploy a simple RESTful web service on a Tomcat server instead of runing it as a standalone application.
<!-- Application class name --> <context-param> <param-name>org.restlet.application</param-name> <param-value>fifthRest.RouterApplication</param-value> </context-param> <!-- Restlet adapter --> <servlet> <servlet-name>RestletServlet</servlet-name> <servlet-class>org.restlet.ext.servlet.ServerServlet</servlet-class> </servlet> <!-- Catch all requests --> <servlet-mapping> <servlet-name>RestletServlet</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping>