Hi Rajesh !
Firstly, you can create a war file by using the
java utility as follows:
C:\App>jar cvf Example.war *.*
In the above example, the folder 'App' contains the files which you want to include in the war file.
Secondly, follow the steps below to deploy the WAR file in WebLogic 8.1:
(1) Open the Administration Console of WebLogic.
http://<server_name>:<port_number>/console (2) Go to the following:
mydomain->Deployments->Web Application Modules
(3) After that select Configuration tab.
(4) In that click on Deploy a new Web Application Module.
(5) After that click on upload your file(s) to upload your web application archive (WAR) on the Server.
(6) Select the respective WAR file by selecting Browse.
(7) Click on Upload button to upload the file. Your WAR file will be uploaded on Server on the following location:
For WebLogic 8.1 SP1 and SP2: C:\bea\user_projects\domains\mydomain\myserver\upload
[where myserver: is user defined directory]
(8) Browse the uploaded WAR file from the upload directory mentioned in the locations given.
(9) Select your WAR file from the list.
(10) After that click on Target Module button.
(11) [Optional] You may change the Web application�s name.
(12) Click on Deploy button.
(13) Now your deployed web application appears under the Web Application Module.
(14) Access the application using the following URL:
http://<server_name>:<port_number>/Web_Application_Name Hope it helps you Rajesh !!!