Correct Principal not showing up in the Session and Entity EJB layer

In our app a user is authenticated via the web container. The web layer then makes
calls to various session EJB's.
In our session bean, calls to sessionContext.getCallerPrincipal().getName() sometimes
returns "SYSTEM" instead of
the principal's name that was authenticated at the web container level.
In our entity beans, calls to entityContext.getCallerPrincipal().getName()
sometimes returns "<anonymous>" instead of the principal's
name.
A) Why isn't the principal's name = context's principal's name?
B) Can we ensure that principal's name isn't lost?
As per the documentation, the user principal is associated with the current thread,
so why is it that when calls are made in the same thread of execution from the
web layer to the EJB layer we are losing the right principal. Btw, the Principal
is always correct in the Web layer. We do not have any RunAs options set in our
EJB deployment descriptors.
What are we doing wrong?

You aren't doing anything wrong. This is a bug in the webservices.
kapil khanna wrote:
In our app a user is authenticated via the web container. The web layer then makes
calls to various session EJB's.
In our session bean, calls to sessionContext.getCallerPrincipal().getName() sometimes
returns "SYSTEM" instead of
the principal's name that was authenticated at the web container level.
In our entity beans, calls to entityContext.getCallerPrincipal().getName()
sometimes returns "<anonymous>" instead of the principal's
name.
A) Why isn't the principal's name = context's principal's name?
B) Can we ensure that principal's name isn't lost?
As per the documentation, the user principal is associated with the current thread,
so why is it that when calls are made in the same thread of execution from the
web layer to the EJB layer we are losing the right principal. Btw, the Principal
is always correct in the Web layer. We do not have any RunAs options set in our
EJB deployment descriptors.
What are we doing wrong?

