@EJB does not not for controlled in adfc-config beans

using adf 11.1.1.3

We have an application that uses the EJB (deployed on the WLS even our application). We notice that when we create beans controlled in the adfc-config and use the @EJB annotation to get an instance of the sessionbean, it does not work.

The error we get is a simple nullPointerexception pointing to the EJB.

When we register the bean in faces - config.xml, instead of the adfc - config.xml, we receive an instance of the EJB.
I also have a nullpointerException when I add the bean managed a taskflow instead of the adfc-config.

It is an example of the bean:
public class HomeTest {
    
    @EJB
    MyService service;
    
    public HomeTest() {
    }
    
    public List getData(){
      return service.getSomedata();
    }
}
When I sign this adfc-config bean I get a nullpointer on service.
When I join the bean in faces-config, it works.

Hello

I think that if the solution is then JSF supports this

1. use @EJB in a managed bean added to a servlet (application session request) scope in faces-config. XML

2. in the managed bean ADFc, use EL to resolve access to the bean managed in faces - config.xml and pass the handle of the EJB instance

Frank

Tags: Java

Similar Questions

  • Facebook, Gmail and MétéoMédia works does not for me with the last update, even in safe mode

    That pretty much sums up it. Since yesterday, with the most recent update, firefox does not display correctly these sites. Someone else posted a question similar to this topic. It has been marked as resolved, but there is no solution posted. Here's his question: https://support.mozilla.org/en-US/questions/963125 I have the same problem as him with fb. In addition to the problem with fb, Gmail doesn't end loading. And MétéoMédia do not display the weather forecast. I'm sure that many other sites are affected as well.

    All sites work properly in Seamonkey, which I use once again, now. I went to oldapps download v. 22 of ff, but whatever the most recent update changed only came when I installed v.22. The problem persists. I could uninstall it completely and then new installation v.22, I guess, but I'm afraid that my browsing history, sessions, passwords, etc., would be affected, and I don't want to find all the files and support first. It's a hassle. Since the sites work in Seamonkey, I'm guessing that's not the fact that I have updated flash at the same time. I don't know how much these sites use flash, either. But if it's a problem of flash, I tell myself I should have the same problem in Seamonkey, and I did not.

    I wish that you guys would have an easy option to restore your updates because it's pretty darn annoying when they cause problems. Usually, they are not lethal problems, however, and the browser still works. Now ff does not work for some sites I use most often.

    Hello

    Many issues of the site can be caused by corrupted cookies or cache. To try to solve these problems, the first step is to clear cookies and cache.
    Note: This will be you temporarily disconnect all sites, you're connected to.
    To clear the cache and cookies to do the following:

    1. Go to Firefox > history > clear recent history or (if no Firefox button is displayed) go to tools > clear recent history.
    2. Under "Time range to clear", select "all".
    3. Now, click the arrow next to details to toggle the active details list.
    4. In the list of details, see the Cache and Cookies and uncheck everything.
    5. Now click the clear now button.

    More information can be found in article to clear your cache, history, and other personal information in Firefox .

    __________________________________________________________________

    Also, some Firefox problems can be solved by performing a clean reinstall. This means that you remove Firefox program files, and then reinstall Firefox. Please follow these steps:

    Note: You can print these steps or consult them in another browser.

    1. Download the latest version of Firefox from http://www.mozilla.org office and save the installer to your computer.
    2. Once the download is complete, close all Firefox Windows (click on quit in the file menu or Firefox).
    3. Remove the Firefox installation folder, which is located in one of these locations, by default:
      • Windows:

        • C:\Program Files\Mozilla Firefox
        • C:\Program Files (x 86) \Mozilla Firefox
      • Mac: Delete Firefox in the Applications folder.
      • Linux: If you have installed Firefox with the distribution-based package manager, you must use the same way to uninstall: see Install Firefox on Linux. If you have downloaded and installed the binary package from the Firefox download page, simply remove the folder firefox in your home directory.
    4. Now, go ahead and reinstall Firefox:
      1. Double-click on the downloaded Setup file and go through the steps in the installation wizard.
      2. Once the wizard is completed, click to open Firefox directly after clicking the Finish button.

    This will remove not essential info unless you check the box "delete all my personal data too.

    Please report back to see if this helped you!

    Thank you.

  • Satellite A100: webcam works does not for windows live messenger on Vista

    I recently lost my picture when working for video calls in windows live messenger, the sound of two ways and I can see them, but no one can see me.
    I also bought an external webcam, and it does not work either.

    When I go to Device Manager it says that the two cams don't work properly.
    I tried to update the drivers but they are up-to-date.
    I wonder if it's a problem of Windows live or Toshiba.
    I use Windows Vista Home Premium and the new version of messenger.

    > I also bought an external webcam and it doesn t work either.
    > When I go to Device Manager it says that the two cams don't work properly

    For me, it looks like a windows system problem.
    Usually two webcams operate independently from each other and so I don t think that it is a webcam driver problem I think that it s windows or windows live messenger problem
    Maybe something confused keys registry or files may be some updates to update or similar

    In your case, I recommend you to uninstall the software of webcam software, internal external webcam and the windows live messenger.
    Then, you must clean the BONES and the registry tool like CCLeaner cleaning, for example. It the free tool.

    After this, reinstall the Chicony webcam software and test functionality without installation of windows live messenger.
    If the webcam will be functions then you could install the windows live messenger again.

  • Want Dv6 - 7300st: finger print works does not for Windows 10

    Hello

    I've updated 10 64-BIT windows. then after I find, validity wbf ddk driver does not. It engages and works in the background

    Please help me driver for windows 10 64-BIT

    Hi @mahmutbasar,

    There is no newer driver for Windows 10 fingerprint sensor. It seems that the old driver is not compatible with the Windows 10 either. So, if the fingerprint work in previous windows, it's a matter of software with Windows 10.

  • ITunes 9.1 works does not for Windows Vista

    I've recently updated itunes 9.1 and when I click to open the program, nothing happens

    It is open in the process in the Task Manager

    I tried to uninstall, download of the installer on the itunes site and still does not work

    I am running Windows Vista

    Help would be greatly appreciated, thanks

    Hi all

    You can watch on the Apple site for troubleshooting iTunes and Windows Vista.

    http://www.Apple.com/support/iTunes/

    The article watch is titled: iTunes for Windows Vista or 7: Troubleshooting unexpected quits unexpectedly, freezes, or launch issues

    I hope this helps.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Webcam works does not for windows 8

    Hello

    Yesterday I installed GoogleVoiceandVideoSetup to use Gtalk WebCam but after installing it, my webcam does not work.
    It doesn't show any picture, can someone help me on this.
    Kind regards
    Gaurav Dey

    I found the solution: -.

    I went to the Device Manager. Rode to the previous setting, and after that I re-installed the latest drivers and it works for me.
    :)
  • Lights up does not, for anything!

    I'm doing a cool video with some models of a video game, one of them is a giant robot and I imported into the 3-d element with it's diffuse texture so that I could composite it inside the after-effects.

    The only problem is that lights does not work on anything WHATSOEVER, except ambient lights that makes everything more clear. The model turns black when the light is activated (point, point, and parallel)

    It's very weird, the rendering mode is set to classic 3D and draft mode is off.

    Is there something I need to keep in mind when adding lights that I missed browsing Google for an answer?

    THX

    I solved the problem. 3D of the element normals were not be shaded because I had only broadcasts a texture, so I had to check the box "Auto-normales" to get the lights to work with the model.

  • Compact/shrink *.vmdk does NOT (for Ubuntu guestOS)

    I have a Ubuntu guestOS installation running on a Win7 hostOS.

    The corresponding *.vmdk file has a size of about 8.5 GB (!).

    When I start the virtual machine and enter in a terminal:

    DF h

    then I can see that the partition contains only 3.9 GB (= 'used').

    So he has a lot of space that can be compacted/shrunk.

    I leave the guestOS and go to the menu:

    Machine settings VMware-> hardware-> drive-> utilities-> Compact

    and began an operation of "compact".

    Much to my surprise the *.vmdk file is subsequently (or almost) big as before.

    If compacting doesn't seem DO NOT work.

    Why?

    A defragmentation does not help.

    Some with VmWare Player.

    And even with the command cmdline

    VMware - vdiskmanager.exe - k Ubuntu.vmdk

    If not, how can I compact shrink the *.vmdk?

    Matt

    Assuming that the VMware virtual disk is not previously affected and the file system is ext4, you will need to manually prepare to be narrowed.

    In the virtual machine, in a Terminal, become root and then copy and paste the following command, as is and then press ENTER:

    dd if=/dev/zero of=wipefile bs=1024x1024; rm wipefile
    

    Wait for the prompt to return, then press stop the virtual computer, then the settings of the Virtual Machine for the hard drive to select the Compact command from the utility button.

  • BlackBerry Smartphones QWERT keyboard does not for text messages.

    My keyboard does not appear when I switch my phone when I check my e-mail or text messages. If I use my browser or anything else needing a keyboard, it works fine. Anyone who has an idea on what could be the cause?

    Excellent! Batt-pop reboots are as restart a PC - a healthy thing!

  • Hotel Web does not for formmail cgi script. What should I use instead, and how to run it?

    Hello

    I'm close tothey done with my new site of clslow and just found out that his webhotel does not offer the simple cgi-script I usually use

    Any suggestions that I can use instead (I guess PHP and it's Greek to me...), but how do I do it?

    Address on the site and the actual page is here: http://www.kennelmannequins.se/ToftaBilII/servicebokning.html (it is in Swedish, so don't be scared if you don't understand the language)

    I hope you can help me!

    Carolin

    Try NateMail or ProcessForm from the link below. Both come with a simple step by step pdf, set up the guide.

    The two are old enough but will get the job done.

    http://www.MindPalette.com/archives/ProcessForm/

  • Satellite Pro A60 does not start: missing or damaged config.sys

    Hello

    I turned off my computer Friday, I went back to his Monday - and it won't start. I thought that the config.sys file is missing or damaged.

    I tried all the usual methods - safe mode, last known good setting, OS etc, but none of it works. The computer does not recognize that the recovery CD is in the drive, either.

    As I don't have an original installation CD - the computer was shipped with the software already installed - I can't try either.

    I want especially to recover the entire system, but if I have to, I can live with that. Any suggestions would be welcome.

    Thank you very much.

    RONMAC

    Have you tried to boot your PC and press C after POST message? Recovery CD to be inserted.
    This C command forces the laptop to boot from ODD first.

    Maybe it works for you.

  • Satellite A660 - program does not for a mili-second

    Hello

    Sometimes, the program I use flashes in mode of non-resonsive.

    For a milli-second the program stops or the image of the desktop appears and then disappears again.
    Sometimes it happens only once, but in some programs, it happens constantly and they are impossible to use.

    I have an A660 running Windows 7, 32-bit with an i7 from intel.
    I loaded all the latest updates to the graphics card and drivers.

    Does anyone else have this problem?

    Thank you

    Hi mate

    It's ok.
    You will always notice a delay while loading some applications or software.
    This happens because the software loads into RAM.
    It depends also processes that are running in the background.
    Background processes can insist on the CPU and this can affect the performance of the application or may cause some short delays

    To improve this, I recommend cleanning the OS using CCleaner and disable certain porocesses that are not really important to you.
    You can do it is msconfig

  • Can I remotely from a computer that does not have control with LabVIEW?

    Hi, I have a PC at work that has LabVIEW (LV) installed, and I order several machines using a GPIB/USB interface. I would like to be able to control them remotely, at home, so I can start new experiences without having to enter in my lab. However, my PC at home isn't LV what are my options to achieve this?

    The most obvious solution is to use a software that allows me to remotely control the PC of my work, and then do that. However, it would be nice if there is an easy way to interface directly with LV. For example, something where he would create the VI as a Web page, and then I could see it in my browser to home or something. Is there something like this?

    What are my options to control everything from home, without LV on my PC at home?

    If "at work" is a reasonable society, there will be a firewall and it would be difficult to do anything without their approval. Connections to the internal network from external random places are usually blocked for good reasons. Talk to your first COMPUTER service.

    Assuming that you can connect to the remote computer, you can start reading here. Be aware that several modern browser (e.g. Chrome) is no longer support or allow NPAPI plugins, then your choice of browser style are limited.

    A better choice is direct on the remote control. This allows you to fully control the LabVIEW application, start it even if it is not active, loading/saving files, etc.

    I generally use Chrome remote desktop. I can connect to one of my computers from anywhere, even if both computers are located on networks private behind a NAT or firewall. Works great!

  • The phone rings does not for incoming calls! / spa2101 connected to the router

    Hey guys,.

    I had this problem for 2 weeks now, my outgoing calls are fine but with the receipt of custom just phone sounds sometimes. He usually works once I restarted the adapter, then after an hour on the phone used ring when I test it.

    I opened the ports on my router (5060-5061) and the firewall is disabled.

    BTW: I have this software called xlite and when I tried to call for that, it worked fine but the phone did not respond. im guessing theres some configurations that must be accomplished, but what is the question =)

    Thank you for any response

    Hello

    You must change in the line-1/2 tab:

    NAT mapping enable: don't-online Yes

    NAT keep alive enable: don't-online Yes

    Then, you can control the interval keepalive on SIP tab:

    NAT Keep Alive Intvl: (def = 15)

  • volume mixer does not for Windows 8

    Hello

    My computer laptop hp Pavillion Sleekbook D4B88PA #ABG has encountered a problem in volumes when I connected with youtube. It is said "the volume mixer is not responding. Please someone solve this problem for me. I miss her dearly. Thanks in advance.

    Hello shiz1000,

    Please take a look at this document, use Recovery Manager to restore your drivers and software.   Follow the troubleshooting steps and let me know if it helps to solve your problem.

    Good luck!

Maybe you are looking for