Inc. Server User Manual

2 Upgrading WebLogic Server 4.5 and 5.1 to Version 7.0
2-12 BEA WebLogic Server 7.0 Upgrade Guide
WAR Files
A WAR file is a Web Application archive. If you have correctly followed the
prescribed directory structure of a Web Application and created the appropriate
web.xml and weblogic.xml files, it is strongly recommended that in production
environments your applications be bundled together in a Web Application deployed as
a WAR file. Once you have bundled your applications into a WAR file, it is important
to remove the previously existing directory structure so that WebLogic Server only has
one instance of each application.
Use the following command line from the root directory containing your Web
Application to create a WAR file, replacing ‘webAppName’ with the specific name you
have chosen for your Web Application:
jar cvf webAppName.war *
You now have created a WAR file that contains all the files and configuration
information for your Web Application.
Deploying Web Applications
To configure and deploy a web application using the WebLogic Server Administration
Console:
1. Start the WebLogic Server Administration Console.
2. Select the Domain in which you will be working.
3. In the left pane of the Console, click Deployments.
4. In the left pane of the Console, click the Applications. A table is displayed in the
right pane of the Console showing all the deployed Applications.
5. Select the Configure a new Application option.
6. Locate the application archive, or the directory containing the exploded
application. Note that WebLogic Server will deploy all components it finds in and
below the specified directory.
7. Click the icon to the left of a directory or file to choose it and proceed to the next
step.