aspose file tools
The moose likes Servlets and the fly likes how to deploy a .war file? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "how to deploy a .war file?" Watch "how to deploy a .war file?" New topic
Author

how to deploy a .war file?

Shashi Kanta
Ranch Hand

Joined: May 08, 2002
Posts: 89
Hi guys,
I'm back agn with a new query!!
i have managed creating a .war file containing the servlet class file.

now how do i deploy? from which directory do i execute the command:
java weblogic.deploy -port 7001 -host localhost -component myWebApp:myserver deploy pswd1234 myWebApp d:\myWebApp.war
the actual syntax as given by Bea's documentation is :
java weblogic.deploy -port port_number -host host_name -component application:target deploy password application source

rgds,
Shashi
Sam Dalton
Author
Ranch Hand

Joined: Jul 26, 2001
Posts: 170
Hi There,
To deploy it either put in in the config/applications directory of your server, or use the console web application.
Sam


<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
Shashi Kanta
Ranch Hand

Joined: May 08, 2002
Posts: 89
Hello Mr. Dalton,
if i do that, can i access it directly from the browser (after starting weblogic server) with the following url pattern:
http://localhost:7001/myApp/servletname
here
myApp is the war file
servletName is the name of the servlet class
?
or after putting the .war file in the config\applications folder, do i have to still execute the command which i mentioned in my previous question?
and one more doubt, did u mean config\applications\DefaultWebApp folder?
bcoz thats where we put the HTML, gif, jpg and JSP files.
rgds,
Shashi
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how to deploy a .war file?
 
Similar Threads
Problem with java weblogic.deploy
deploying applications from client
weblogic.deploy
tomcat via java code
Grails web app without using WAR files