File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Steps Required:WAR file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Steps Required:WAR file" Watch "Steps Required:WAR file" New topic
Author

Steps Required:WAR file

Deepak Lal
Ranch Hand

Joined: Jul 01, 2008
Posts: 507

Hi Ranchers,

1> Can anyone give me the Manual steps for PACKAGING/CREATING and DEPLOYING and UNDEPLOYING a WAR FILE?

2> To which directory should the WAR file created be deployed in case of Application Server?

3> How to Undeploy a WAR file using a command line console?

Help provided will be Highly appreciated.

--
Deepak Lal


When The Going Gets Tougher,The Tougher gets Going
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61769
    
  67

1) Covered in the Servlet Specification.

2) Depends upon which app server

3) See (2)


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Deepak Lal
Ranch Hand

Joined: Jul 01, 2008
Posts: 507

Hi Bear and Ranchers,

Please correct me if i'm wrong Bear

1>
a> Command to be used for creating a WAR file from command prompt: jar -cvf mywarfile.war *
b> goto admin console of AS,and click on Deploy to Deploy mywarfile.war created in step1
c>goto admin console of AS and click on Undeploy to Undeploy the mywarfile.war deployed previously in step2.

2> To which directory should the WAR file created be extracted in case of Tomcat/Bea Weblogic Server? (Please help me with this)

3> How to Undeploy a WAR file from a command line console? (Please help me with this)

Help provided will be highly appreciated.

--
Deepak Lal
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8997
    
    9

Deepak Lal wrote:
b> goto admin console of AS,and click on Deploy to Deploy mywarfile.war created in step1
c>goto admin console of AS and click on Undeploy to Undeploy the mywarfile.war deployed previously in step2.

That is one way to go about it. There is also an ant task and WLST command to deploy and undeploy (which answers #3).

Deepak Lal wrote:
2> To which directory should the WAR file created be extracted in case of Tomcat/Bea Weblogic Server? (Please help me with this)


Are you deploying your WAR in Tomcat or Weblogic? They use completely different directory structures, and I'm not sure Weblogic always makes the deployed app visible (and Weblogic varies depending on the version).


[How To Ask Questions On JavaRanch]
Deepak Lal
Ranch Hand

Joined: Jul 01, 2008
Posts: 507

Hi Joe and Bear,
Thanks for the Valuable inputs,But please clarify point#2


#1> antTask would suffice,Thanks for the answers



#2> Consider the scenario of both Tomcat and Weblogic Server.Can you tell me under which directory i need to extract/place my created WAR file in Step #1.



#3> WLST and ant Task command would suffice for undeploying a WAR file,Thanks for the answers


Help provided will be highly appreciated.

--
Deepak Lal
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8997
    
    9

Deepak Lal wrote:

#2> Consider the scenario of both Tomcat and Weblogic Server.Can you tell me under which directory i need to extract/place my created WAR file in Step #1.



I follow the suggestions in the Tomcat Developer's Guide for Source Organization. For Tomcat I deploy directly from the "dist" directory.
For Weblogic it's necessary to copy the WAR out of the distribution directory because it will keep the file open, making it impossible to overwrite it with another build. As part of the build process, I just copy the WAR to another top-level directory named "staging".
Shyam Sakalley
Greenhorn

Joined: Oct 05, 2008
Posts: 23
hi

(1) first of all make sure when you installed weblogic you should configured for user go through the configured wizardthen create your own domain then open bea-> userProject-> domain -> mydomain->applications and copy your WEB appcation here after that when you will start WEBLOGIC SERVER then select Deployment option then web module and then select new web module select your application remeber radio button should come ..............
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Steps Required:WAR file