users@glassfish.java.net

Re: JACC Intermittent problem

From: Kumar Jayanti <Vbkumar.Jayanti_at_Sun.COM>
Date: Fri, 19 Feb 2010 15:27:04 +0530

Kumar Jayanti wrote:
> Vincent Deschênes wrote:
>> Kumar,
>>
>> We are using V3 final without any modification.
To see if this problem is V3 specific, would it be possible for you to
test your app with V2 ?.

regards,
kumar

>>
>> It is not easy to describe you the test case since the problem is
>> only intermittent and not predictable.
>> Normally it start occurring after one day of runtime in our test
>> environment.
>>
>> When the problem start occurring, sometime 4 web service requests in
>> a row can fail authentication and then the fifth one will
>> works.
>> We are not doing volume testing, the server receive only few requests.
>>
>> To summarize the facts:
>>
>> - The problem is that glassfish report to be login the good user but
>> then pass another (valid) username and password to the login
>> module.
>> - We are using plain text username token authentication
>> - Web services are implemented on ejb with these annotations
>> (@WebService, @Stateless, @RolesAllowed)
>> - The problem only occurs for web service
>> - We are using wsit file to enable the username token authentication
>> - We are using our own realm and login module that are extending
>> respectively AppservRealm and AppservPasswordLoginModule
>> - I have followed this blog to create our custom realm
>> http://blogs.sun.com/nithya/entry/groups_in_custom_realms
>> - I have first suspected a bug in the custom login module. But log
>> clearly show it is doing its job correctly but _username and
>> _password member belong to another user.
>>
>>
>> It is like if _username and _password are sometime not reinitialized
>> in the login module before authenticateUser() is called and
>> stays at old value.
>>
>>
>> Any help will be really appreciated.
>>
> OK, i will check the code and look for any issue along these lines and
> get back. Meanwhile if possible can you try and reproduce the problem
> with the filerealm of GF because then u would have a testcase that you
> can send me.
>
> regards,
> kumar
>
>> Thanks.
>>
>> Vincent Deschenes
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>