Procedure
After you develop the Java class
files for your JAX-RS web application and edit the web.xml file to
enable the JAX-RS servlet, you are ready to assemble the application.
Assemble the web application into a web archive (WAR) package. You
can assemble the WAR package into an enterprise archive (EAR) package
if required.