66
Chapter 6 Developing Web Applications
Packaging a web application for deployment
Prior to deploying a web application, you must create the application deployment
descriptors and package its parts in the appropriate directory structure.
Although there are many ways to prepare a web application for deployment, the basic
web application deployment procedure includes the following steps:
1 Create a staging directory tree containing the JSPs, HTML files, images, and other
referenced files that must be accessible by the user’s web browser.
To easily identify the directory as a web application directory, use a directory name
that ends with -war. Maintain the original directory structure of referenced files.
2 In the staging directory, create a directory called WEB-INF.
3 In the WEB-INF directory, create directories called classes and lib.
4 Copy the application servlets and any other unarchived class files to the
WEB-INF/classes directory.
5 If the web application uses JSP tag libraries, copy any tag libraries packaged in a JAR
file to the WEB-INF/lib directory. Copy any unarchived tag library classes to the
WEB-INF/classes directory.
When deployed inside a JAR file, a TLD file must be in the META-INF directory or
a subdirectory of the META-INF directory. When deployed directly to a web
application, the TLD file must be in the WEB-INF directory or a subdirectory of it.
6 Place the web application deployment descriptor, web.xml and optionally,
jrun-web.xml, in the WEB-INF directory.
7 To prepare the web application for a production environment, package it in a WAR
file using the following jar utility command from the top level of the staging
directory:
jar cvf
web_app
.war
where web_app is the web application name.
For more information, see JRun Assembly and Deployment Guide.
Содержание 38000382 - Macromedia JRun - Mac
Страница 1: ...Getting Started with JRun...
Страница 16: ......
Страница 68: ...54 Chapter 5 Introduction to EJB...
Страница 82: ......
Страница 110: ...96 Lesson 3 EJB Tutorial...
Страница 128: ...114 Lesson 4 Web Services Tutorial...
Страница 132: ...118 Index...