GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Notizen

4.1.2 Understand the Directory Structure - created from Mind Map

Muhammad Syakir Englisch 1 Seite

Inhalt der Notizen (1)

Seite 1

1) Arrange the resources (servlets, JSPs, static files, and deployment descriptors) in the prescribed directory format.

2) Write web application deployment descriptor (web .xml)

3) Create the WebLogic-Specific Deployment Descriptor (weblogic.xml).

4) Archive the file in the above directory structure into a .war file. Use archiving when the Web Application is ready for deployment in production environment.

5) Deploy the Web Application on Weblogic Server in one of two ways: Using Administration Console or by copying Web Application into application directory of your domain

6) Assign deployment attributes for your Web Application:

You develop your Web Application within a specified directory structure so that it can be archived and deployed on WebLogic Server, or another Servlet 2.2 compliant server.

All servlets, classes, static files, and other resources belonging to a Web Application are organized under a directory hierarchy.

The root of this hierarchy defines the document root of your Web Application.

All files under this root directory can be served to the client, except for files under the special directories WEB-INF and META-INF located in the root directory. Name the root directory with the name of your Web Application. This name will be used to resolve requests for components of the Web Application.

Private files should be located in the WEB-INF directory, under the root directory. All files under WEB-INF are private, and are not served to a client.

WebApplicationName

/WEB-INF/web.xml

/WEB-INF/weblogic.xml

/WEB-INF/classes

/WEB-INF/lib

To create a .war archive, use this command line from the root directory containing your Web Application: jar cv0f myWebApp.war (This command creates a Web Application archive file called myWebApp.war)

To deploy a Web Application in archived war format using the Administration Console :

a) Select the Web Applications node in the left pane.

b) Click Install a New Web Application.

c) Browse to the location in your file system of the .war file.

d) Click Upload. This creates a new entry in the config.xml file containing the configuration for your Web Application and copies it to an internal location.

e) To deploy a Web Application (in either archived or exploded format) by copying a .war file or the top-level directory containing a Web Application in exploded directory format into the mydomain/config/applications directory of your WebLogic Server distribution

f) Use the Administration Console to configure the Web Application

a) Open the Administration Console

b) Select the Web Applications node

c) Select your Web Application

d) Assign your Web Application to a WebLogic Server, cluster, or Virtual Host.

d) Select the File tab and define the appropriate attributes

Place your static files, such as HTML files and JSP files in this directory (or a subdirectory). This directory is the document root of your Web Application.

The Web Application deployment descriptor that configures the Web Application.

The WebLogic-specific deployment descriptor file that defines how named resources in the web.xml file are mapped to resources residing elsewhere in WebLogic Server. This file is also used to define JSP and HTTP session attributes.

Contains server-side classes such as HTTP servlets and utility classes.

Contains .jar files used by the Web Application.

Informationen

Beschreibung
Notiz am 4.1.2 Understand the Directory Structure - created from Mind Map, erstellt von Muhammad Syakir am 25/02/2019.
Erstellt von
Muhammad Syakir · Feb 2019
Aktualisiert
25 Feb 2019
Aufrufe
2
Verlauf
  • Erstellt von Muhammad Syakir · 25 Feb 2019
  • Zu Notiz kopiert von Muhammad Syakir · 25 Feb 2019
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck