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