1 Use the build.py script in the tools/JavaServlet directory to create a Web
2 application directory. Then, deploy the directory in the servlet container. For
3 example:
4
5 jython tools/JavaServlet/build.py examples/JavaServlet/SimpleApp.py \
6 examples/Common/Simple/ \
7 . \
8 $CATALINA_HOME/common/lib/activation.jar \
9 $CATALINA_HOME/common/lib/mail.jar
10
11 This identifies the handler (SimpleApp.py), the application package (Simple)
12 and the directory where the WebStack package is found; it also specifies
13 library files which must also be deployed with the application (activation.jar
14 and mail.jar from the Tomcat libraries in this case); it produces a directory
15 called SimpleApp in the current directory. To deploy the Web application into
16 a servlet container like Tomcat, a command like the following can be
17 performed:
18
19 mv SimpleApp/ $CATALINA_HOME/webapps/
20
21 Upon starting or restarting the servlet container, an URL such as the following
22 can be used to visit the application:
23
24 http://localhost:8080/SimpleApp/