Guys,

FYI, I have been trying to get the same code to run, with the same
behavior.  Note the catch() block in TravelAgentBean.listCabins():

       } catch(javax.naming.NamingException ne){
            throw new EJBException(ne);
       } catch(java.rmi.RemoteException re){
            throw new EJBException(re);
       }

This is why it's at the top of the stack trace.  There's actually
an exception being thrown at a deeper level which you can observe if you
replace "throw new EJBException(ne)" with "ne.printStackTrace()" or
something similar.

If you do get this example to work, please post the solution.  Or, for
that matter, any example demonstrating a stateless session bean making
a successful jndiContext.lookup() on an entity bean, which is the gist
of what we're trying to do here.

HTH,

David


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Ken Jenks
> Sent: Saturday, July 22, 2000 9:46 AM
> To: jBoss
> Subject: Re: [jBoss-User] Still struggling with Monson-Haefel's examples
>
>
> At 07:32 AM 07/21/2000 -0500, you wrote:
> >Ken,
> >     Here is the code which worked for me.
> >package com.ebd.ejb;
>
> I changed your code around to sit in the com.titan package, and
> here's the
> error message I received:
>
> C:\Program Files\jboss2\examples\oreilly\chapter4\EJB11>java -classpath
> \progra~1\jboss2\lib\ext\ejb.jar;\progra~1\jboss2\client\jnp-clien
> t.jar;\pro
> gra~1\jboss2\client\jboss-client.jar;. com.titan.travelagent.jBossClient_1
> javax.ejb.EJBException
>          at
> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknow
> n Source)
>          at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
>          at sun.rmi.server.UnicastRef.invoke(Unknown Source)
>          at
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Un
> known Source)
>          at
> org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(St
> atelessSessionProxy.java:81)
>          at $Proxy1.listCabins(Unknown Source)
>          at
> com.titan.travelagent.jBossClient_1.main(jBossClient_1.java:26)
>
> =====
> Meanwhile, over in the jBoss server window,
> =====
>
>          at
> com.titan.travelagent.TravelAgentBean.listCabins(TravelAgentBean.java
> :51)
>          at java.lang.reflect.Method.invoke(Native Method)
>          at
> org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S
> tatelessSessionContainer.java:286)
>          at
> org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
> java:82)
>          at
> org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat
> elessSessionInstanceInterceptor.java:73)
>          at
> org.jboss.ejb.plugins.TxInterceptor.invoke(TxInterceptor.java:179)
>          at
> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:140)
>          at
> org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContai
> ner.java:152)
>          at
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPCon
> tainerInvoker.java:129)
>          at java.lang.reflect.Method.invoke(Native Method)
>          at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
>          at sun.rmi.transport.Transport$1.run(Unknown Source)
>          at java.security.AccessController.doPrivileged(Native Method)
>          at sun.rmi.transport.Transport.serviceCall(Unknown Source)
>          at
> sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
>          at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Sour
> ce)
>          at java.lang.Thread.run(Unknown Source)
>
>
>
> -- Ken Jenks, http://abiblion.com/
>
>     Tools for reading.
>
>
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to