Installing and deploying web applications using xml-axis
|
|
|||||||||
Contents |
This document describes how to install xml-axis in as unobtrusive of a manner as possible. There will be no editing of configuration files, setting of server classpaths, or the like. Instead, these instructions will rely only on the automatic configuration and isolation that every implementation compliant with the servlet 2.2 specification is required to support. For more details on using Axis, please see the user's guide.
In your servlet installation, you should find a directory into which web applications (webapps) are to be placed. Into this directory copy the webapps/axis directory from the xml-axis distribution. You can actually name this directory anything you want, just be aware that the name you choose will form the basis for the URL by which clients will access your service.
In the directory you just created, you will find a WEB-INF directory. This contains some basic configuration information, but can also be used to contain the dependencies and web services you wish to deploy. This is actually the recommended way to deploy as the servlet engine will then keep each web application isolated from each other. In the WEB-INF directory, you'll find a "lib" directory.
Note: Note that there is no requirement that each webapp or the web server itself use the same xml parsers.
If you got this far, the next step should be simple: In the WEB-INF directory, look for (or create) a "classes" directory.
Again, isolation is preserved. And, by the way, should your services already be packaged into jar files, feel free to drop them into the lib directory instead! Note: If your web service will be making use of the simple authorization handlers provided with xml-axis (this is actually not recommended as these are merely illustrations of how to write a handler than intended for production use), then you will need to copy the corresponding perms.lst and users.lst files into the WEB-INF directory.
This varies on a product by product basis. In many cases it it as simple as double clicking on a startup icon or running a simple command from the command line.
After installing the web application and dependencies, you should make sure that the server is running the web application.
The various classes and jars you have just set up contain a number of interfaces. What remains to be done is to tell the soap and axis servlets how these are to be combined and what is to be exposed. There are a number of ways to do this, for now I'll simply describe one way that is suitable for automation.
Note: You may need to replace localhost with your host name, and 8080 with the port number used by your web server.
This step is optional, but highly recommended. For illustrative purposes, it is presumed that you have installed and deployed the stockquote demo.
Note: Again, you may need to replace localhost with your host name, and 8080 with the port number used by your web server. |
||||||||
|
|||||||||
Copyright © 2001, Apache Software Foundation
|