How we can make a session bean starts up automactically

I have a session managed bean, and this managed bean instanse is created only when a JSF page where its componene is bakced by that bean.
My question, I have a case in where I need to instantiate the same bean on starts up of the application automatically.

Thanks a lot BalusC !
Once I read you reply I immediately knew how wrong my question was!
My case is that I wanted to use your method (explained in your blogs) to get an instance of a session scoped bean called (approvalInsertionBean) as following:
FacesContext context = FacesContext.getCurrentInstance(); 
           ApprovalInsertionBean appInsBean = (ApprovalInsertionBean) context.getApplication().evaluateExpressionGet(context, "#{approvalInsertionBean}", ApprovalInsertionBean.class);But I go the follwoing checked exception once I finished completing the lines above
The type javax.el.ELException cannot be resolved. It is indirectly referenced from required .class files I remember in one of your reply is that it is a classpath problem, but which El jar files I shoud check, becasue I have (commons-el.jar) and I couldn't find (el.jar). I use JSF 1.2
There is no jar files in WebInf/lib
Many thanks for your time in helping others !

Similar Messages

  • I need to make a pdf document, made in photoshop, 'page turn' and then add it to my website. I know I can do this in indesign but indesign will not open pdf files for some inexplicable reason. Any ideas how I can do it without completely starting again?

    I need to make a pdf document, already made in photoshop, 'page turn' and then add it to my website as an e-brochure. I know I can do this in indesign but indesign will not open pdf files for some inexplicable reason. Any ideas how I can do it without completely starting again?

    Hello waitingone,
    please try this (all terms are translated from my German programs to my best knowledge):
    1. Did the creator of the pdf file enable the import options?
    2. See import options: choose an other visibility option for your layer.
    3. Let you show the import options and click into one with a black background and try these out (often a gray is selected).
    4. See trimming: try the different modes there. Often works: "Media".
    5. Is the pdf file (eg from Word) correctly created?
    6. Is the PDF file protected? >>> no import possible.
    7. If that does not help, store the pdf file in Acrobat, repair possible errors, run the PDF Optimizer before placing in InDesign.
    Good luck!
    Hans-Günter

  • My macbook just started emiitting a beep every 10 secs or so which i appear only to be able to turn off by muteing the volume . any idea what it is and how i can make it cease ?

    my macbook just started emiitting a beep every 10 secs or so which i appear only to be able to turn off by muteing the volume . any idea what it is and how i can make it cease ?

    You showed a kernel panic file from OS X, apprantly Log Me In is installed into OS X or running when you log in.
    You should be using the developers installer/unistaller to remove Log Me In from OS X.
    Somehow it's in OS X, I don't know, but it's there and you need to remove it. I'm not dealing with Windows, just OS X.
    Talk to Log Me In people and find out what is installed where so you can do a manual deletion out of OS X.
    If that doesn't work, you have to reboot holding the Shift key down manually search for any Log Me In or Himachi files on your computer, in your System/Library/Extensions folder too, use the free Easy Find.
    https://s3.amazonaws.com/DTWebsiteSupport/download/freeware/easyfind/4.9/EasyFin d.app.zip

  • How we can make use of logfiles to see users logdetails

    Hi all
    how we can make use of databse logfiles to generate users log reprot to trace
    the users transactionsssss...
    Thanks & regards
    Vivek

    Yuo have to start the logminer before running this command.It wont work before that,
    Read these.It will help,
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96521/logminer.htm
    http://www.oracle-base.com/articles/9i/LogMinerEnhancements9i.php
    http://www.oracle.com/technology/deploy/availability/htdocs/LogMinerOverview.htm
    Aman....

  • I bought the pack for students adobe creative cloud, already made the payment three days ago but when opening programs like photosop and illustrator puts the trial period has expired, how I can make them work?

    I bought the pack for students adobe creative cloud, already made the payment three days ago but when opening programs like photosop and illustrator puts the trial period has expired, how I can make them work?

    Hello Ibonedm,
    Sol 1. Please try sign out from Creative cloud Desktop App and quit it.
    1. Launch Creative Cloud application manager.
    2. Click the gear icon in the upper-right corner and select Preferences.
    3. In the Preferences menu, under General, click the Account tab.
    4. Click Sign Out from Creative Cloud.
    Then re-sign in and launch Photoshop CC 2014 and check.
    Sol 2. Check your Hosts file.
    Windows
    1. Choose Start > Run, type %systemroot% \system32\drivers\etc, and then press Enter.
    2. Locate Hosts file and move it to Desktop
    3. Right-click the hosts file and select Open. Select Notepad for the application to open the hosts file.
    4. Back up the hosts file: Choose File > Save As, save the file as hosts.backup, and then click OK.
    5. Search the hosts file for entries that reference activate.adobe.com (for example, 127.0.0.1 activate.adobe.com) and delete these entries.
    6. Save and close the file and move it back to Etc folder.
    Mac OS
    1. Log in as an administrator to edit the hosts file in Mac OS.
    2. In a Finder window, choose Go > Go To Folder.
    3. Type /etc.
    4. Select the hosts file and move it on Desktop  open it.
    5. Back up the hosts file: Choose File > Save As, save the file as hosts.backup, and then click OK.
    6. Search the hosts file for entries that reference activate.adobe.com (for example, 127.0.0.1 activate.adobe.com) and delete these entries.
    7. Move Hosts file back to etc folder
    8. Save and close the file.
    Then try launching Photoshop CC 2014 or Illustrator CC 2014
    If prompt for License this software, please click on it and sign in with the Adobe ID and Password which you have used to purchase the subscription and check if you can activate and use the products.
    Please respond , if any issue.
    All the best
    Loveneesh.

  • HT201364 how do i make space on my start up disk

    How do I make space on my start up disk to allow for updates?

    You should never, EVER let a conputer hard drive get completely full, EVER!
    With Macs and OS X, you shouldn't let the hard drive get below 15 GBs or less of free data space.
    If it does, it's time for some hard drive housecleaning.
    Follow some of my tips for cleaning out, deleting and archiving data from your Mac's internal hard drive.
    Have you emptied your iMac's Trash icon in the Dock?
    If you use iPhoto, iPhoto has its own trash that needs to be emptied, also.
    If you store images in other locations other than iPhoto, then you will have to weed through these to determine what to archive and what to delete.
    If you use Apple Mail app, Apple Mail also has its own trash area that needs to be emptied, too!
    Delete any old or no longer needed emails and/or archive to disc, flash drives or external hard drive, older emails you want to save.
    Look through your other Mailboxes and other Mail categories to see If there is other mail you can archive and/or delete.
    Other things you can do to gain space.
    Once you have around 15 GBs regained, do a search, download and install OmniDisk Sweeper.
    This app will help you locate files that you can move/archive and/or delete from your system.
    STAY AWAY FROM DELETING ANY FILES FROM OS X SYSTEM FOLDER!
    Look through your Documents folder and delete any type of old useless type files like "Read Me" type files.
    Again, archive to disc, flash drives, ext. hard drives or delete any old documents you no longer use or immediately need.
    Look in your Applications folder, if you have applications you haven't used in a long time, if the app doesn't have a dedicated uninstaller, then you can simply drag it into the OS X Trash icon. IF the application has an uninstaller app, then use it to completely delete the app from your Mac.
    Download an app called OnyX for your version of OS X.
    When you install and launch it, let it do its initial automatic tests, then go to the cleaning and maintenance tabs and run the maintenance tabs that let OnyX clean out all web browser cache files, web browser histories, system cache files, delete old error log files.
    Typically, iTunes and iPhoto libraries are the biggest users of HD space.
    move these files/data off of your internal drive to the external hard drive and deleted off of the internal hard drive.
    If you have any other large folders of personal data or projects, these should be archived or moved, also, to the optical discs, flash drives or external hard drive and then either archived to disc and/or deleted off your internal hard drive.
    Good Luck!

  • How do you make room on your start up disk.  i am trying to do the update but don't have enough space

    how do you make room on your start up disk.  i am trying to do the update but don't have enough space

    Try this:
    1. Open "Finder", then navigate to "Movies" on the left side. Click on "iMovie Projects"
    2. Move desired movies and clips to trash, or your flash drive.
    *PS* Its dangerous to have a full hard drive, I would recommend either trashing, or transferring files to another computer. Trash applications you no longer use as well.

  • HT2736 How i can make a gift card code

    How i can make a goft card code

    Your question is rather unclear. Can you please explain in more detail what it is you wish to accomplish? If you are not comfortable writing in English, try posting in your native language.
    Regards.

  • How I can make a folder contain pictures &video an...

    sorry if there are mistakes
     i have n95 v 31.0,017
     how I can make a folder in SD card contain pictures &video and I dont want them  appear in studio
    I dont want to use a files browser  and hide my files and i dont want  to use an application  to encrypt them because  I just  want to sort my pictures in a folder  and my video in afolder.
    thank you  
    Solved!
    Go to Solution.

    You can also try to remove them from the images folder and the  My videos folder, because this is where the Gallery will look for pictures and videos, and put them in another folder then reorganize them in sub folders within your new folder
    Show your appreciation. Hit that kudos button real hard

  • How I can make a call on my iPad 3G

    I buy a secondhand iPad first generation with 3G but how I can make a call ?

    Also forget about sending SMS text messages - the iPad internal modem is only used for cellular data.
    Can be a real pain when using prepaid SIMcards that require sending SMS text messages to top up
    3G prepaid internet on an iPad

  • How I can make a request to send to apple workshop?

    how I can make a request to send to apple workshop?

    Go to this web page:
    http://www.apple.com/support/ipad/service/faq/
    Choose your country as appropriate and follow the instructions under "how do I obtain service".
    Regards.

  • How i can make a backup without separate hdd?

    How i can make a backup without seperate hdd?

    how i can partition the hd? please step by step...
    today it's my first apple-day ... i was 18 years windows user
    While I agree with everyone else, get a second disk and backup to that disk, I will point you in the directory of partitioning.
    Applications -> Utilities -> Disk Utility
    Disk Utility may or may not be able to carve a new partition out of your existing partition, depending on whether the end of the current partition is unused so the current partition can be reduced in size and a new partition added.
    It may be necessary to use an external disk, clone your internal disk using SuperDuper or Carbon Copy Cloner (both free to use when creating a full clone), then partition your internal disk, and finally restore the external clone to the internal disk again using SuperDuper or Carbon Copy Cloner.
    If you do not want to get a 2nd disk, then consider using an on-line service such as CrashPlan, Carbonite, Mozy, etc... for the files you absolutely cannot aford to loose.

  • How i can make valid java appliacation and how

    i am novice in java and i want to make good and valid application that i can run from server any body can tell me how i can make this or any link for any project online or build on net with deployment details
    A.R

    JAXP api can be used to read xml from java
    Cheers :)

  • How i can make in the same action 2 condition (check the exemple down)

    how i can make in the same action 2 condition (check the exemple down)
    this is an example and I really thank you for helping me(any body plz)
    http://www.2shared.com/file/DPpdgC_a/Exemple_Edge.html

    1. make each rectangle a symbol  (Symbol_1 and Symbol_2) and uncheck autoplay()
    2. Delete your code on the click event and put the following code in compostion ready:
    var toggle=true;
    function btnPlay(){
              if (toggle){
                        toggle=false;
                        sym.getSymbol('Symbol_1').play();
              else{
                        toggle=true;
                        sym.getSymbol('Symbol_2').play();
    sym.$('Ellipse').click(function(){
              btnPlay();

  • How i can make  my own connection in java source of a jsp page

    How i can make my own connection in java source of a jsp page (How to get connection from JNDI datasource address) ?
    imagine that i have a rowset in a web page , now i want to do some operation using
    plain JDBC , so i will need a connection object.
    I tried to get one of my rowsets connection but it return null ?
    what is best way to retrive a connection from JNDI datasource that we define for our project?
    for example if i have
    myRowSet.setDataSourceName("java:comp/env/jdbc/be");
    in web page constructor
    now i want a pure connection from the same datasource ? JNDI
    Thank you

    It is not hard to get your own connection from datasource.
    in your case you need to do like the the following code.
    i provide sample to show you how to catch the exception and create an statement .
    Connection con =null;
    try{
    InitialContext ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/be");
    con = ds.getConnection();
    java.sql.Statement st =con.createStatement();
    }catch(SQLException sqlex){
    sqlex.printStackTrace();
    sqlex.getNextException().printStackTrace();
    catch(NamingException nex){
    nex.printStackTrace();
    hth
    Masoud kalali

Maybe you are looking for

  • External account

    Hi, after several months of PHD syncing nightmares I recently opted for an external account on a portable firewire drive. It seems to be working very nicely, allowing me to switch from a portable macbook pro to an imac rapidly and without problems. t

  • Passing a Vector object as a parameter to a method

    Hi, How can I pass a Vector object as a parameter to a method?   void buttonAdd_actionPerformed(ActionEvent e) {     Vector studentHobbies = new Vector();       String[] items = listHobbies.getSelectedItems();       for (int i=0; i<items.length; i++)

  • How do i enable spanish in the safari dictionary?

    I understand from the last sentence on description of the safari dictionary on the Apple website, Spanish should be supported.  But no definitions for Spanish words come up.  How do I enable Spanish?  Is it possible to obtain translations to English

  • Problems in project cost settlement

    We have large projects . While running CJ88 total cost is not settled in one run . we need to run cj88 2-3 times then total cost is settled. Some times even after running 2-3 times we find some unsettled cost. What can be possible reasons.

  • Regarding Purchase Doc Fields

    Hi All, For one of the users, when he opens a purchase order, he is unable to enter unit price or tax code i.e he is not even able to click on the unit price and tax code. I have checked the form settings and these fields are active. Is this an issue