11.12.2. Enable the RESTEasy JavaScript API Servlet
Task Summary
The RESTEasy JavaScript API is not enabled by default. Follow these steps to enable it using the web.xml
file.
Procedure 11.6. Task
- Open the
web.xml
file of the application in a text editor. - Add the following configuration to the file, inside the
web-app
tags:<servlet> <servlet-name>RESTEasy JSAPI</servlet-name> <servlet-class>org.jboss.resteasy.jsapi.JSAPIServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>RESTEasy JSAPI</servlet-name> <url-pattern>/URL</url-pattern> </servlet-mapping>