wood burning stoves 2.0*
The moose likes Other Java Products and Servers and the fly likes Sun Application Server stops when i logg off Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Sun Application Server stops when i logg off" Watch "Sun Application Server stops when i logg off" New topic
Author

Sun Application Server stops when i logg off

jite eghagha
Ranch Hand

Joined: Oct 06, 2006
Posts: 127
I have the Sun App server on a machine called BirdMan. (the netbeans bundle)

when ever i start the server, deploy to it, and logg off,.....the Sun App server loggs off too.

Should i reinstall the Sun App Server without the Netbeans ?
Is there an option i can set to get the current installation a have to run as a service?
Masoud Kalali
Author
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

You may take a look at:
http://www.nabble.com/how-to-start-glassfish-as-windows-service-or-Linux-daemon--t2642188.html
in that thread it has explained how you can run Sun application server/glassfish as a windows service or linux daemon.


Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
jite eghagha
Ranch Hand

Joined: Oct 06, 2006
Posts: 127
Ok now i see that my "testWebApp" is listed in windows services.

But things aren't as i thought they'd be.

i thought that when i logg off my machine my web services on My Sun App server would still run, but that is not the case. When i logg off, my Sun application server stops too.

How do i keep the sun appplication server running even after i'm logged off?
[ November 29, 2006: Message edited by: jite eghagha ]
Masoud Kalali
Author
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

Freind, you should register the service as a SYSTEM user service
sure it will stop after you log-off when the service is registered for your own user.

hth
jite eghagha
Ranch Hand

Joined: Oct 06, 2006
Posts: 127
solution on WinXP:

creating a windows service:

sc.exe create domain1 binPath= "C:\Sun\AppServer\lib\appservService.exe \"C:\Sun\AppServer\bin\asadmin.bat start-domain --user admin --passwordfile C:\Sun\AppServer\password.txt domain1\" \"C:\Sun\AppServer\bin\asadmin.bat stop-domain domain1\"" start= auto DisplayName= "BasisPlus Application Server"

Add JVM option -Xrs in the domain.xml
jite eghagha
Ranch Hand

Joined: Oct 06, 2006
Posts: 127
solution on WinXP:

creating a windows service:

sc.exe create domain1 binPath= "C:\Sun\AppServer\lib\appservService.exe \"C:\Sun\AppServer\bin\asadmin.bat start-domain --user admin --passwordfile C:\Sun\AppServer\password.txt domain1\" \"C:\Sun\AppServer\bin\asadmin.bat stop-domain domain1\"" start= auto DisplayName= "BasisPlus Application Server"

Add JVM option -Xrs in the domain.xml

And your done! Your sun app server now runs as a windows servie and will continue to do so even if you logg off.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sun Application Server stops when i logg off
 
Similar Threads
what is the role or need of weblogic.xml file inside weblogic server
NetBeans error resart app server
Sun Application Server stops when i logg off
Using Sun App Server instead of Orion
Hot deployment in Bea Weblogic.