salut tout le monde,
dans mon applciation J2EE (en utlisant MyElipse avec JBOss et struts), j ' ai developepr une classe pour testet l ' API JASS.

voici le code de ma classe :

import java.util.Map;

import javax.security.auth.Subject;
import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.login.LoginException;
import javax.security.auth.spi.LoginModule;

public class PasswordLoginModule implements LoginModule {


private Subject subject = null;
public void initialize(Subject subject, CallbackHandler callbackHandler,Map
sharedState, Map options){
this.subject =subject;
}

public boolean login()throws LoginException {
try {
weblogic.jndi.Environment env = new weblogic.jndi.Environment(System.getProperties());
env.setSecurityPrincipal("guest");
env.setSecurityCredentials("guest");
weblogic.security.auth.Authenticate.authenticate(env,subject);
return true;
}catch (Exception e){
throw new LoginException(e.toString());}
}

public boolean commit()throws LoginException {
return true;
}
public boolean abort()throws LoginException {

return true;
}
public boolean logout()throws LoginException {
return true;
}



}


alors il me donne l ereur weblogic cannot be resolved.
svp si vous connaisser l' equivalent de cette classe sous JBOSS ou bien la méthode de l' authentification.

merci pour votre aide.