Can not find my EJB's from my Servlet

Hi
I am new to EJB and am trying to get a Servlet to call some sessionless EJB beans. I have got it working in JDeveloper but when I deploy it to orion application server I keep getting a javax.naming.NameNotFoundException exception throw from the Servlet when it tries to find the first EJB.
The code in the Servlet is:
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
env.put(Context.SECURITY_PRINCIPAL, "admin");
env.put(Context.SECURITY_CREDENTIALS, "jewels");
// env.put(Context.PROVIDER_URL, "ormi://localhost:23891/current-workspace-app");
env.put(Context.PROVIDER_URL, "ormi://localhost:23791/dev");
Context ctx = new InitialContext(env);
System.out.println("Getting mapping class ejb");
//mapping
ExponentMappingServiceHome mappingHome = (ExponentMappingServiceHome)ctx.lookup("ExponentMappingServiceHome");
ExponentMappingService mapping = mappingHome.create();
My EJB xml looks like this:
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
<ejb-jar>
<enterprise-beans>
<session>
<description>Session Bean ( Stateless )</description>
<display-name>ExponentMappingService</display-name>
<ejb-name>ExponentMappingService</ejb-name>
<home>com.exponent.ejb.service.map.ExponentMappingServiceHome</home>
<remote>com.exponent.ejb.service.map.ExponentMappingService</remote>
<ejb-class>com.exponent.ejb.service.map.ExponentMappingServiceBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
<session>
<description>Session Bean ( Stateless )</description>
<display-name>ExponentMappingViewsService</display-name>
<ejb-name>ExponentMappingViewsService</ejb-name>
<home>com.exponent.ejb.service.map.ExponentMappingViewsServiceHome</home>
<remote>com.exponent.ejb.service.map.ExponentMappingViewsService</remote>
<ejb-class>com.exponent.ejb.service.map.ExponentMappingViewsServiceBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
<session>
<description>Session Bean ( Stateless )</description>
<display-name>FalconService</display-name>
<ejb-name>FalconService</ejb-name>
<home>com.exponent.ejb.service.FalconServiceHome</home>
<remote>com.exponent.ejb.service.FalconService</remote>
<ejb-class>com.exponent.ejb.service.FalconServiceBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
I have been trying for a while to get the JNDI naming right but everything I try gets the above error. Any help would be great.
Thanks
Andre

You have to lookup for "ExponentMappingService", and not "ExponentMappingServiceHome"
The name you give in the <ejb-name> tag in ejb-jar.xml is the JNDI name of the EJB. This is the name u have to look up.

