java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators] when connecting to different WLS versions (Doc ID 2257760.1)

Last updated on APRIL 21, 2017

Applies to:

Oracle Business Process Management Suite - Version 12.2.1.0.0 and later
Information in this document applies to any platform.

Symptoms

The installation uses BPM API and J2EE API to connect to BPM server 12.2.1 using LocatorFactory.createLocator(jndiConfigProperties);

and then look up a context on the WLS using

Context ctx = new InitialContext(props);
ctx.lookup(jndiName);


The context look is  failing with the error [STACK TRACE: java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators].

It looks like when creating Services WebLogic server initial context, the same credentials which are provided for BPM Weblogic Initial context creation are getting passed because of which this security exception is thrown as credentials are different for both weblogic servers.


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