16.5. Building, Deploying, and Running the JAX-RPC Examples
The JAX-RPC reference implementation includes a servlet named JAXRPCServlet that can accept requests and route them to the appropriate service implementations. Like all servlets, we'll need a web.xml deployment descriptor to configure the servlet. The web.xml is shown in Listing 16.8. Note that the .properties file generated by xrpcc is passed in via an initialization parameter. We've also set the servlet to catch requests having /jaxrpc/ in their URLs, so we'll need to include this in our access URL.
As mentioned earlier, I found that I needed to chmod the xrpcc program to have execute access with both the EA1 and EA2 distributions (chmod a+x xrpcc.sh.) in order for the build to succeed. ...
Get J2EE™ and JAX™: Developing Web Applications and Web Services now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.