• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EntityBean problem

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi:
I've written a container managed entity bean for Weblogic6.0 and deployed it successfuly. Now while I'm trying to access the bean from a client program then while it is trying to execute the line
home= ctx.lookup("ContactEJBBeanManaged");
then it's giving error:

Exception in thread "main" java.lang.NoSuchMethodError: java.lang.NoSuchMethodException at ContactBeanHomeImpl_WLStub.ensureInitialized(ContactBeanHomeImpl_WLStub.java:66) at ContactBeanHomeImpl_WLStub.<init>(ContactBeanHomeImpl_WLStub.java:82)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
bjectInputStream.java:94)at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
bjectInputStream.java:114)at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:47)at weblogic.rmi.internal.BasicRemoteRef.unmarshalReturn(BasicRemoteRef.j
ava:136)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
ef.java:251)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
ef.java:225)
at weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(ServerNamingNod
e_WLStub.java:121)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:323)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at Client.lookupHome(Client.java:115)
----------------------------------------------
I've checked the JNDI name it's exactly same.. while I'm giving some other JNDI name in the client program then it's giving some other error.
Pls. give me some clue as what might be the possible reason.
Best Regards
Reeti
 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you provide the ejb Create methods?
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving this to the WebLogic forum.
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can u please write ur client side lib availability. means do u have copied weblogic.jar from correct version of weblogic to the client side classpath.???
as far as i know about the ejb's this could be the main cause of the probs.
thx.
 
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 the weblogic.jar file in the classpath.
Raman.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic