IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  impersonate error

    Posted Mon October 17, 2011 01:52 PM

    Hi,

    I’ve tried to use the impersonate portlet (/portlet/wm_impersonateuser), while logged as sysadmin, and now I’m having the error below.

    How do I remove the impersonate feature?

    com.webMethods.portal.bizPolicy.BizException: [POP.002.0005] Unable to locate command: authenticateUser
    at com.webMethods.portal.bizPolicy.biz.impl.BizPolicy.getCommand(BizPolicy.java:46)
    at com.webMethods.portal.bizPolicy.biz.dir.impl.DirSystemBizPolicy.authenticateUser(DirSystemBizPolicy.java:36)
    at com.webMethods.portal.framework.session.handlers.Validate.authenticateUser(Validate.java:224)
    at com.webMethods.portal.framework.session.handlers.Validate.handle(Validate.java:149)
    at com.webMethods.portal.framework.session.SessionManager.handleSession(SessionManager.java:212)
    at com.webMethods.portal.framework.dispatch.DispatchManager.initSession(DispatchManager.java:658)
    at com.webMethods.portal.framework.dispatch.DispatchManager.handleDispatch(DispatchManager.java:334)
    at com.webMethods.portal.framework.impl.PortalServlet.service(PortalServlet.java:273)

    Thanks
    Bruno


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 2.  RE: impersonate error

    Posted Mon October 17, 2011 02:57 PM

    The fact that the “authenticateUser” command can’t be found is a bit disturbing. Have you deployed or undeployed any other portlets recently? Maybe the wm_lockdown?

    I’m not sure how you were using the Impersonate Portlet or how that could’ve generated the problem you are seeing though.


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine


  • 3.  RE: impersonate error

    Posted Mon October 17, 2011 03:09 PM

    Hi Mark,

    Yes, I did install the wm_lockdown at the same time as the wm_impersonateuser.
    Can’t they both be deployed at the same time?

    Bruno


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 4.  RE: impersonate error

    Posted Mon October 17, 2011 03:54 PM

    The lockdown portlet overrides the default AuthenticateUser command. When uninstalling, it should restore the original command, but it looks like it didn’t.

    What you’ll need to do is to re-install the core command. The best way to do that is the following:

    • Get a local copy of the phaseProvider.xml with mws getconfig phaseProvider.xml
    • Open that file and add the folowing code at the end (Just before the ):
    
    <Phase name="RenableCommands" enabled="true" class="com.webmethods.portal.system.init.impl.DefaultPhase">
    <PhaseInfo name="syncCoreConfigs" enabled="true" class="com.webmethods.portal.bizPolicy.impl.AutoInstallCoreComponents" />
    </Phase>
    • Restart MWS

    At the end of the restart, the AuthenticateUser command should get reinstalled. You should then delete the phaseProvider.xml (Don’t commit back to the database).

    Please let me know how this goes,
    –mark


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 5.  RE: impersonate error

    Posted Tue October 18, 2011 07:08 AM

    Hi,

    Thanks for the quick reply.
    This was a production issue, and so, we decided to restore a database and file system backup which solved the issue.
    Now, I’ve tried to reproduce the issue in development with no success.
    wm_impersonateuser and wm_lockdown are both working fine in development.

    Cheers,
    Bruno


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS