Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to deploy a .war file?  RSS feed

 
Shashi Kanta
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi There,
To deploy it either put in in the config/applications directory of your server, or use the console web application.
Sam
 
Shashi Kanta
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!