@Singleton instanciated twice when from Struts2 and JSF (same webapp)

Hello,
in the process of migration from a struts2 application to JSF 2.0 I've annotated as @javax.ejb.Singleton a former stateless session bean. It works ok but if I get that EJB from JNDI (struts2 actions) I get a different object than when referencing the EJB from a JSF facelet (I have also annotated the Bean as @ManagedBean) It works but is a different object. is that the supposed behaviour?
(I've also tried with Weld (cdi) using @Named and not @ManagerBean... it is even works. For some reason, @Named creates the object but gives it no EJB services (no @PersistenceContext injection for example)
thanks for any directions,
Ignacio

Steve,
I am using JSF2.0 and getting javax.el.ExpressionFactory NoClassDefFound issues.
OEPE Helios
Weblogic 10.3.3
I have an EAR containing one WAR.
WEB-INF/lib
el-api-2.2jar
el-imp-2.2.jar
jsf-api.jar (2.1.1)
jsf.impl.jar (2.1.1)
jstl.jar (1.1.0-D13)
web.xml has
     <context-param>
          <param-name>com.sun.faces.expressionFactory</param-name>
          <param-value>com.sun.el.ExpressionFactoryImpl</param-value>
     </context-param>
EAR has
weblogic-application.xml with
<wls:prefer-application-packages>
<wls:package-name>org.eclipse.persistence.*</wls:package-name>
<wls:package-name>javax.faces.*</wls:package-name>
<wls:package-name>com.sun.faces.*</wls:package-name>
     <wls:package-name>com.sun.el.*</wls:package-name>
     <wls:package-name>javax.el.*</wls:package-name>
</wls:prefer-application-packages>
I see by your post that JSF2.0 support can be solved by either deploying a shared-library or using the weblogic.Deployer utility. Unfortunately, we don't have access to change the Weblogic instance in any way. I was hoping that using the prefer-application-packages would be sufficient to use alternative classes to Weblogic's but I have not been able to get it to work for the javax.el classes. I have tried not including javax.el and the app deploys but then accessing a page produces a javax.el.ELResolver no method found for invoke. Invoke being a newer method defined in el-api-2.2.jar. If I was able to convince them to add some shared libs, what are all the jars that would be required to make this work?
Any suggestions would be greatly appreciated.
Thanks
John

Similar Messages

  • Brand New Pavilion DV7 Shut down twice when first started, and keeps shutting down for no reason

    The problem I have with my new HP Dv7 is it keeps shutting down. This can't be due to over heating as when I first switched it on and went through the setup process it restarted twice. Took me three attempts to get just past the registration section. 
    Reading on the forum pages it looks like quite a few people have had the same problem. Is there a software fix/update to solve this problem? or do I have a faulty laptop?
    Thanks
    Marc

    Please identify your notebook/pc with more than the series number. Look at the base/rear/side of the notebook/pc at the barcoded sticker. Post items numbered 1 and 2 on the following image.
    Post the installed operating system version ( and whether it is 32 or 64-bit)
    Best regards,
    erico
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Calling Web services from ADF and JSF Jdeveloper 10.1.3.1

    Hi I need some examples/documentation about building a ADF application (user interface JSP pages) using only web services calls, instead of EJB or any other entities.
    For example, one web service would give details for a customers (parameters ID, Name,etc), another web service return all orders for a specific customer (parameter customer ID), and so.
    Somne advice, tutorial??
    Thanks!
    John.

    Thanks... I already saw this demo, very good, but uses web service input parameter in one page and result in another,
    But in my case I have to do next:
    1.- In one page 1 the result of web service method 1, (customer list) with option to select one of them and view his orders (page 2).
    2.- Page 2. list of customer's orders (result of web service method 2). This method should be called from page 1, with parameter = customer id selected.
    I have Web service data control, buit page 1 and page 2 (OK), but I dont know how to link and pass customer id parameter to invoke web service method 2...
    Any idea, help?
    Thanks.

  • Calling multiple DLL from Java and calling same native method

    i have two dll files named DLL_1.dll and DLL_2.dll .
    Both of them contain a native method which has a signature
    JNIEXPORT void JNICALL Java_Database_Notify
    (JNIEnv *, jclass);
    This method is common to both the DLL
    Now i load both of the DLL's using,
    System.loadLibrary("DLL_1");
    System.loadLibrary("DLL_2");
    Both of the DLL are loaded form same Java Application
    But the problem is that , whenever i try to call the Notify Method , it calls the Notify method of DLL_1 only.
    How do i call the Notify Methos of second DLL(i.e DLL_2).
    Is there any reference that i can get to all the DLL files when i load then , so that i can use that reference to invoke the Notify method of that particular DLL.

    i have two dll files named DLL_1.dll and DLL_2.dll .
    Both of them contain a native method which has a
    signature
    JNIEXPORT void JNICALL Java_Database_Notify
    (JNIEnv *, jclass);
    This method is common to both the DLL
    Now i load both of the DLL's using,
    System.loadLibrary("DLL_1");
    System.loadLibrary("DLL_2");
    Both of the DLL are loaded form same Java
    Application
    But the problem is that , whenever i try to call the
    Notify Method , it calls the Notify method of DLL_1
    only.
    How do i call the Notify Methos of second DLL(i.e
    DLL_2).
    Is there any reference that i can get to all the DLL
    files when i load then , so that i can use that
    reference to invoke the Notify method of that
    particular DLL.You need to explain exactly what you are trying to achieve.
    As per the description above it is impossible in java.
    And I didn't say JNI, I said java.
    Your above statement suggests that you think that you can have exactly the same java signature do two different things.
    Note again that I said java not JNI.
    A JNI method is just a tag that represents a java signature. Your description suggests that you are attempting to do it twice.
    There are three possibilities.
    1. Your explanation is incomplete.
    2. You are trying to do something that is impossible in java.
    3. You are trying to solve a problem and your description of your solution is not sufficient to determine what that is (and of course the solution is wrong.)

  • Is there a way to delete from album and at same time from library?

    What I am doing now is deleting from the album, then searching out the pix from the library and deleting that. Awkward. Is there a more direct way?

    Yes. Flag the pics and go control-command-delete or just select the pic option=command-delete
    Regards
    TD

  • Open email & top of bar says fire fox not responding & get script error on page asking to stop script or continue. Loading most mail or sites is slow now that I returned from Japan and using same laptop. Any ideas?

    my laptop stops responding when I open email right in the middle of writing email or checking email and when I open bookmarks. Up the top it says firefox not responding and a script error block opens asking me to continue or stop script. It give me this same error all the time no matter if I select continue or stop script.

    As far as email sites go. The "Adblock Plus" extension with at least the "EasyList US" filter subscription would probably help. I does block a lot of unnecessary Script files whose sole purpose is to provide advertising. You can of course add additional filter subscriptions or filters of your own.
    There are many extensions that can cause such problems, and you may have to go through your extensions.
    One thing you might do is eliminate Problematic Extensions that you are not using, but mainly check to see how the create problems and you may have to make a choice between extensions. The Unresponsive Script Warning page lists some extensions with problems (thought it listed more) and describes how to check through your extensions to help find which extension is the problem Sometimes the message will tell you.
    * '''Problematic extensions''' - MozillaZine Knowledge Base<br>http://kb.mozillazine.org/Problematic_extensions
    * '''Unresponsive Script Warning''' - MozillaZine Knowledge Base<br>http://kb.mozillazine.org/Unresponsive_Script_Warning
    * Firefox hangs - MozillaZine Knowledge Base<br>http://kb.mozillazine.org/Firefox_hangs
    Here are some extensions I had a problem with, and don't use them any more
    : http://dmcritchie.mvps.org/firefox/infolister_listing_fx4.htm#scriptbusy
    * Line Marker, Firefox 1.0 - 1.5.0.* ALL (2.0.2006072201)
    * Quick Sum (0.1), presumably good for Firefox 2.0
    * Translate (0.6.0.9), Firefox 0.9 - 1.5.0.* ALL
    * gTranslate (0.3.1) [30KB], Firefox 1.0 - 2.0.0.* ALL
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it, but take your time and try to make sure you pick the answer that helped you, and tell us which extension or script you found to be the problem.</small>

  • Why am i being charged twice for 11.04 and 11.46 when I did not purchase those songs, I used an itunes card 25$ and I still have 0.04 cents left?

    Why am i being charged twice for 11.04 and 11.46 when I did not purchase those songs, I used an itunes card 25$ and I still have 0.04 cents left?
    I couldnt redeem w/o an apple ID so when i did it asked for a credit card. And I want to discontinue and remove my account from itunes but it wont let me, there is no account discontinue or removal of account

    Because too much time has passed I can't edit this into the prior comment, but here is the info regarding reverting to iTunes 11.0.2 (assuming you do have a time machine backup) from https://discussions.apple.com/message/22057703#22057703
    W. Raider wrote:
    Repairing permissions doesn't fix it.
    I reverted to the previous version, 11.0.2.
    1. Quit the new crash-prone iTunes.
    2. Delete the app.
    3. Restore v. 11.0.2 with Time Machine.
    4. In your iTunes folder look for a folder called "Previous iTunes Libraries", find the latest one.
    5. In the iTunes folder itself you'll see "iTunes Library.itl", delete it (or compress it and save a copy for later just in case.
    6. Copy the newest .itl file in Previous iTunes Libraries to the iTunes folder and rename it "iTunes Library.itl".
    7. Launch the older version of iTunes.
    My crashing has seemed to have ceased with a revert to an older version. I noticed today that the newer crashing iTunes had been launched for hours but not playing anything, when I played internet radio it crashed within 5mins, fed up I reverted to an older version.
    Btw, a simpler way to do this is to revert to older iTunes app, then hold Option when it launches and choose an older library.

  • I just recently upgraded from a 4S to a 5C.  I backloaded the 5 from Itunes and now everytime i plug into itunes, it asks if I want to set up as new or restore from a previous backup.  Why is it doing this.  I did it twice yesterday.....

    I just recently upgraded from a 4S to a 5C.  I backloaded the 5 from Itunes and now everytime i plug into itunes, it asks if I want to set up as new or restore from a previous backup.  Why is it doing this.  I did it twice yesterday.....  In addtion, those are the only options I have.  I cannot do anything else unless I choose one of the two.  Zero options.  Phone works fine though.

    I figure that either of those options will result in losing all SMS and data created since the last backup. Not a major loss, but ** annoying when nothing has changed and the time it will take to restore.
    When was the last time you synced your iPhone with iTunes since the backup is updated as the first step during the sync process?
    Is there anyway to recover this WITHOUT having to do a full restore or set up as new?
    In a word, no.
    If I do restore or set up as new, how do I know it's not going to do the same thing tomorrow (like a few other forums threads I've read indicate might happen)?
    There is no way to know for certain but I've never experienced the same in the first place. I venture to say having to do this is the exception rather than the rule.

  • When I drag and drop an icon from the address bar to the desktop is does creat the shortcut but will not display the website icon, only the firefox icon, how can I display website icons?

    When I drag and drop a website icon from the Forefox address bar to the desk top, the short cut is created but the icon that appears is the firefox Icon. I want to disply the icon from the website that the short cut refers to. I have checked all I can think of in my computer to no avail.

    You have to assign the favicon yourself to the desktop shortcut (right-click the shortcut: Properties) after you have dragged the link to the desktop.
    You can usually find the favicon in Tools >Page Info > Media and save the icon there.
    Otherwise use the main domain of the website and add favicon.ico (e.g. mozilla.com/favicon.ico ) to display the favicon in a tab and save that image to a folder.

  • I have one apple ID for both my Iphone 4S and Ipad. My Ipad was stolen from me and when I checked the iCloud, it can only locate the Iphone 4S. How can I locate the Ipad device?

    I have one apple ID for both my Iphone 4S and Ipad. My Ipad was stolen from me and when I checked the iCloud, it can only locate the Iphone 4S. How can I locate the Ipad device?

    Welcome to the Apple Community.
    You can only locate your device when it is logged into iCloud and 'Find My Phone' is enabled, additionally the device will need to be switched on and connected to a wifi or cellular network.
    Unfortunately, you cannot activate iCloud or 'Find My Phone' remotely.

  • I have a new pc, and when updating ipad software it will erase all apps etc, is there any way to stop this from happening and make my new laptop my ipads "home" pc???

    I have a new laptop, and have copied over my existing itunes libary, but when i connect my ipad, and go to update the software to the new version it warns me that it will wipe all my apps etc..... How can i stop this from happening and make my new laptop the "home" for my ipad??
    Any help gratefully received! :-)

    Macs use an application called Migration Assistant to copy material from the old Mac to the new one. The macs are connected together and each runs Migration Assistance and the user chooses what stuf to copy onto the new Mac.
    Unfortunately I do not know how to do this between pcs or between a Mac and a Pf or even if it's even possible.

  • How can I change the default apple ID for app store. I bought the macbook from my school when I left and I'm the ID in place of mine is the computer departments one. How can i change it to mine?? Thanks

    How can I change the default apple ID for app store. I bought the macbook from my school when I left and I'm the ID in place of mine is the computer departments one. How can i change it to mine?? Thanks

    http://support.apple.com/kb/ht5621

  • When I try and play music on my iPhone downloaded from iTunes it says 'this URL is not found on this server'. This does not happen when I play the same music through my iPad. Can anyone help?

    When I try to play music downloaded from itunes on my iPhone 4S it says 'this URL is not found on the server'. This does not happen when I play the same music on my iPad. The music plays fine. The message also comes up when I try and login to iTunes on my iMac. Can anyone help?

    I too am having the same issue as the OP.
    Your USER AGENT information is Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18
    Every webserver that receives a request from your browser is able to determine the HTTP USER AGENT information unless it has been removed by some software (e.g. firewall) before the request was trasmitted.

  • Hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    Hey there Logic Pro21,
    It sounds like you are seeing some odd performance issues with Logic Pro X. I recommend these troubleshooting steps specifically from the following article to help troubleshoot what is happening:
    Logic Pro X: Troubleshooting basics
    http://support.apple.com/kb/HT5859
    Verify that your computer meets the system requirements for Logic Pro X
    See Logic Pro X Technical Specifications.
    Test using the computer's built-in audio hardware
    If you use external audio hardware, try setting Logic Pro X to use the built-in audio hardware on your computer. Choose Logic Pro X > Preferences > Audio from the main menu and click the Devices tab. Choose the built in audio hardware from the Input Device and Output Device pop-up menus. If the issue is resolved using built-in audio, refer to the manufacturer of your audio interface.
    Start Logic with a different project template
    Sometimes project files can become damaged, causing unexpected behavior in Logic. If you use a template, damage to the template can cause unexpected results with any project subsequently created from it. To create a completely fresh project choose File > New from Template and select Empty Project in the template selector window. Test to see if the issue is resolved in the new project.
    Sometimes, issues with the data in a project can be repaired. Open an affected project and open the Project Information window with the Project Information key command. Click Reorganize Memory to attempt to repair the project. When you reorganize memory, the current project is checked for any signs of damage, structural problems, and unused blocks. If any unused blocks are found, you will be able to remove these, and repair the project. Project memory is also reorganized automatically after saving or opening a project.
    Delete the user preferences
    You can resolve many issues by restoring Logic Pro X back to its original settings. This will not impact your media files. To reset your Logic Pro X user preference settings to their original state, do the following:
    In the Finder, choose Go to Folder from the Go menu.
    Type ~/Library/Preferences in the "Go to the folder" field.
    Press the Go button.
    Remove the com.apple.logic10.plist file from the Preferences folder. Note that if you have programmed any custom key commands, this will reset them to the defaults. You may wish to export your custom key command as a preset before performing this step. See the Logic Pro X User Manual for details on how to do this. If you are having trouble with a control surface in Logic Pro X, then you may also wish to delete the com.apple.logic.pro.cs file from the preferences folder.
    If you have upgraded from an earlier version of Logic Pro, you should also remove~/Library/Preferences/Logic/com.apple.logic.pro.
    Restart the computer.
    Isolate an issue by using another user account
    For more information see Isolating an issue by using another user account.
    Reinstall Logic Pro X
    Another approach you might consider is reinstalling Logic Pro X. To do this effectively, you need to remove the application, then reinstall Logic Pro X. You don't have to remove everything that was installed with Logic Pro X. Follow the steps below to completely reinstall a fresh copy of Logic Pro X.
    In the Finder, choose Applications from the Go menu.
    Locate the Logic Pro X application and drag it to the trash.
    Open the Mac App Store
    Click the Purchases button in the Mac App Store toolbar.
    Sign in to the Mac App Store using the Apple ID you first used to purchase Logic Pro X.
    Look for Logic Pro X in the list of purchased applications in the App Store. If you don't see Logic Pro X in the list, make sure it's not hidden. See Mac App Store: Hiding and unhiding purchases for more information.
    Click Install to download and install Logic Pro X.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • TS1538 ipad does not come on once its unpluged from power source,it enters recovery mode when both power and home botton are pressed with usb on powersource but does not come up at all when connected to computer or out of power source

    ipad does not come on once its unpluged from power source,it enters recovery mode when both power and home botton are pressed with usb on powersource but does not come up at all when connected to computer or out of power source

    What model iPad do you have? If it's an iPad 1, the battery may have expired and needs replacement.
     Cheers, Tom

Maybe you are looking for

  • How To create Connection Pooling in Oracle 10.1.2.0 Application Server

    Hi, How to create Conncetion Pooling in Oracle 10g Application Server. I am using 10.1.2.0 version. Thanx Dhans

  • Problem with call log and email signature.​..

     Hi, I have 2 little problem with my BB First, the day won't appear in the call logs. It only displays the month like 08/dd.  Pic 1 Second, when I send emails, my signature gets all mixed up because of my french punctuation, any idea why ? Pic 2 Mess

  • Printing resolution bugs

    I am very happy to report that the big printing bug in 2.0 has been fixed (the release note talks about panoramic images which is silly - this bug pertained to all images, even vertically oriented ones). You no longer get a major reduction in resolut

  • No songs yet memory is used

    I just got a new ipod nano (1 GB) and when i connected it to my computer, it said that i have already used 887.7 mb of memory yet i haven't added any songs or photos yet! The playlist is empty, so what exactly is taking up all of this memory? Thanks

  • HT5622 I forgot the answers of the security questions what should I do?

    I wanted to buy a app but they asked me to verify with the security question but I don't remember! Can someone help me :c ?