Generated Web Services may be deployed on a range of Java Application Servers that comply with Enterprise Java 5 specification.
To innstall the generated proxy application you would need:
Note that not all combinations of Java, Tomcat and Metro are compatible. Also a configuration of Tomcat may differ. While sopported, we encourage not to use Java 5 as obsolete.
You can follow METRO instructions to integrate it with a Tomcat, but here is a simple way to do it manually. Just copy several java archives from METRO installation package into appropriate Tomcat directories. Tomcat 6/7 + JDK 6 + Metro 2.0:
Where $tomcat_home$ is a directory where Tomcat is installed.
The last thing will be to copy your generated proxy.war application into
Generated Web Services may be deployed on any Java Application Servers that supports JAX-RS 1.0 specification.
A list of libraries to put into the $tomcat_home$/lib/ directory:
Note: Generated application configured according JAX-RS to comply with Servlet 3.0 specification. Tomcat 6 does not support Servlet 3.0. This means that to successfully deploy a proxy.war on Tomcat 6, its web.xml configuration file must be configured specifically for the JAX-RS implementation in use (in this case Jersey).
Here is an example of web.xml
Most browsers follow Cross-Origin Resource Sharing (CORS) specification to apply same-origin restrictions to network requests. To allow generated RESTful proxy services beeing executed from web-pages, CORS headers must be properly configured. If a Tomcat server lays behind an Apache web server, an easy way is to configure the last one.