OHMPI: Error "EJB 'PersonEJB' we could not determine a principal-name to use for the run-as role 'MasterIndex.Admin'" Deploying OHMPI Project in Weblogic

(Doc ID 2298231.1)

Last updated on SEPTEMBER 01, 2017

Applies to:

Oracle Healthcare Master Person Index - Version 2.0.0 to 4.0.2 [Release 2.0 to 4.0]
Information in this document applies to any platform.

Symptoms

You receive the following error message when trying to deploy a OHMPI Project in Weblogic:

 

at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:114)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:175)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:170)
at weblogic.application.utils.StateMachineDriver$ParallelChange.run(StateMachineDriver.java:80)
Truncated. see log file for complete stacktrace
Caused By: In EJB 'PersonEJB' we could not determine a principal-name to use for the run-as role 'MasterIndex.Admin'. The weblogic-ejb-jar deployment descriptor or corresponding annotation has no run-as-principal-name or run-as-identity-principal specified so an attempt was made to search the security-role-assignment corresponding to the role-name 'MasterIndex.Admin' with the intent of choosing a principal-name to use as the run-as principal-name but a principal-name corresponding to a user could not be found. You must specify a run-as-principal-name to use when running as the run-as role 'MasterIndex.Admin'.
at weblogic.ejb.container.internal.RuntimeHelper.getRunAsPrincipalFromRoleMapping(RuntimeHelper.java:270)
at weblogic.ejb.container.deployer.BeanInfoImpl.calculateRunAsPrincipal(BeanInfoImpl.java:835)
at weblogic.ejb.container.deployer.BeanInfoImpl.prepare(BeanInfoImpl.java:778)
at weblogic.ejb.container.deployer.ClientDrivenBeanInfoImpl.prepare(ClientDrivenBeanInfoImpl.java:778)
at weblogic.ejb.container.deployer.SessionBeanInfoImpl.prepare(SessionBeanInfoImpl.java:421)
Truncated. see log file for complete stacktrace

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms