How did you verify that you correctly deployed the bean?
It looks like you forgot to generate the necessary stub/skeleton classes
by running it through weblogic.ejbc

--- Rajesh Kamath <[EMAIL PROTECTED]> wrote:
> I was trying out an example from EJB 2nd ed... I have correctly deployed the
> entity bean in weblogic... the database is up and running and the db pools
> have been correctly created and initialized... when i try to run the client,
> i get the following error... I recreated the jar and redeployed it but to no
> avail... any help would be appreciated...
>
> thanks in advance
> r
>
> p.s: the code (1st two lines) on which it chokes is:
>
>    Context jndiContext = getInitialContext();
>    Object obj = jndiContext.lookup("CabinHome");
>
> lookup throws the following error:
>
> javax.naming.ConfigurationException.  Root exception is
> weblogic.rmi.server.ExportException: A description for
> com.titan.cabin.CabinBeanHomeImpl was found but it could not be read due to:
> [Failed to find a stub for [class com.titan.cabin.CabinBeanHomeImpl]
> implements at least one interface [interface com.titan.cabin.CabinHome]
> which extends Remote.]
> weblogic.rmi.StubNotFoundException: Failed to find a stub for [class
> com.titan.cabin.CabinBeanHomeImpl] implements at least one interface
> [interface com.titan.cabin.CabinHome] which extends Remote.
>  at weblogic.rmi.extensions.BasicDescriptor.<init>(BasicDescriptor.java:25)
>  at
> weblogic.rmi.extensions.BasicRuntimeDescriptor.<init>(BasicRuntimeDescriptor
> .java:34)
>  at
> weblogic.rmi.internal.DescriptorManager.resolveClass(DescriptorManager.java:
> 52)
>  at
> weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java
> :36)
>  at
> weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java
> :27)
>  at
> weblogic.rmi.internal.OIDManager.getRequestDispatcher(OIDManager.java:193)
>  at weblogic.rmi.internal.OIDManager.getReplacement(OIDManager.java:182)
>  at weblogic.rmi.internal.OIDManager.replaceObject(OIDManager.java, Compiled
> Code)
>  at
> weblogic.common.internal.WLObjectOutputStreamBase.replaceObject(WLObjectOutp
> utStreamBase.java, Compiled Code)
>  at
> weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutput
> StreamBase.java, Compiled Code)
>  at
> weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOutp
> utStreamBase.java, Compiled Code)
>  at
> weblogic.rmi.extensions.AbstractOutputStream2.writeObject(AbstractOutputStre
> am2.java:82)
>  at
> weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(BasicWLContext_WLSkel.jav
> a:77)
>  at
> weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAda
> pter.java, Compiled Code)
>  at
> weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandle
> r.java:69)
>  at
> weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:1
> 5)
>  at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
>
>  at
> weblogic.rmi.internal.DescriptorManager.resolveClass(DescriptorManager.java:
> 66)
>  at
> weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java
> :36)
>  at
> weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java
> :27)
>  at
> weblogic.rmi.internal.OIDManager.getRequestDispatcher(OIDManager.java:193)
>  at weblogic.rmi.internal.OIDManager.getReplacement(OIDManager.java:182)
>  at weblogic.rmi.internal.OIDManager.replaceObject(OIDManager.java, Compiled
> Code)
>  at
> weblogic.common.internal.WLObjectOutputStreamBase.replaceObject(WLObjectOutp
> utStreamBase.java, Compiled Code)
>  at
> weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutput
> StreamBase.java, Compiled Code)
>  at
> weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOutp
> utStreamBase.java, Compiled Code)
>  at
> weblogic.rmi.extensions.AbstractOutputStream2.writeObject(AbstractOutputStre
> am2.java:82)
>  at
> weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(BasicWLContext_WLSkel.jav
> a:77)
>  at
> weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAda
> pter.java, Compiled Code)
>  at
> weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandle
> r.java:69)
>  at
> weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:1
> 5)
>  at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
>
> --------------- nested within: ------------------
> weblogic.rmi.MarshalException: error marshalling return
>  - with nested exception:
> [weblogic.rmi.server.ExportException: A description for
> com.titan.cabin.CabinBeanHomeImpl was found but it could not be read due to:
> [Failed to find a stub for [class com.titan.cabin.CabinBeanHomeImpl]
> implements at least one interface [interface com.titan.cabin.CabinHome]
> which extends Remote.]
> weblogic.rmi.StubNotFoundException: Failed to find a stub for [class
> com.titan.cabin.CabinBeanHomeImpl] implements at least one interface
> [interface com.titan.cabin.CabinHome] which extends Remote.
>  at weblogic.rmi.extensions.BasicDescriptor.<init>(BasicDescriptor.java:25)
>  at
> weblogic.rmi.extensions.BasicRuntimeDescriptor.<init>(BasicRuntimeDescriptor
> .java:34)
>  at
> weblogic.rmi.internal.DescriptorManager.resolveClass(DescriptorManager.java:
> 52)
>  at
> weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java
> :36)
>  at
> weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java
> :27)
>  at
> weblogic.rmi.internal.OIDManager.getRequestDispatcher(OIDManager.java:193)
>  at weblogic.rmi.internal.OIDManager.getReplacement(OIDManager.java:182)
>  at weblogic.rmi.internal.OIDManager.replaceObject(OIDManager.java, Compiled
> Code)
>  at
> weblogic.common.internal.WLObjectOutputStreamBase.replaceObject(WLObjectOutp
> utStreamBase.java, Compiled Code)
>  at
> weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutput
> StreamBase.java, Compiled Code)
>  at
> weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOutp
> utStreamBase.java, Compiled Code)
>  at
> weblogic.rmi.extensions.AbstractOutputStream2.writeObject(AbstractOutputStre
> am2.java:82)
>  at
> weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(BasicWLContext_WLSkel.jav
> a:77)
>  at
> weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAda
> pter.java, Compiled Code)
>  at
> weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandle
> r.java:69)
>  at
> weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:1
> 5)
>  at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
> ]
>  at
> weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(BasicWLContext_WLSkel.jav
> a:79)
>  at
> weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAda
> pter.java, Compiled Code)
>  at
> weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandle
> r.java:69)
>  at
> weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:1
> 5)
>  at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
>
> --------------- nested within: ------------------
> weblogic.rmi.ServerException: A remote exception occurred while executing
> the method on the remote object
>  - with nested exception:
> [weblogic.rmi.MarshalException: error marshalling return
>  - with nested exception:
> [weblogic.rmi.server.ExportException: A description for
> com.titan.cabin.CabinBeanHomeImpl was found but it could not be read due to:
> [Failed to find a stub for [class com.titan.cabin.CabinBeanHomeImpl]
> implements at least one interface [interface com.titan.cabin.CabinHome]
> which extends Remote.]
> weblogic.rmi.StubNotFoundException: Failed to find a stub for [class
> com.titan.cabin.CabinBeanHomeImpl] implements at least one interface
> [interface com.titan.cabin.CabinHome] which extends Remote.
>  at weblogic.rmi.extensions.BasicDescriptor.<init>(BasicDescriptor.java:25)
>  at
> weblogic.rmi.extensions.BasicRuntimeDescriptor.<init>(BasicRuntimeDescriptor
> .java:34)
>  at
> weblogic.rmi.internal.DescriptorManager.resolveClass(DescriptorManager.java:
> 52)
>  at
> weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java
> :36)
>  at
> weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java
> :27)
>  at
> weblogic.rmi.internal.OIDManager.getRequestDispatcher(OIDManager.java:193)
>  at weblogic.rmi.internal.OIDManager.getReplacement(OIDManager.java:182)
>  at weblogic.rmi.internal.OIDManager.replaceObject(OIDManager.java, Compiled
> Code)
>  at
> weblogic.common.internal.WLObjectOutputStreamBase.replaceObject(WLObjectOutp
> utStreamBase.java, Compiled Code)
>  at
> weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutput
> StreamBase.java, Compiled Code)
>  at
> weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOutp
> utStreamBase.java, Compiled Code)
>  at
> weblogic.rmi.extensions.AbstractOutputStream2.writeObject(AbstractOutputStre
> am2.java:82)
>  at
> weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(BasicWLContext_WLSkel.jav
> a:77)
>  at
> weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAda
> pter.java, Compiled Code)
>  at
> weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandle
> r.java:69)
>  at
> weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:1
> 5)
>  at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
> ]]
>  at
> weblogic.rmi.extensions.AbstractRequest.sendReceive(AbstractRequest.java:76)
>  at
> weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(BasicWLContext_WLStub.jav
> a:246)
>  at weblogic.jndi.toolkit.WLContextStub.lookup(WLContextStub.java:545)
>  at javax.naming.InitialContext.lookup(InitialContext.java:350)
>  at com.titan.cabin.Client_1.main(Client_1.java:17)
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>


=====
Cuong Q. Tran <[EMAIL PROTECTED]>

__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to