users@glassfish.java.net

Re: How to add JAAS in WEB application

From: <javafuns_at_baturu.com>
Date: Mon, 29 Dec 2008 15:24:48 +0800

Nithya Subramanian wrote:
> Hi,
>
> Have you tried dropping the customized jar files into the GF/lib
> directory ? Is there a specific reason why you are looking for packing
> them with your war file? Could you please elucidate the steps you are
> trying to create and deploy the customized JAAS module?
We want to make all necessary files in only one WAR file so that the
customers can deploy and run it easily.
It seems that JAAS only reads the config files that are configed via
System Property settings. Is there any work around?
>
> Thanks,
> Nithya
>
> javafuns_at_baturu.com wrote:
>> Hi
>> I'm new for GlassFish. I'd like to know how to add my customized
>> JAAS in my WAR to deploy into GlassFish.
>> I found if i directly placed the config files in WEB-INF/classes, it
>> does not take effect. Even that it makes me can not login the
>> GlassFish admin console.
>>
>> This is the log from GlassFish:
>>
>> [#|2008-12-25T16:19:56.000+0800|WARNING|glassfish|javax.enterprise.system.container.web|_ThreadID=17;_ThreadName=Thread-3;|Web
>> login failed: Login failed: javax.security.auth.login.LoginException:
>> 没有为 fileRealm 配置 LoginModules|#]
>>
>> Thanks for any help
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>


-- 
http://blog.baturu.com