For the appclient command line did you set
-Djava.security.auth.login.config=<gf.home>/lib/appclient/appclientlogin.conf
On 06-Apr-2011, at 12:04 PM, forums_at_java.net wrote:
> I'm trying to develop both web and standalone client (java se) for bean
> deployed on glassfish v3.1. I web client (GWT) everything works perfect but
> in standalone client I'm receving following exception [php] 2011-04-06
> 08:26:50 com.sun.appserv.security.AppservPasswordLoginModule
> extractCredentials SEVERE: SEC1105: A PasswordCredential was required but not
> provided. 2011-04-06 08:26:50 com.sun.appserv.security.ProgrammaticLogin
> login SEVERE: SEC9050: Programmatic login failed
> com.sun.enterprise.security.auth.login.common.LoginException:
> javax.security.auth.login.LoginException: No credentials. at
> com.sun.enterprise.security.auth.login.LoginContextDriver$9.run(LoginContextDriver.java:889)
> at
> com.sun.enterprise.security.common.AppservAccessController.doPrivileged(AppservAccessController.java:61)
> at
> com.sun.enterprise.security.auth.login.LoginContextDriver.doClientLogin(LoginContextDriver.java:881)
> at
> com.sun.appserv.security.ProgrammaticLogin$1.run(ProgrammaticLogin.java:184)
> at java.security.AccessController.doPrivileged(Native Method) at
> com.sun.appserv.security.ProgrammaticLogin.login(ProgrammaticLogin.java:168)
> at
> com.sun.appserv.security.ProgrammaticLogin.login(ProgrammaticLogin.java:239)
> at
> com.sun.appserv.security.ProgrammaticLogin.login(ProgrammaticLogin.java:211)
> at ClientStarter.main(ClientStarter.java:27) Caused by:
> javax.security.auth.login.LoginException: No credentials. at
> com.sun.appserv.security.AppservPasswordLoginModule.extractCredentials(AppservPasswordLoginModule.java:336)
> at
> com.sun.appserv.security.AppservPasswordLoginModule.login(AppservPasswordLoginModule.java:145)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
> java.lang.reflect.Method.invoke(Unknown Source) at
> javax.security.auth.login.LoginContext.invoke(Unknown Source) at
> javax.security.auth.login.LoginContext.access$000(Unknown Source) at
> javax.security.auth.login.LoginContext$4.run(Unknown Source) at
> java.security.AccessController.doPrivileged(Native Method) at
> javax.security.auth.login.LoginContext.invokePriv(Unknown Source) at
> javax.security.auth.login.LoginContext.login(Unknown Source) at
> com.sun.enterprise.security.auth.login.LoginContextDriver$9.run(LoginContextDriver.java:887)
> ... 8 more [/php] Moreover I'm receiving mentioned exception right after
> calling 'login' method from ProgrammaticLogin class. Am I missing something?
> Any ideas on how to fix this problem, will be greatly appreciated.
>
> --
>
> [Message sent by forum member 'lhanusiak']
>
> View Post: http://forums.java.net/node/789029
>
>