Similar Messages

  • HT201272 I have a purchased app that will not show up in the cloud and is no longer in the app store. Is there a way to get it from my iPhone to my iPad?

    I have a purchased app that will not show up in the cloud and is no longer in the app store. Is there a way to get it from my iPhone to my iPad?

    You should be able to copy it from your iPhone to your computer's iTunes via File > Devices > Transfer Purchases, and if it's compatible with your iPad you can then sync it to it

  • I really need help on reseting my security questions i tried sending in my rescue email but the rescue email is not showing up on the password and security tab and i'm positive i don't know the answers this is really getting annoying _

    i really need help on reseting my security questions i tried sending in my rescue email but the rescue email is not showing up on the password and security tab and i'm positive i don't know the answers this is really getting annoying

    If your rescue email is not working and you cannot remember even one answer, then you only have one option - call Apple.
    http://support.apple.com/kb/HT5665

  • On my iphone4s, music control do not show up on the screen and the screen cannot be rotated.

    On my iphone4s, music control do not show up on the music screen and the screen cannot be rotated.

    Couple of clarifications, the rotation lock is not set. The controls are visible for video and other apps. Only the music screen does not rotate or show the controls.

  • On my iMac, when I delete emails, they do not show up in the Trash and they reappear in my Inbox.

    If I drag emails from my Inbox to the Trash, they do not appear in either Trash subfolder—On My Mac or iCloud. And they reappear in my Inbox. Also, while I still receive new mail on my iPhone and my iPad, the new messages have not been showing up on my iMac Mail for about a week. My account  is iCloud IMAP.

    Deleting Photos from an iPhoto Library
    1 - from an Event or the Photos mode: select the photo(s) and use the Delete key to move the photos to the trash bin. Then empty the iPhoto Trash bin as follows:
    2 - from an album, smart album, book, slideshow, card, etc.: select the photo(s) and use the key combination of Command+Option+Delete to move the photos to the trash bin.  Then empty the trash bin as above.
    NOTE: deleting a photo from an album, slideshow, book, etc., with only the Delete key only deletes that photo from that item. Deleting a photo from an Event deletes ALL occurences of that photo in the library.

  • Viewer does not show all of the clip

    Import routine:
    MTS format from Canon > Converting to Quicktime with Voltiac software. Resolution 1920x1080.
    Impossible to set correct In and Out points in the Viewer as the whole clip is not shown. Can change the duration of the clip in the Timeline as the whole clip is shown there. After rendering there are no problems in the Canvas.
    Anybody got a solution? Would be much appreciated!
    Regards,
    Tryg

    I'd be converting to 1440x1080 because FCE does not support 1920 without rendering.
    At any rate, why the whole clip does not show up in the Viewer and does in the Canvas eludes me.
    Al

  • My Recordset is not showing up in the Panel

    What do I need for the recordset to show up in the
    Dreamweaver Bindings Panel? I have a recordset working but it does
    not show up in the panel and I want to use some DW
    behaviors.

    danilocelic AdobeCommunityExpert wrote:
    > redant34jessica wrote:
    >> What do I need for the recordset to show up in the
    Dreamweaver
    >> Bindings Panel? I have a recordset working but it
    does not show up in
    >> the panel and I want to use some DW behaviors.
    If you're using ASP JavaScript as the poster in this other
    thread, you might be able to use the same technique that I
    suggested as a potential workaround:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=12&catid=263&threadid =1429140&enterthread=y
    A similar technique may work for PHP and ColdFusion as well.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • My Macbook is not finding my NIkon D70s.  I do not see it in the finder and my Adobe Bridge is not recognizing that I have a camera hooked up.

    In the past I have downloaded pictures from my Nikon D70s.  This time it is not showing up in the finder and Adobe Bridge does not see it as a device.  I have the camera hooked up and I have it turned on like I would normally do when dwonloading pictures.  I think the last time I had it connected to the computer I may have turned it off before ejecting it properly.  Wondering if that has anything to do with my problem and if so how can I fix it now? 

    Launch Image capture and see if it shows up there.

  • Yesterday I  reset my settings on my  iphone 4 to correct another problem. Today I am unable to connect to itunes to sync my phone. The device does not show up on the screen. What can I do?

    Yesterday I reset my settings on my iphone 4 to correct a problem. Today I am unable to connect to itunes to sync my phone. The device does not show up on the screen. What can I do?

    Best practices says plug the USB cable into the computer, then plug the 30 pin connector into the iPhone.
    If everything is working correctly, you should be able to plug the iPhone in at any time. Before or after opening iTunes.
    Depending on what settings are selected in iTunes, the program may or may not automatically open when you connect the device.

  • Does anybody know why my ipod touch 3rd generations screen does not show anything? The screen is all black, when I try to synchronise my ipod to my library it comes up with a message saying "iTunes could not back up the ipod because a session could not be

    Does anybody know why my ipod touch 3rd generations screen does not show anything? The screen is all black constantly. When I try to synchronise my ipod with my iTunes library it comes up with a message saying " iTunes could not back up the ipod because a session could not be started with the ipod. Please help and reply if you know an answer!!!

    Try this previous discusssion:
    https://discussions.apple.com/message/12518406#12518406

  • Hey guys, when i try and log in to itunes, even though the details are correct it is showing up as an error and not allowing me access to my account.. could anyone help??

    Hey guys, when i try and log in to itunes, even though the details are correct it is showing up as an error and not allowing me access to my account.. could anyone help?

    what is the error?

  • Why some photos do not show up in the widgets after final export?

    Why do I have a problem with the FeatureD News Widget not showing all my photos? I have tried redoing it many times over in different formats and all but one photo never shows up in the final export. Please I need help to finish up the website.

    If I understand this correctly, you are reporting that you have images in your Featured News' target frames and some of those photos do not show up in the published site.
    If so, I would like you to confirm if the widget works fine in Preview within Muse? Are the images missing in all browsers, even after clearing the browser cache? Can you provide a link to a published site? If required I may also request your source Muse file to investigate further.
    Thanks,
    Vikas

  • Sales Order does not show up at the resource level.

    Hi guys,
    I have a flour mill of having 4 processs (resources)
    1). Tempering (cleaning).
    2). Milling.
    3). Blending.
    4). Packing.
    I have two identical sales order. One has been through all the process (resources) and showed in the DS Planning board but, other one has not shown up there. It happens to me couple of times that such sales order do not show up at the resource level. Where should I check and correct? Aslo which way can I follow up these missing sales order? and What shoud I do if this situation happens?
    Thanks
    Shaan.
    Edited by: Shaan313 on Sep 27, 2011 8:22 PM

    313,
    https://service.sap.com/sap/support/notes/1406120
    Since you asked the question, I can assume that you don't have an "S" number.  speak to the person in your company who administers your SAP Service Marketplace account (this is usually someone on your Basis team), who can obtain one for you.
    Or, you can try on your own.  A few stars have to be in alignment for the second method to work.
    https://service.sap.com/request-user
    Best Regards,
    DB49

  • I have just installed a new hard drive in my imac intel 20" (2006) and now the hard drive does not show up in the 'select destinations' folder of the install program.

    I have just installed a new hard drive in my imac intel 20" (2006) and upgraded the memory and now the hard drive does not show up in the 'select destinations' folder of the install program. I can see the hard drive in the disk utilities window however it wont let me do anything.
    It is a seagate 1TB SATA II drive however it is displaying it as a 7.3 TB.
    If anyone has any suggestions I would be happy to hear them.
    I have tried to erase and partition and get the same error message each time, 'Input/Output error'.
    I have tried starting the thing with the install disk which is Mac OS X (Tiger?) which came with the computer. No good.
    Anyone?

    Thats correct. I can see it in the list however when I attempt to erase it or partition it it's like it's not being found or recognised and it throws up the input/output error message. I am pretty sure that the sensor it attached correctly and it is a SATA drive. I can see all the infor regarding the drive when disk utility is open and it all looks good but I cant access it or do anything with it. It's taunting me!
    The install disk is in the drive and the install program runs right up to the point where you have to select the location for the install and there is just nothing in the box where you have to select the hard drive icon.
    I have my suspiscions about the drive but any help would be appreciated.

  • Songs not showing up in the Music folder but in a playlist

    Hi,
    Something weird is happening with iTunes.
    Just before upgrading to 10.5, I had a problem where after opening a M3U playlist from the finder, the playlist was added as a regular playlist.
    I can play the songs, when I go in the Get Info of the file, I can see that the file has been copied to the iTunes Music folder.
    But when I look for the new imported songs from the top Music Folder, then the songs don't show up.
    I opened the iTunes Library XML file and the songs are correctly listed.
    Any idea?
    Thanks!

    Sorry, just to clarify, this is my problem:
    When I double click on a song from my computer, it plays in iTunes, but it is not copied into my music library. Also, when I import a audio cd, it imports but does not show up in the music library, nor can I click and drag it there or to my Iphone. In the past clicking on these tracks would automatically save it in my library. I noticed this problem last week perhaps after upgrading to iTunes 10.1.2.
    Any help or advice is much appreciated. Thanks!

Maybe you are looking for