Deploy and configure WEB applications in Weblogic6.0 (1)
Source: Internet
Author: User
The following sections describe how to configure and deploy WEB applications:
Overview
A web application includes the following resources: servlets, JavaServer Pages (JSP), JSP tag library, and static resources such as HTML Pages and image files. WEB applications can also define connections to resources outside the application, such as Enterprise JavaBeans (EJB ). WEB applications use standard J2EE deployment descriptors and Weblogic-specific deployment descriptors to define resources and their operation parameters.
JSP pages and HTTP servlets can access the available APIs in all services and Weblogic servers. These services include EJBs, Database connections through JDBC (Java Database Connectivity), Java Message Service (JMS), XML, and so on.
WEB applications use the standard directory structure defined in the J2EE specification, and use a file set using this directory structure (this deployment method is called the directory expansion format <exploded directory format> ), or. war package (archived) file to be deployed. We recommend that you use the directory expansion format to deploy WEB applications. In a product-level environment, we recommend that you use the. war file to deploy WEB applications.
Steps for deploying a WEB application
To deploy a WEB application:
1. Use the specified directory structure to arrange resources (servlets, JSPs, static files and deployment descriptors ). For more information, see the directory structure.
2. Create a WEB application deployment descriptor (web. xml ). In this step, register servlets, define servlet initialization parameters, register the JSP tag library, define security constraints, and define other WEB application parameters. (This document contains information about various components of WEB applications ).
For more information, see create a WEB application deployment descriptor.
3. Create a deployment descriptor (Weblogic. xml) specific to weblogic ). In this step, the JSP attributes, JNDI ING, security role ing, and HTTP session parameters are defined. If you do not need to define any attributes defined in this file, you do not need to create this file.
For a detailed description of Weblogic specific deployment descriptors, refer to creating Weblogic specific deployment descriptors.
4. Package the files in the preceding directory structure into a. war file. Only packaging files are used when deploying WEB applications in a product-level environment (during the deployment process, you will find it easier to update a single component when deploying WEB applications in the directory expansion format ). To create a. war document package, use the following command line in the root directory containing the WEB application:
Jar cv0f myWebApp. war
This command creates a WEB application package file named myWebApp. war.
Deploy WEB applications on the Weblogic Server using either of the following methods: Use the management console or copy WEB applications to the application directory of the domain.
Use the console to deploy a WEB application of war-format documents (you cannot use this process to deploy a WEB application in the expanded directory ):
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service