[Java lista] Glassfish v3 security
zamek
zamek at vili.pmmf.hu
2010. Jún. 29., K, 09:29:20 CEST
hello,
Lebukott a szentem! Mar a servletbol inditott programmaticlogin nem
teszi be a session-be a usert!
Igy aztan az ejb szegeny hiaba is varna anonymous-tol kulonbozo
principal-ra.
Bekapcsoltam a logokat es a kovetkezot latom:
FINE: ProgrammaticLogin.login() called for user: zamek
FINEST: Processing login with credentials of type: class
com.sun.enterprise.security.auth.login.common.PasswordCredential
FINE: Logging in user [zamek] into realm: *****Realm using JAAS module:
jdbcRealm
FINE: Login module initialized: class
com.sun.enterprise.security.auth.login.JDBCLoginModule
FINEST: JDBC login succeeded for: zamek groups:[admin]
FINE: JAAS login complete.
FINE: JAAS authentication committed.
FINE: Password login succeeded for : zamek
FINE: Set security context as user: zamek
FINE: Programmatic login set principal in http request to: zamek
FINE: Programmatic login: No session available.
Az utolso sorban van szerintem a gaz, nincs elerheto session.
Ez egy gwt servlet, amiben ez akod talalhato:
public User loginUser(String userName, String passwd) {
try {
ProgrammaticLogin pl = new ProgrammaticLogin();
if (pl.login(userName, passwd, REALM_NAME,
this.getThreadLocalRequest(), this.getThreadLocalResponse(), true)) {
return this.getUser();
}
return null;
} catch (Exception e) {
log.log(Level.ALL, "loginUser error:", e);
return null;
}
}
Kinek kellene letrehozni a sessiont es feltolteni a user adataival?
--
thx,
----------------------------------
Zoltan Zidarics programmer
PTE-PMMFK H-7621 Pecs, Boszorkany u. 2. Hungary
E-Mail: zamek at vili.pmmf.hu
----------------------------------
További információk a(z) Javalist levelezőlistáról