Login failed after registering a new user | Weblogic security
My application is deployed to Weblogic
, and I am extending the Unified User Profile (UUP) from Weblogic API
to register a new user in the portal, but I am facing a problem where after the user registration is complete, the user is redirected to the login page instead of the landing page.
I hereby attach my implementation details and exception logs:
I use ServletAuthentication.login();
every time a user logs in
ProfileWrapper profile = null;
try {
profile = ProfileFactory.getProfile((String) userAttributes.get(USERNAME), null);
}catch(RemoteException rex){
logger.error("RemoteException while setting profile: " + (String)userAttributes.get(USERNAME), rex);
createErrorResponse(request, response,
REQUEST_FAILED, rex.getMessage(), rex
.getClass().getCanonicalName(),HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
}catch(ProfileNotFoundException pex){
logger.error("ProfileNotFoundException while setting profile: " + (String)userAttributes.get(USERNAME),pex);
createErrorResponse(request, response,
REQUEST_FAILED, pex.getMessage(), pex
.getClass().getCanonicalName(),HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
}
Error logs:
2017-06-22 21:06:49,747 [[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR UserLoginServlet - ProfileNotFoundException while setting profile: ************@********.com
com.bea.p13n.usermgmt.profile.ProfileNotFoundException: ************@********.com
at com.bea.p13n.usermgmt.profile.internal.PhantomProfileWrapperImpl.validateProfile(PhantomProfileWrapperImpl.java:406)
at com.bea.p13n.usermgmt.profile.ProfileFactory.getProfile(ProfileFactory.java:205)
at com.bea.p13n.usermgmt.profile.ProfileFactory.getProfile(ProfileFactory.java:122)
at com.bea.p13n.usermgmt.profile.ProfileFactory.getProfile(ProfileFactory.java:99)
at nz.co.vodafone.portal.utility.security.UserLoginServlet.authenticateNFetchProfile(Use
JDK version: 6 Weblogic version: WebLogic Server 9.2 (deprecated)
Need help from Weblogic experts (9.2). Help would be much appreciated.
PS: I know this Oracle no longer supports Weblogic 9.2, but I cannot change the version.
Logged out and found it to be a product issue. You need to confirm.
source to share
No one has answered this question yet
Check out similar questions: