Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sun Application Server stops when i logg off

 
jite eghagha
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
jite eghagha
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic