• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

ClassCastException

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My AppServer is WebSphere 4.0, my IDE is JBuilder 6 Enterprise.
Now my problem:
I have got problems to connect to my ejb.
the ejb runs correctly on websphere.
the lookup() in the works also correctly.
but when I cast the HomeInterface I got following exception:
java.lang.ClassCastException: Unable to load class: org.omg.stub.ejb._SessionHome_Stub
at com.ibm.rmi.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:269)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:136)
at ejb.SessionTestClient1.<init>(SessionTestClient1.java:39)
at ejb.SessionTestClient1.main(SessionTestClient1.java:185)
....................
Is there anything I have to do on the client???
classpath??? imports???
I used the standard-test-client of JBuilder.
I only changed the URL of my AppServer.
thanks for help!!!
 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check whether javax.rmi.* package is available in the classpath.
Regards,
Raman
 
Can you hear that? That's my theme music. I don't know where it comes from. Check under this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic