actually as someone mentioned earlier, i did not run ejbc on the jar file...
I assumed that the weblogic deployer did that for you when you say generate
container classes... regarding the properties file, the function
getInitialContext() provides the required properties... there was a long
thread on InitialContext on the 19th that hacked this in considerable
detail....
r
----- Original Message -----
From: "Thakur Sanjay Kumar ,DYM(EM1)." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 31, 2000 12:07 AM
Subject: Re: Client Error in Weblogic
> What seems to me that this code is OK for internal client like Sessionbean
> invoking entity bean.For external client,you need to use Properties Class.
> Please try and share your experience
> HNY
> --sanjay
> > ----------
> > From: Rajesh Kamath[SMTP:[EMAIL PROTECTED]]
> > Reply To: A mailing list for Enterprise JavaBeans development
> > Sent: 31 December 2000 02:46
> > To: [EMAIL PROTECTED]
> > Subject: Client Error in Weblogic
> >
> > 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>(BasicRuntimeDescript
> > or
> > .java:34)
> > at
> >
weblogic.rmi.internal.DescriptorManager.resolveClass(DescriptorManager.jav
> > a:
> > 52)
> > at
> >
weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.ja
> > va
> > :36)
> > at
> >
weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.ja
> > va
> > :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(WLObjectOu
> > tp
> > utStreamBase.java, Compiled Code)
> > at
> >
weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutp
> > ut
> > StreamBase.java, Compiled Code)
> > at
> >
weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOu
> > tp
> > utStreamBase.java, Compiled Code)
> > at
> >
weblogic.rmi.extensions.AbstractOutputStream2.writeObject(AbstractOutputSt
> > re
> > am2.java:82)
> > at
> >
weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(BasicWLContext_WLSkel.j
> > av
> > a:77)
> > at
> >
weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectA
> > da
> > pter.java, Compiled Code)
> > at
> >
weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHand
> > le
> > 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.jav
> > a:
> > 66)
> > at
> >
weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.ja
> > va
> > :36)
> > at
> >
weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.ja
> > va
> > :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(WLObjectOu
> > tp
> > utStreamBase.java, Compiled Code)
> > at
> >
weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutp
> > ut
> > StreamBase.java, Compiled Code)
> > at
> >
weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOu
> > tp
> > utStreamBase.java, Compiled Code)
> > at
> >
weblogic.rmi.extensions.AbstractOutputStream2.writeObject(AbstractOutputSt
> > re
> > am2.java:82)
> > at
> >
weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(BasicWLContext_WLSkel.j
> > av
> > a:77)
> > at
> >
weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectA
> > da
> > pter.java, Compiled Code)
> > at
> >
weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHand
> > le
> > 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>(BasicRuntimeDescript
> > or
> > .java:34)
> > at
> >
weblogic.rmi.internal.DescriptorManager.resolveClass(DescriptorManager.jav
> > a:
> > 52)
> > at
> >
weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.ja
> > va
> > :36)
> > at
> >
weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.ja
> > va
> > :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(WLObjectOu
> > tp
> > utStreamBase.java, Compiled Code)
> > at
> >
weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutp
> > ut
> > StreamBase.java, Compiled Code)
> > at
> >
weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOu
> > tp
> > utStreamBase.java, Compiled Code)
> > at
> >
weblogic.rmi.extensions.AbstractOutputStream2.writeObject(AbstractOutputSt
> > re
> > am2.java:82)
> > at
> >
weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(BasicWLContext_WLSkel.j
> > av
> > a:77)
> > at
> >
weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectA
> > da
> > pter.java, Compiled Code)
> > at
> >
weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHand
> > le
> > 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.j
> > av
> > a:79)
> > at
> >
weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectA
> > da
> > pter.java, Compiled Code)
> > at
> >
weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHand
> > le
> > 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>(BasicRuntimeDescript
> > or
> > .java:34)
> > at
> >
weblogic.rmi.internal.DescriptorManager.resolveClass(DescriptorManager.jav
> > a:
> > 52)
> > at
> >
weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.ja
> > va
> > :36)
> > at
> >
weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.ja
> > va
> > :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(WLObjectOu
> > tp
> > utStreamBase.java, Compiled Code)
> > at
> >
weblogic.common.internal.WLObjectOutputStreamBase.writeObject(WLObjectOutp
> > ut
> > StreamBase.java, Compiled Code)
> > at
> >
weblogic.common.internal.WLObjectOutputStreamBase.writeObjectWL(WLObjectOu
> > tp
> > utStreamBase.java, Compiled Code)
> > at
> >
weblogic.rmi.extensions.AbstractOutputStream2.writeObject(AbstractOutputSt
> > re
> > am2.java:82)
> > at
> >
weblogic.jndi.toolkit.BasicWLContext_WLSkel.invoke(BasicWLContext_WLSkel.j
> > av
> > a:77)
> > at
> >
weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectA
> > da
> > pter.java, Compiled Code)
> > at
> >
weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHand
> > le
> > 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:7
> > 6)
> > at
> >
weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(BasicWLContext_WLStub.j
> > av
> > 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".
> >
> >
> >
> -------------------------------------------------------------------
> CONFIDENTIALITY/PROPRIETARY NOTE.
> The document accompanying this electronic transmission
> contains information from Maruti Udyog Limited, which is
> confidential, proprietary or copyrighted and is intended
> solely for the use of the individual or entity named on
> this transmission.If you are not the intended recipient,
> you are notified that disclosing, copying, distributing or
> taking any action in reliance on the contents of this
> information is strictly prohibited.This prohibition includes,
> without limitation, displaying this transmission or any portion
> thereof, on any public bulletin board.If you are not the
> intended recipient of this document, please return this
> document to Maruti Udyog Limited immediately.
> -------------------------------------------------------------------
> "Please visit us at http://www.marutiudyog.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".
>
>
===========================================================================
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".