Security question JAAS: performing EJB lookup and authorized creation how?

Basic question is:
How can I perform a lookup from within a servlet to a stateless EJB in the same JVM and apply credentials to this EJB, so method calls perform following the authorization rules supplied on the EJB?
Trying to get this thing to work leads to:
  javax.ejb.AccessLocalException: anonymous is not allowed to call this EJB method,
       check your security settings (method-permission in ejb-jar.xml and
       security-role-mapping in orion-application.xmlI've checked this over and over, but cannot find any possible cause for the error. I've mapped the logical authorization role from the ejb-jar.xml to a user known in a JAZN resource - so I'm thinking my InitialContext call is wrong.
Can somebody help me out?

What version of OC4J are you using?
Can you post your contents in the ejb-jar.xml for the method permissions for your EJB you are looking up ?
Also please post the code that looks up the local EJB?
-Debu

Similar Messages

Maybe you are looking for

  • Recovering Data from a Back-up

    So I just recently dropped my iPhone into a gutter full of water. Yes it ***** but I'm over it (mostly). Now I know each time you update the software it makes a backup copy of your iphone. Is there anyway to retrieve all that data? If I buy a new iPh

  • ORA-04030: out of process memory when trying to allocate 64544 bytes ?

    Hi, we get the error: ORA-04030: out of process memory when trying to allocate 64544 bytes (sort subheap,sort key) after we increased PGA to 1.5G, one failed job passed, now we have this problem again,keep increasing PGA??? it is 10.2.0.4 db in sun 9

  • Automatic scrip execution on the console in single user mode on Solaris 10

    Hi All, On Solaris 8, I am able to launch my script automatically on the console when the system comes up into single user mode without having to enter the password. However, on Solaris 10, the script is display in the foreground on the console. When

  • HT203167 The lion king movie no longer available

    I purchased this movie and it is no longer available I have searched the internet and I've read that Disney had taken it off of iTunes. I have also heard that it was a glitch on apples part and it if you purchased the movie you would be able to still

  • Aperture syncing all stacked photos to iPhone.

    Aperture is syncing all stacked photos in my library to my phone.  I was under the impression that only the pick photo would be synced. After some trial and error I noticed that just the pick photo is stacked when syncing a normal album. Syncing smar