Cannot get a simple EJB 3 working

Hi all !
I'm porting an older EJB 1.1 application to Weblogic 10.3. I'm upgrading the EJBs to EJB 3.0, for example the following:
@Stateless(mappedName = "ServiceSessionManager")
@Remote()
public class ServiceSessionManagerBean implements ServiceSessionManager {
Once deployed I have observed two entries in the JNDI tree:
ServiceSessionManager#irma
irma-ejbirma-ejb_jarServiceSessionManagerBean_ServiceSessionManager
However, trying to look up any of the two bindings results in an exception :
#1
ServiceSessionManager objServiceSessionManager = (ServiceSessionManager) ctx.lookup("ServiceSessionManager#irma");
java.lang.ClassCastException: weblogic.corba.j2ee.naming.ContextImpl cannot be cast to irma.ejb.serviceSessionManager.ServiceSessionManager
*     at irma.serviceLocator.ResourceLocator.remoteService(ResourceLocator.java:106)*
*     at irma.loginClient.LoginGUI.loadProfile(LoginGUI.java:287)*
#2
ServiceSessionManager objServiceSessionManager = (ServiceSessionManager) ctx.lookup("irma-ejbirma-ejb_jarServiceSessionManagerBean_ServiceSessionManager");
java.lang.ClassCastException: irma.ejb.serviceSessionManager._ServiceSessionManagerBean_6bu45c_ServiceSessionManagerIntf_Stub cannot be cast to irma.ejb.serviceSessionManager.ServiceSessionManager
I'm running the cllient using Sun JDK 1.6.20 and adding in the classpath wlclient.jar and the Server Project as well.
Any Help
Thanks
Frank

Hi Jay,
I've added deployment descriptors as suggested but now I get the following error:
WARNING: "IOP00810210: (MARSHAL) Error from readValue on ValueHandler in CDRInputStream"
org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 210 completed: Maybe
     at com.sun.corba.se.impl.logging.ORBUtilSystemException.valuehandlerReadError(Unknown Source)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(Unknown Source)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(Unknown Source)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_abstract_interface(Unknown Source)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_abstract_interface(Unknown Source)
     at com.sun.corba.se.impl.encoding.CDRInputStream.read_abstract_interface(Unknown Source)
     at com.sun.corba.se.impl.util.Utility.readAbstractAndNarrow(Unknown Source)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputObjectField(Unknown Source)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputClassFields(Unknown Source)
     at com.sun.corba.se.impl.io.IIOPInputStream.inputObject(Unknown Source)
     at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(Unknown Source)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(Unknown Source)
     at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(Unknown Source)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(Unknown Source)
     at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(Unknown Source)
     at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(Unknown Source)
     at weblogic.corba.cos.naming._NamingContextAnyStub.resolve_any(_NamingContextAnyStub.java:81)
     at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:208)
     at weblogic.corba.j2ee.naming.NamingEnumerationImpl.hasMore(NamingEnumerationImpl.java:87)
     at irma.serviceLocator.ResourceLocator.remoteService(ResourceLocator.java:100)
     at irma.loginClient.LoginGUI.loadProfile(LoginGUI.java:287)
     at irma.irmaApp.IrmaApplication.main(IrmaApplication.java:55)
Caused by: java.lang.NoClassDefFoundError: weblogic/utils/classloaders/GenericClassLoader
     at java.lang.Class.getDeclaredFields0(Native Method)
Do you think this error can be caused by different JVM ? the server is running Java(TM) SE Runtime Environment (build 1.6.0_05-b13) while the client is running 1.6.20 ??
thanks again
Frank

