My Oracle Support Banner

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 JULY 13, 2023

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.


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


at weblogic.application.internal.ExtensibleModuleWrapper.prepare(
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(
at weblogic.application.internal.flow.ModuleStateDriver$
at weblogic.application.internal.flow.ModuleStateDriver$
at weblogic.application.utils.StateMachineDriver$
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(
at weblogic.ejb.container.deployer.BeanInfoImpl.calculateRunAsPrincipal(
at weblogic.ejb.container.deployer.BeanInfoImpl.prepare(
at weblogic.ejb.container.deployer.ClientDrivenBeanInfoImpl.prepare(
at weblogic.ejb.container.deployer.SessionBeanInfoImpl.prepare(
Truncated. see log file for complete stacktrace


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.