Can't get MDB run-as to work

I am trying to configure J2EE security on OC4J standalone 10.1.3 for a set of EJBs. I have a stateless session bean that I want to control access to. I have assigned method permissions to it so that only a certain role can access it. I then configured a client with J2EE credentials for a user in that role and remote EBJ lookup/access is working great.
The problem is that I also have a JMS-based MDB in the same application that needs to access the session bean, but I can't get the run-as declaration to take effect. When the MDB tries to call create() on the session bean's home interface, the following Exception gets thrown:
ERROR 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.xml).
Below is the relevant sections from my deployment descriptors, if anybody has any input I'd appreciate it.
-Patrick
<!--ejb-jar.xml-->
<enterprise-beans>
<session>
<ejb-name>MyStore</ejb-name>
<security-role-ref>
<role-name>MyApplication</role-name>
<role-link>MyApplication</role-link>
</security-role-ref>
<security-identity>
<use-caller-identity />
</security-identity>
</session>
<message-driven>
<security-identity>
<run-as>
<role-name>MyApplication</role-name>
</run-as>
</security-identity>
</message-driven>
</enterprise-beans>
<assembly-descriptor>
<security-role>
<role-name>MyApplication</role-name>
</security-role>
<method-permission>
<role-name>MyApplication</role-name>
<method>
<ejb-name>MyStore</ejb-name>
<method-name>*</method-name>
</method>
</method-permission>
</assembly-descriptor>
<!-- orion-ejb-jar.xml (I've also tried the same security-role-mapping in orion-application.xml -->
<assembly-descriptor>
<security-role-mapping name="MyApplication">
<group name="users" />
</security-role-mapping>
</assembly-descriptor>

Password for what?

Similar Messages

  • How can I get iTunes running on Windows XP as well as a newer laptop running Windows 7 to both recognize my new iPhone 4S?  It seems to work fine with Win 7 PC so far, but not at all with the XP OS separate laptop.

    How can I get iTunes running on a Windows XP machine as well as, separately on a newer laptop running Windows 7 to both recognize and sync with my new iPhone 4S?  I have different libraries on each machine which I need to sync with the iPhone, both in iTunes.  It seems to be workiing fine on the Windows 7 machine, but not even reconizing the device at all in iTunes on Windows XP.
    Thank you for your assistance.

    Hi turingtest2 - thanks for the reply. As you say It is how it is - and I have three workstations in this home (not counting three for my children and one for the family) and I pretty much always have more than one OS on each - that's how it is for me. I shouldn't have to worry about how many OSs I have (or how often I change them) just to have music while I'm working - through the PC sound system that is. I never have to worry about any other software, only iTunes. Once in a while (in the past) I've made a vendor call if I changed to many things to often (like CPU, GPU, memory, etc - or even a replacement MB) - but that hasn't happened in a couple years (at least since Vista) so I think (hope) they have fixed that for good. And even then it was a quick call and problem resolved. The only (glaring) constant problem is iTunes - limiting my own use of my own music (by counting an OS as a physical PC). Even with VM (which is just another OS) - although you can Attach things to multiple active OSs - it's still your own (purchased) music - and all on one PC. Thanks again!

  • HT4796 I can not get windows migration assistant to work on my Sony Viao running windows 7

    I can not get windows migration assistant to work with Sony Laptop running windows 7.

    Hello,
    - What did you do so far ?
    - Do you have any error messages ?
    You will find a lot of useful informations on this page :
    http://support.apple.com/kb/HT4796

  • How can I get my web cam to work in Adobe Connect ?

    This is actually an end user's question that I am having trouble answering to...
    We use Adobe Connect to give online language classes, the end user is one of the students.
    I cannot find the right Support answer to give him.
    Problem:
    My camera does not work when I connect to Adobe's rooms but camera works fine with other software.
    Even though I suspected my old camera was working fine, yesterday I went ahead and bought a new camera. 
    I thought perhaps my webcam software may have been a problem, so I bought a different type camera with different software. 
    Even after removing all the old software, same result:  
    I surmised the problem might be caused by my firewall and security software, so once I tried changing the permissions for Adobe, and my Webcam, but that didn’t work.   
    Another time, I restarted my computer right before class and then turned off my firewall completely so there would be no interference but to no avail. I’m totally perplexed.  
    Isn’t there anyone else experiencing a similar problem?   Has anyone else found a solution? 
    I run Windows Vista with McAfee Internet Security Software.  I always reboot the computer before class and open no other programs other than Google Chrome. 
    I now have a brand new Microsoft LifeCam Cinema Camera with LifeCam 3.5 Webcam Software. 
    I test my camera before going online.  It always works fine.   Then I shut down the camera program and login into class.   
    When I “connect webcam” in the room, the light on my camera comes on (suggesting that it is ON), but only a black image is transmitted to the room.

    Check to see if you have Google Voice installed. If so, remove it and see
    if your problem vanishes. If not Google Voice, check to see if you have
    any other communications software which interacts with your cam and
    disable it. This was the problem I had with a similar problem on a Mac.
    MosesJOI <[email protected]>
    10/13/11 12:08 PM
    Please respond to
    [email protected]
    To
    jsb152 <[email protected]>
    cc
    Subject
    How can I get my web cam to work in Adobe Connect ?
    Re: How can I get my web cam to work in Adobe Connect ?
    created by MosesJOI in General Discussion - View the full discussion
    Thanks a lot Heyward for the swift reply !
    I sent the advice out to the end user, but unfortunately this wasn't the
    solution.
    His reply is below :-
    The default resolution of my new camera is already set at 640x360, but I
    went ahead and tried several lower resolutions (e.g. 424x240; 320x240; and
    160x120) but none worked in the room - camera still showed up as black
    blank screen.  Also, as far as I can tell, I don’t have the option of
    adjusting the frame rate.
    I started playing around with my Internet Security Settings to see if they
    might be playing a role. So far, all to no avail.
    Hmm...quite a tricky one - webcams always are - maybe if he can find a way
    to adjust the frame rate (?).
    He's going to fiddle about with the settings a bit more and see if
    something does the trick.
    If anyone has had a similar problem and found an ingenious solution,
    please jot on a note on this thread.
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either
    reply to this email or visit the message page: [
    http://forums.adobe.com/message/3969561#3969561]
    To unsubscribe from this thread, please visit the message page at [
    http://forums.adobe.com/message/3969561#3969561]. In the Actions box on
    the right, click the Stop Email Notifications link.
    Start a new discussion in General Discussion by email or at Adobe Forums
    For more information about maintaining your forum email notifications
    please go to http://forums.adobe.com/message/2936746#2936746.

  • Can't get wake on lan to work on Hp n40l microserver

    Hello
    I installed arch on my HP proliant microserver and I can not get Wake on lan to work. I tested my device with ethtool and it supports and is enabled for WOL with g value set for both.
    But whenever I power it off by systemctl poweroff I can no longer see it as a connected device to my router
    Before installing arch I tried ubuntu for testing the hardware quickly and I got wake on lan working there. I can not figure out what might be the issue here. Wake on lan is enabled in the BIOS.
    Any help would be appreciated
    Cheers

    As I see in the Archwiki , the wol package would also need the IP address ( though not necessary ) along with the mac address of the server.
    I fear that the nic on the server does not obtain an ip in shutdown state, since I can't see it in my attached devices in the router settings( I could be very wrong ! )
    Tried using wol on a laptop running arch, but with no luck.
    I have seen this workaround in several places
    https://bugs.launchpad.net/ubuntu/+sour … bug/981461
    I even tried creating a similar script which would first do
    ip link set dev enp2s0 down
    systemctl poweroff
    but that did not work either.
    Cheers
    Last edited by ayushjsh (2013-04-03 07:00:28)

  • Can't get my audio clip to work in Keynote except in edit mode. I've followed Help instructions to the letter. Any suggestions?

    Can't get my audio clip to work in Keynote except in edit mode. I've followed Help instructions to the letter. Any suggestions?

    Hi Gary - thanks so much for your help. I'd already done that, but finally stumbled across the answer for my situation. I'm new to iMac and this is the first time I used Keynote, so maybe this info will help someone else along the way - I still haven't found this in any of the Keynote documentation or forums I've read.
    My slides were all set up with at least one text box in which the text was animated. The sound was the last thing I added to each slide, exactly following the info in Keynote Help re: adding audio. The audio would work when I tested it in Inspector mode, and also if I switched to soundtrack instead. But not if sound was added to each individual slide. Hmmm. After I submitted the question above, I was running through the (auto) slide show one final time to check text, animation, etc. when I noticed that on just one single slide the sound effect came through, but at the very tail end of the slide. Hmm again. Why?
    Through trial & error, the answer was in the animation section - not very intuitive re: audio. The steps to correct the issue were: 1) click on the sound icon embedded in each slide, 2) click on the animation tab in Inspector. 3) There's a drop-down menu there that allows you to reposition the audio clip to the #1 spot (if it was added after other "animation"). This allows the sound to begin before the text animation begins on each slide. Before doing this, I guess the sound was in there but the slides were transitioning before it had a chance to play.
    Since this is the first time I've used Keynote and it's the most recent version, I'm not sure if this is a new feature to allow users to choose where within a slide to play a sound effect, but I'm guessing that might be why was unable to find any info on how to solve it. Hopefully this will help others who get stumped.
    Thanks again for jumping in to help! I really appreciate it.

  • When our iPad is in use on the internet, my iMac internet connection goes off. I can't get the two devices to work at the same time with the AirPort Express. Is there a setting somewhere I may have missed?

    When our iPad is in use on the internet, my iMac internet connection goes off. I can't get the two devices to work at the same time with the AirPort Express. Is there a setting somewhere I may have missed?

    When two or more devices conflict it typically means that the DHCP service is either misconfigured or is not running at all. DHCP provides IP addresses to local network clients.
    Is your AirPort Express base station the only router in your current network configuration? That is, is it connected directly to an Internet modem and not to another router upstream of it?

  • I can't get text-to-speech to work in Mountain Lion

    I am running a MacBook Pro Retina with mountain lion and I can't get text-to-speech to work. I have selected the text and pressed the key to initiate it, but it just doesn't start to talk.

    (cross-posting from another thread)
    I'm having the same problem. It's as if my iPhone and MacBook Pro now have two separate calendars.
    Basically, I have a MacBook Pro (Mountain Lion, 13", late 2011) that I sync via USB with an iPhone 4S (iOS 5.1.1). Before upgrading to Mountain Lion, all of my iCal events would sync flawlessly. But none of the events I've created in iCal (Calendars) since upgrading have synced to the iPhone. Likewise, no new events that I create on the iPhone Calendar will sync to iCal. Also, changes to an existing event (even one created before upgrading to Mountain Lion) don't get synced either.
    Everything else seems to be syncing just fine though (music, apps, contacts, etc).

  • How can I get a netgear wgps606 to work?

    How can I get a netgear wgps606 to work.  Just bought a new mac mini running Lion

    If the printer connects to the USB port of this print server then for many brands of printer you cannot use the vendor provided driver. Instead you need to look at an alternate driver that supports this type of network connection. Gutenprint is one option and it is preferred because it is free. In previous versions of OS X it was included with the OS but with Lion it is not included so you will have to download it from here.
    If the above does not help then please reply with the brand and model of printer you want to connect to the print server. And it would also help if you could provide a bit more detail as to what your issue is.

  • How can I get the right click to work in firefox -- it works in internet explorer

    how can I get the right click to work in firefox -- it works in interne

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • Can't get my epson sx535wd to work. my epson will get contact with my router (sitcom wl306) and my mac is on wifi, but they can't connect. epson can't find the computer and my report says: there are conflicting channels on my router or entry point. help

    can't get my epson sx535wd to work. my epson will get contact with my router (sitcom wl306) and my mac is on wifi, but they can't connect. epson can't find the computer and my report says: there are conflicting channels on my router or entry point. please help

    OK, let's try these................ 
    1 - Boot up from your install DVD and run "Repair Disk" from the Utility menu.  When done, restart back to your desktop, repair permissions and restart your computer.  Re-connect your printer. 
    2 - Download & install the Gimp drivers. Make sure the one you install is compatible w/your OS-Gutenprint 5.2.8-pre1.   Repair permissions, restart your computer & re-connect your printer when done.
    The Epson model I have, in order to get it to print wirelessly, I had to install a Gimp driver.
    3 - Check out the following KB Articles:
    Mac OS X 10.4 Help: Connecting to a network printer
    Epson Printer Drivers v2.10 OS X
    Adding a printer to your printer list in Mac OS X
    Mac OS X 10.4 Help: The printer I'm adding says "Driver not installed"
    ======================
    If still unsuccessful after trying all of the above, the problem could be your iBook or human error.  You can either call Epson & ask to speak with a Mac savy supervisor or return the printer & find another that is compatible w/your current OS.

  • How can I get the readability bookmarklet to work

    Firefox 3.6.8 in Windows XP Home on a Toshiba netbook. How can I get the "readability" bookmarklet to work? It works just fine in Camino on an Apple mini desktop computer running OS X 10.4.11 (Tiger.) Readability uses javascript, which I do have turned on. The problem (of it not working) doesn't seem to have anything to do with the NoScript add-on either, as I tried allowing everything on the page and it still didn't work. Any ideas of what to try next?
    ''Duplicate post, continue [https://support.mozilla.com/en-US/questions/746624 here]''

    Hi there.
    By chance, I too have the readability bookmarklet installed (but I don't use it that much, to be honest), and it works ok for me. It's possible that you are having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not caused by one (or more than one) of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] (don't forget to select ''Disable all add-ons'' when you start safe mode). If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and themes and [https://support.mozilla.com/en-US/kb/Troubleshooting+plugins this one] for plugins.
    If you need support for one of your add-ons, you'll have to contact its author.
    If the problem does not disappear when all add-ons are disabled, please tell me, so we can work from there. Please have no fear of following my instructions to the line, as all can be easily undone.

  • In LV6.1, can I get the run-time menu refnum of a VI from the VI Path?

    Actually, for any version of LabVIEW, can I get the run-time menu refnum from the VI Path (or the VI reference)?
    Thanks!
    Enrique
    www.vartortech.com

    I just thought of a workaround...you could have a Menu Bar Ref indicator on your main VI front panel.  When your VI runs, you could have the Current VI's Menubar function wire the refnum into that indicator.  Then, in your subVI that has the VI reference, you could use VI Server to read the value of that indicator, then cast the value into a refnum wire, then you'd have access to the menubar reference in the subVI without having to pass it in to a subVI terminal.  Would that work?
    Oh, another simpler idea would be to simply wire the Menubar reference into a global, and read that global in the subVI.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Can I get a stepper motor to work useing an AO channel on a DAQ card?

    Can I get a stepper motor to work useing an AO channel on a DAQ card? I know its a very low currentl coming out, but what Im going to be using the motor for is very weak. Has anyone tried this before? I certinaly dont want to spend 2,000+ on somthing that will be basicly moving a string on some pullys back and forth.
    Thanks,
    -Mark

    Greetings, Mark
    You can certainly use the A0 as a driving signal, but you need to amplify the current considerably to run a stepper motor. Additionally, most stepper motors require multiple phase driving signals to work properly. If I understand your application, I believe a stepper motor is a bit of overkill...you only want to use them when precise positioning and repeatability is an issue. You might look at some of the linear actuators available.
    Eric
    Eric P. Nichols
    P.O. Box 56235
    North Pole, AK 99705

  • I can't get Norton Safe web to work. (I've just upgraded to Norton 360 from NIS 2011 on which Safe web worked OK).

    I can't get Norton Safe Web to work inFirefox since I upgraded to Norton 360. I was previously running NIS 2011 and it worked fine then.

    Actually when you have created an ad hoc network using Internet Sharing your Mac is supposed to have a self-assigned IP.
    What I suggest that you do is turn everything off on the Mac and tell the iPad to forget the Internet Sharing network, then restart the Mac and the iPad. Next slowly restart Internet Sharing on the Mac and when that is set up corectly try to connect to the network from scratch with the iPad. If you password protect your Internet Sharing network I suggest that you use the Other... option on the iPad; enter the network's name, select the correct protection scheme and finally enter the password and Join.
    This issue should have nothing to do with your modem or router, this is all Mac and iPad.

Maybe you are looking for

  • Set up ipod touch to cox email, ive tried everything and cant get it to work. thanks!

    set up ipod touch to cox email, ive tried everything and cant get it to work. thanks!

  • Border around container div

    I have a veeerrrrrryyyy rough design going so please bear with that... (i know it needs lots of graphic tweaking) I am trying to put a thin dotted border #6600FF around the container div and can't seem to make it work. Any ideas? (DW8) http://www.nsb

  • Optical Drive Not Detected

    Hey all, I'm running Arch x86_64 with Gnome, fresh install, and for some reason my optical drive isn't detected.  I know the drive works, as I can boot to cd's and the likes, however, the drive doesn't automount, and in fact isn't detected at all (so

  • Change the output report in a query SQ01

    Hi all, I need to change the output format for a column in a report that was developed using SQ01. The column is showing the result YES or NOT and I would like to show X or blank. Do you know where I can set this option? Thanks and regards

  • PC CAM 350 Vista support

    I am running Windows Vista Ultimate and needs to install my 6 year old Creative PC-CAM 350 (PD 1060) and can't find the appropriate drivers. Please let me know whether I would be able to use this camera on my new OS. If yes, kindly send to me the lin