Win Service (for Java App) stops when user logs out - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

CoderMike
Posts: 9
Joined: Wed Dec 19, 2007 3:22 pm

Win Service (for Java App) stops when user logs out

My java application shall be installed and run as a service, so I have follows the instructions of the java service tutorial but some strange behaviour occure when installing it on a Win2003 server:

The service is properly installed and started but when the user logs out, the service is stopped as well.
When the server is restarted (and nobody logs in) the service is started and working properly, then after a user logs in the service is still running but again when the user logs out the service is stopped.
So at present the only workaround is that the user has to restart the server instead of logging out which is quite annoying...

I have used latest Avinst 6.2. There is no graphical interface implemented in the service and [] interact with desktop is unselected.

Anybody any ideas?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Win Service (for Java App) stops when user logs out

Hi,

Can you reproduce this behavior on other machines? Please try using "SYSTEM" for the username of the service. If the problem persists please send us a small test case which reproduces this behavior to support at advancedinstaller dot com so we can investigate it.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”