users@glassfish.java.net

Re: Problem with GlassFish windows service

From: Ryan de Laplante <ryan_at_ijws.com>
Date: Thu, 06 Sep 2007 10:53:11 -0400

1) Regarding passwords:

I've tried copying .asadminpass from my own home directory to
C:\Documents and Settings\Local Service\, and also C:\Documents and
Settings\Network Service\, and making sure it had the right permissions
to be readable by the service. Still it is not found or used by
Glassfish as the Windows service starts. I don't know why it worked for
about a week without prompting for a password on startup and now it
does. I'm pretty sure nothing has changed on that server other than me
redeploying my own apps.

Anyway for now I will use the --passwordfile option and NTFS security on
the file to make sure unauthorized users cannot read/write that file.
It seems to be working fine like this.

One last thing to mention about this. When I run "asadmin start-domain
domain1" from the command prompt, it does not ask for a password. It
found my ~/.asadminpass. When appservService.exe runs the same command,
it asks for a password. It probably can't find an ~/.asadminpass.


2) Regarding the service stopping when I log out, I have done some
experimentation and noticed the following:

- computer boots up, shows login screen, service is running. I can
access web apps remotely.
- I log into Windows from the local keyboard, and the service continues
to work.
- I log out of Windows, then try to access the web apps remotely. I get
connection timed out errors.
- I log back into Windows from the local keyboard as the same user. I
checked windows services and it says that Glassfish service is still
running. When I look in the task manager, I see that appservService.exe
is still running, but there is no longer a java.exe.


It seems that logging out of Windows kills the java.exe process
(Glassfish), but the appservService.exe continues to run. Windows thinks
that the service is still running. Can anyone help?


Thanks,
Ryan



Ryan de Laplante wrote:
>
>> About the plain text password file route, I know about that already
>> and don't want to do that. I much prefer the encoded passwordin
>> .asadminpass.
> I could use NTFS security on the plain text password file like you
> mentioned before. I'll let you know how it goes and will also update
> my blog entry on Glassfish windows services to talk about cluster
> profile's requirements once I have it working nicely again. I'll
> trackback your blog.
>
>
> Thanks,
> Ryan
>
>
>
>>
>> glassfish_at_javadesktop.org wrote:
>>> Ryan,
>>>
>>> I have given you a detailed answer about why cluster profile domain
>>> startup requires user name
>>> and password. Also, like you had asked, I have created the
>>> GlassFish Passwords entry on my blog. Please see:
>>> http://weblogs.java.net/blog/km/
>>>
>>> The prompting of password can be easily suppressed if you did:
>>>
>>> - create a password file.
>>> - add "AS_ADMIN_PASSWORD=your-admin-password" on a give line in it.
>>> - asadmin start-domain --passwordfile <path-to-this-file>
>>>
>>> Hope that helps.
>>>
>>> Regards,
>>> Kedar
>>> [Message sent by forum member 'km' (km)]
>>>
>>> http://forums.java.net/jive/thread.jspa?messageID=234133
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>