Similar Messages

  • I cannot get my iPad 2 to work with VPN provider.

    I cannot get my iPad 2 to work with my VPN service provider.  Using OS 4.3.3.  iPad purchased in the USA.  Have heard there are issues with iPad 2 and VPN support.  Any suggestions?

    You can try this ... hold down on the sleep button and the power button at the same time for about 10 seconds until you see the Apple logo on the screen, release the buttons and see if the iPad restarts and you can use it.

  • I cannot get the numerical keys to work on my Mac pro any ideas?

    HI
    I am trying to return something bought on line and need to fill out various information on the website. I cannot get the numerical keys to work anybody any ideas as to what I may be doing wrong?
    GL

    Hi Goostrey Lou,
    Thanks for visiting Apple Support Communities.
    Start with the tips in this article if some keys on your keyboard are not working:
    One or more keys on the keyboard do not respond
    http://support.apple.com/kb/ts1381
    All the best,
    Jeremy

  • I installed the new 7.0 on my ipad and now I cannot get my internet connection to work. Any ideas, I have already tried rebooting but no luck. Another useless apple update that doesnt work?

    I installed the new 7.0 on my ipad and now I cannot get my internet connection to work. Any ideas, I have already tried rebooting but no luck. Another useless apple update that doesnt work?

    1. Turn router off for 30 seconds and on again.
    2. Settings>General>Reset>Reset Network Settings.

  • I cannot get the Output Module to work. I was able to get the button to show up, but when I click on it, nothing happens. i need to export a PDF asap

    I cannot get the Output Module to work. I was able to get the button to show up, but when I click on it, nothing happens. i need to export a PDF asap. I am trying to export 33 PSD files in BRIDGE to a PDF like I used to do on my other computer with bridge.

    Let's start with the general things.
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    orange Firefox button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site, try either:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    In the dialog that opens, you can remove the site's cookies individually.
    Then try reloading the page. Does that help?

  • HT2494 I cannot get my logitec speakers to work on my iMac

    I cannot get my Logitec speakers to work. They do not show up in the output section
    Thanks

    Hi. If the speakers are using a standard 3.5mm plug, they need to be plugged into the headphone jack. Please clarify which jack you are using.
    Stedman

  • Since upgrading my iPhone 5 to ios 7, I cannot get the internet, email to work on 3g.  I get the message ""could not activate mobile data network. You are not subscribed to a mobile data service".  How do I fix it?

    Since upgrading my iPhone 5 to ios 7, I cannot get the internet, email to work on 3g.  I get the message ""could not activate mobile data network. You are not subscribed to a mobile data service".  How do I fix it?
    I've contacted o2, tried all of their suggested updates and changes, reset my phone 3 times and still no luck.
    Any help appreciated.
    Thanks,
    Louisa

    Hi, l have the same problem, were you able to resolve?

  • I lost my internet last night and now i cannot get my airport express to work

    i lost my internet last night and now i cannot get my airport express to work it is blanking yellow on /off

    Have you tried AirPort Utility it the Utility folder? If so, what was the result?

  • I cannot get Adobe Reader 11 to work - what have I done wrong?

    I cannot get Adobe Reader 11 to work - what have I done wrong?

    Hi Pat,
    I usually don’t have trouble explaining my problems, but this one is confusing the heck out of me.  I just downloaded Reader 11.  It is installed, I believe.  This is the first time Reader has not worked for me after upgrading to a newer version.  I’ve been reading PDF files forever, but tonight when I went to read a pdf file that I received today, I clicked on the file, expecting Reader to open up and it never did.  Then I tried to read some older pdf files and nothing happened when I tried to open the file.  I’ve been using Acrobat Reader for years so that’s why I’m so confused.
    I downloaded the file from the adobe.com website. and everything seemed to be fine.  My question is indeed vague, but I don’t know any other way to explain what happened.  Should I uninstall and start over??
    Thanks, Elaine

  • I am using the trial version of CC and cannot get the auto blend layers working despite following many videos on youtube etc. I have selected all layers but no matter which order I select etc all I get is an output of the first file in the stack - help!!

    I am using the trial version of CC and cannot get the auto blend layers working despite following many videos on youtube etc. I have selected all layers but no matter which order I select etc all I get is an output of the first file in the stack - help!!

    <moved from Adobe Creative Cloud to Photoshop General Discussion>

  • HT5637 i cannot get my itunes match to work on my iPhone 4s

    i cannot get the itunes match to work with my iphone 4s

    It should only be bringing up Siri if you press and hold it. Do you think you might be holding it too long?
    Cheers,
    GB

  • Cannot get Photoshop elements 11 to work. Get the message that my serial number is wrong. I do not think it is.

    Cannot get Photoshop elements 11 to work. Get the message that my serial number is wrong. I do not think it is.

    If you are certain it is correct, you will need to contact Adobe:
    Contact Customer Care
    You may need to use the chat option.
    If you want to check your serial number, sign in to your Adobe account if you registered it.

  • HT204380 I cannot get any FaceTime calls to work.

    I cannot get any FaceTime calls to work. If I do manage to talk to the other person, I only see myself. One only sees himself. One sees nothing. What are we doing wrong?
    Thanks.

    Sounds like a catch 22 situation. I rekon you are in the UK trying to use the 3 USB wimax stick.
    In anycase an iMac is a big machine to lug around. It's a difficult situation.
    If you have a neighbor, politely ask them if you can use their broadband for a short while. If this is not practical then call 3 and let them know your circumstances.
    I might be stepping on my own feet here…wait. You need Java 6.
    Ok for now, try the standalone combo update for Lion client. We will try things the manual way. It's a big download, please make sure you are not going to reach your download cap on your phone becuase you are now tethered to your mobile phone and I wouldn't want to see you pay a premium for this.
    Here is the Lion Client combo update. Download it and double click the eventual DMG file. http://support.apple.com/kb/DL1524

  • Grr. Cannot get PHP contact form to work.

    Hi!
    I cannot get a PHP contact form working. I have tried
    everything i can think of (which isn't much!) and can't get it to
    work. This is what i am using. Can anybody see what's wrong with
    this please? As you can see, the form contains a fromname,
    fromemail, subject and message fields.
    I'm a complete newb when it comes to PHP. Please please
    please help.

    Thanks for your reply.
    I just used the PHP provided in
    this
    tutorial?! Is the tutorial wrong?
    Sorry. As i said, i know nothing about PHP. How do i define
    the variables.

  • I cannot get my instant messaging to work on my ipod touch

    I cannot get my instant messaging to work on my Ipod. I just got it and set it up but it will not let me send any messages. I have wi fi. It is working good.

    See:
    iOS: Troubleshooting Messages

Maybe you are looking for

  • My iPod won't play a single song

    About a month ago I bought a song on itunes on my iPod touch (4th gen). It played several times on the iPod then but now when I try to play the song it stops for a few seconds, then skips to the next one. Please tell me how to fix this as I don't hav

  • Why can't I connect to a new wifi?

    Why can't I connect to a new wifi? When I click on the wifi account it takes me to the IP Address page not the password page.

  • Script for document name labels

    How hard would this be? A script that would type the file name into the document. I searched for similar threads but no luck. Here are the details... 1. If the document was named TEST.pdf the script would type TEST in the document. 2. The font color,

  • Current View Filter

    Hi Experst; I have two questions about CV filtering. I am trying to select dimension member on buttons. Using with "MNU_ETOOLS_MEMBERSELECTOR_A" but i want to filter dimension member. I have a lot of member in dimension so i need to filtering. 1-Is t

  • Apple TV purchased movies tab missing

    Hi guys, I've purchased quite a few movies on apple tv, sometime between August 1st and 2nd, all movies disappeared and the purchased movies tab is now gone from the main menu. My purchased tv shows are still showing, but movies gone! Anyone else hav