We have two components A and B. A creates stateful ejb as well calls B.
B inturn loads the beans using spring. While component B is trying to create the beans the following error is coming:
Error creating bean with name 'dataSource' defined in file ....
Invocation of init method failed; nested exception is java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators]
This happens only when A is using stateful beans.
when the flow uses A's stateless beans this is working fine.
For stateful beans, we are setting the Initialcontext. Has anyone faced this issue.