aspose file tools*
The moose likes BEA/Weblogic and the fly likes startup and shutdown WebLogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "startup and shutdown WebLogic" Watch "startup and shutdown WebLogic" New topic
Author

startup and shutdown WebLogic

Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 566
Hi,
I'm just getting into WebLogic, downloaded WLS 7.0.
The startup scripts seem nice enough, but there's no shutdown script.
Does everybody use the admin console, which seems to require browsing thro' about 6 links before you get to the control page.
Or do people roll their own scripts?
I'm used to stopping the appserver, running a compile + deploy with ant and then starting it again, from the command line. Would be nice to be able to do the same with WLS.
Adam


I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
Mani Ram
Ranch Hand

Joined: Mar 11, 2002
Posts: 1140
Put this command in a script file and execute it to shutdown the server
java weblogic.Admin [-url URL] -username username -password password SHUTDOWN [targetserver]


Mani
Quaerendo Invenietis
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 566
OK, thanks - I played around with it for a while and found that:
- you also need to specify the class path
- it won't use the boot.properties boot identity file that the startup command uses
- it won't even prompt you if you leave out the user & password
I had to put my password in there in clear text to make it work. That's fine for development purposes but seems to be a bit of an oversight by BEA.
faiza athar
Ranch Hand

Joined: Oct 30, 2001
Posts: 136
just ignore my ignorance...
what happens if i just close the weblogic dos window which shows the server running etc.
does it shutdown the server too?
thanx
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 566
Try it! I don't know but if you do that to tomcat, tomcat dies.
Mani Ram
Ranch Hand

Joined: Mar 11, 2002
Posts: 1140
Originally posted by faiza athar:
just ignore my ignorance...
what happens if i just close the weblogic dos window which shows the server running etc.
does it shutdown the server too?
thanx

Yes.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: startup and shutdown WebLogic