Similar Messages

  • Can not find app I installed from App Store

    I installed a free app from the APP STORE and I can not find it on my MacBook Pro

    You have Lion, so it should be the last thing in Launchpad. Also check Purchases tab in App Store.

  • Help! I can not find my BBM Contacts from my Blackberry Backup.

    Hello guys, thanks for checking, i need help.
    Basically i have 4 Backups that i made from 3 different blackberries that i have and since i am getting a new blackberry this week i thought i need to extract my backup .ipd files so i can type the blackberry pins that i want instead of restoring the whole stuff to my new phone. I used 
    - Blackberry Backup Extractor
    - Elcomsoft blackberry explorer
    I can not seem to find the BBM contacts i had, i remeber having around 200 people, all i can find is 5 open conversations and of course the other message, phone book etc backup. The Backup is perfect and not corrupt.
    Where am i suppose to find the BBM contacts? am i missing something here?
    Thanks guys, if you need any help beside this, let me know, i might help

    Unfortunatly their are some individuals with the know how and equipment to access network blocked imei handsets.
    Mind if they are caught a 5 year prison term awaits them.
    Mobiles have and always be an easy target for theives. People have lost their lifes for refusing to hand them over.
    I was in a market traders shop a while ago and two young lads came in with a handset to ask for it to be opened up to all networks. They could not even answer the question on what network it was originally on. The shop worker shrugged her shoulders and went ahead and opened it up as requested , all for £5 !! I left shaking my head ?
    Follow the advice and contact your network to block the sim and fone, and also inform the police in order to get a crime number in order to start claims on any insurance you may have.
    Nokia Lumia 520
     iphone 6 Plus.
    Be happy !!

  • In jb6,It can not find javax.ejb,how can i do?

    I want to use jb6 to develop ejb beans ,
    but In my jb6,when I complile,It show "can't acess javax/ejb",and i can't find ejb in javax,how can i do?
    where ejb?

    I want to use jb6 to develop ejb beans ,
    but In my jb6,when I complile,It show "can't acess
    javax/ejb",and i can't find ejb in javax,how can i
    do?
    where ejb?Its not required to set any environment variable for EJB development with JBuilder6. If you are not using any of the JBuilder wizards for creating EJB's, then you need to add your JAR files through 'required libraries'.

  • Can not find javax.ejb.CreateException when lookup and create EJB instance.

    Hi,
        I installed SAP CE 7.2 and NWDS 7.2. When i call create() of EJB's home interface from JAVA stand alone app to create EJB instance, the complier state that it need  'javax.ejb.CreateException'. How can i find the jar that contain 'javax.ejb.CreateException' to solve this problem?
    Thank a lot,
    Thongie
    Edited by: Thongie on Jul 8, 2011 7:30 PM

    Thank a lot, I can found EJB20.jar at 'usr\sap\<sid>\<instance_id>\j2ee\j2eeclient\'

  • CAN NOT FIND SONG I BOUGHT FROM THE WIFI STORE!

    THIS IS THE SECOND TIME THIS HAPPENED AND THE SECOND TIME I'VE BOUGHT SOMEHTING OFF OF THE iTUNES WIFI STORE!!!! I JUST BOUGHT A SONG AND IT WAS ON THE IPOD. BUT AFTER I CONNECTED IT TO THE COMPUTER ITS GONE NOW!!!! ISNT IT SUPPOSE TO ADD THE SONG TO THE COMPUTER LIBRARY. NOT DELETE IT FROM BOTH!!! THIS IS THE SECOND TIME!!!! AND THEY SENT ME A RECEIPT AND TOOK THE MONEY OUT OF MY ACCOUNT!!! *** IS GOING ON HERE! THE SONG IS GONE!

    Thank you francis for actually helping me, as opposed to rudely lecturing me like some other "now it alls" in this forum. I realized this problem was old. It has happened to me before (hence why i was kinda t'd off), but for some reason I just couldn't find out how to get that form. Thank you very much. Apple definitely needs to get on this. It's no only causing Apple's customers annoyances, but is just causing Apple more work period by having to give back credit and sift through claims. It is for sure a bug that annoys many people, and should not still be a problem if Apple was on top of the ipod touch's wifi store like they're suppose to be. But, thanks again for HELPING me.

  • I want to upgrade my plan, but I can not find any upgrade link from single to full, please help. urgent.

    How can I upgrade adobe cc plan, I try to search in google, but I found nothing, or sometimes I found a link but I don't have the same screen as they capture.
    really need help, kind of urgent, don't want to buy the full and pay for both plan.
    Thank you

    Hi saovadee,
    In order to change the plan, please contact our support team via: Contact Customer Care
    Thanks,
    Atul Saini

  • I can't find where to switch from my internal disc burner to my external burning device

    I can not find where to switch from my internal disc burner to my external when burning music in iTunes. Please help.

    First, check to make sure it is plugged in. With all of the devices you may have and limited USB ports, you may have mistaken which is plugged in. When you pull down file to burn a CD, a pop up window should occur giving you a selection of your internal and external CD drives. If you only see your internal drive, try inserting a disc and see if you computer asks what you want to do with the CD. If so, it shows your computer is now seeing the drive. If nothing happens, try restarting your computer with your external drive plugged in.

  • Airport Card can not find the Airport Extreme Station

    My problem is, that my PowerMac G5 with an Airport Card can not find the Airport Network from the Expreme Station. But I can see all other wlan-networks.
    With me MacBook Pro I have no problems, I have an normal connection to the Station.

    JanSo wrote:
    My problem is, that my PowerMac G5 with an Airport Card can not find the Airport Network from the Expreme Station. But I can see all other wlan-networks.
    Welcome to Apple's discussion groups.
    In AirPort Utility how is your AirPort Extreme configured in the AirPort panel, Wireless tab, Radio Mode list? If it's set to 802.11n only the AirPort card in your G5 probably doesn't support that.

  • I have reinstalled snow leopard 10.6.8 and want to restore my i photos from time machine. can not find iphoto libary in time machine, can"t not find home-pict. iphoto lib.  in time machine

    i have reinstalled snow leopard 10.6.8,  and want to restore my i photos from time machine. Can not find i-photo libary in time machine, can't not find > home-pict. iphoto lib.  in time machine. Please help.

    On my HD it does not say ,restore, in yourname -pict. Iphoto lib.,
    On the time machine, it , yourname etc, oes not show up at all.
    Only right side of TM, your name etc. does not show.

  • I am trying to download xfinity tv go app. I can not find it in my App Store and can not download it from the comcast website. All I get is a blank screen in the App Store. My Apple ID is associated with a Canadian address. How can I find the app?

    I am trying to download xfinity tv go app. I can not find it in my App Store and can not download it from the comcast website. All I get is a blank screen in the App Store. My Apple ID is associated with a Canadian address. How can I find the app?

    Its possible the App is not available in the Canadian store if the link doesn't work for you.
    https://itunes.apple.com/us/app/xfinity-connect/id320788270?mt=8

  • HT1391 I have down loaded a number of songs but after a short while they go messing. I tunes can not find them. If I down load from a cd there is no problems. I tunes can always find them. For that reason I no longer down load from the I tunes store. why

    iTunes can not find the music that was down loaded form the iTunes store. Why? Where is it locateded? They are there and play for a short while then they disappear. Why? What is happening to the songs that I have down loaded????? Anything that I import form a cd is still there!
    Why can't iTunes find what I down loaded from the iTune store???????
    If Heaven
    3:31
    Andy Griggs
    This I Gotta See
    Country
    17
    In front of the "if" there is a gray circle with and "!" in the center. When I click on the song to play I get this message.The song could not be used because the original file could not be found.

    iTunes can not find the music that was down loaded form the iTunes store. Why? Where is it locateded? They are there and play for a short while then they disappear. Why? What is happening to the songs that I have down loaded????? Anything that I import form a cd is still there!
    Why can't iTunes find what I down loaded from the iTune store???????
    If Heaven
    3:31
    Andy Griggs
    This I Gotta See
    Country
    17
    In front of the "if" there is a gray circle with and "!" in the center. When I click on the song to play I get this message.The song could not be used because the original file could not be found.

  • I have upgrade ios 6 to ios7 on my iphone 5.  I do NOT like it.  I want to come back to the previosu version.  why is it so complicated.  Why can I not find the instruction strait from apple? This is the worst possible upgrade ever.

    I have upgrade ios 6 to ios7 on my iphone 5.  I do NOT like it at all.   I want to come back to the previous version.  why is it so complicated? Why can I not find the instruction strait from apple? This is the worst possible upgrade ever.  It make me think of when ericsson got sold to Sony....drastic PC change.
    I would like to have simple instruction on how to downgrade.
    It feel like a change that I did not ask for , ok I push the upgrade buttom, but really this is the worst update aver!
    HELP!

    iPhone User Guide (For iOS 7 Software)Sep 20, 2013 - 23 MB

  • I can not find my playlists on apple tv. How can I use my playlists from itunes on apple tv ?

    I can not find my playlists on apple tv. How can I use my playlists from itunes on apple tv ?

    Hey luisathome,
    Thanks for the question. The following resource outlines how to setup Home Sharing between your Apple TV and computer:
    iTunes 11 for Mac: Play items in your iTunes library using Apple TV (2nd generation or later)
    http://support.apple.com/kb/PH12153
    Thanks,
    Matt M.

  • I have 10.6.8 and have installed two new printers HP 8610 and an Epson 7880 and can not find the Page Set-up menu anywhere in the applications I a trying to print from. There are no page sizes, paper types, appearsto be locked on a 13x19 size but It.

    Hi to the Mac Folks,
    I have 10.6.8 and have installed two new printers HP 8610 and an Epson 7880 and can not find the Page Set-up menu anywhere in the applications I a trying to print from. This is regardless of either printer selected.
    I primarily print photos from Photoshop CS5.  The term Page Set-up has gone missing in the file pull down menu. Can't make any choices  There are no page sizes, paper types, appearsto be locked on a 13x19 size paper format. Either being too large or too small.
    Saw a 2008 locked issue about this however none of the help fit my situation, options discussed are not available to me.
    Preview has no "Page Setup" - or does it?
    Does the constant struggle with computer compatability weirdness issues ever end or is it a enslavement scheme?
    Woody

    Hey,
    if you know the name(s) of the root folder(s) you want to access (eg. by making a note on the Windows side) then you can make them appear by just doing Shift-Command-G in Finder ("Go to Folder…"), and entering the full path to the required folders.  You can then navigate all the contents as normal.
    HTH,
    S.

Maybe you are looking for

  • New bug in new firmware v4.0707.0.7 for n80

    in most time whene i try to chageing n80 said not charging the problem diapear whene i restat my phone and racharg it

  • Evaluation group issue

    Dear Experts, We  have created new Evaluation group in t-code YIDFI_AA0001 (table maintainence) and also in SPRO path Fin Accounting>>Asset Acct>>Master Data>>>User fields>>>Define 4 character evaluatin groups. My question here is, does the values ma

  • SQL Developer 3.1 and Oracle11g problem

    Hello I have SQL developer 3.1, oracle client 9 and database Oracle 11g that I can't connect to. Previosly I used 10g and it was working fine. Now when I try to connect to 11g I am getting the following message: IO error: network adapter could not es

  • How to recognize empty lines in a source file

    Hi to all I want to count he empty lines in a source file. I've been using the methods provided by String such as "contains" ecc but for example String line = new String(); line.startsWith(\r); in order to trace the carrage return in order to conside

  • Transforming XML Data with XSLT in a servlet

    Trying to transform XML data using XSLT. The following code works fine outside of a servlet. But in a servlet it gives the following error : * Transformer Factory error javax.xml.transform.TransformerConfigurationException: javax.xml.transform.Transf