This discussion is archived
0 Replies Latest reply: Mar 20, 2012 8:09 AM by 900747 RSS

spring bean creation fails when statefull ejb created in other component

900747 Newbie
Currently Being Moderated
Hi All,

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.

Env: Weblogic 10.3.2

Thanks and Regards


  • Correct Answers - 10 points
  • Helpful Answers - 5 points