implementing SSO with policy agent "Service URL not found:session"
Hi,
here is my env
policy agent 2.2 for sun app server 8.1
I have an application for which I want to implement SSO.Now I have installed agent on my app server and when I try to access my protected page I am redirected to Access Manager login page which is fine.
After that I get the page I want to access.So far so good.Now on this page I want to access the userid of the authenticated user.
I wrote the following code.
try {
SSOTokenManager ssoManager = SSOTokenManager.getInstance();
SSOToken ssoToken = ssoManager.createSSOToken(request);
if (ssoManager.isValidToken(ssoToken)) {
} else {
out.println("Token is not valid!!!");
}
try {
ssoManager.validateToken(ssoToken);
} catch (SSOException e) {
out.println("exception validate token!!!");
}
ssoManager.refreshSession(ssoToken);
} catch (SSOException e) {
out.println("general exception!!!"+e.getMessage());
}
I see the following on my page
general exception!!!Service URL not found:session
Can anybdy help me in resolving this.
Appreciate ur help.!
Regards.

