Hi All,
I am customizing Login.class for the silent SSO during this while caliing IAuthenticationService.getServices I am getting No such methos exception:
My class is at : com.documentum.web.formext.session
invokeMethod() failed while calling: onLogin
com.documentum.web.formext.session.AuthenticationService.getService()Lcom/documentum/web/formext/session/IAuthenticationService;
java.lang.NoSuchMethodError: com.documentum.web.formext.session.AuthenticationService.getService()Lcom/documentum/web/formext/session/IAuthenticationService;
at com.documentum.web.formext.session.IndusLogin.authenticate(IndusLogin.java:39)
at com.documentum.web.formext.session.Login.onLogin(Login.java:362)
Here is my Java class:
public class IndusLogin extends com.documentum.web.formext.session.Login
{
/**
*
*/
private static final long serialVersionUID = 1L;
public void Login()
{
System.out.println("s1Login ");
super.onInit(null);
}//end of constructor Login()
protected void handleSuccess(String docbase, String user, String password, String domain)
{
System.out.println("handleSuccess"+docbase);
System.out.println("user"+user);
System.out.println("password"+password);
CredentialService cService = CredentialService.getInstance();
cService.saveCredential(docbase, user, password, domain);
handleSuccess();
}
@Override
public void onRender() {
// TODO Auto-generated method stub
super.onRender();
}
protected void authenticate(String strDocbase, String strUsername, String strPassword, String strDomain)
throws DfException
{
System.out.println("authenticate"+strPassword);
IAuthenticationService authService = AuthenticationService.getService();
authService.login(getPageContext().getSession(), strDocbase, strUsername, strPassword, strDomain);
}
}//end of class Login
Please Help