1 Reply Latest reply on Dec 7, 2001 5:27 AM by Swaminathan

    Problems w/ Session Bean

    Christopher R. Gardner Newbie

      I've coded the Cabin Bean and Travel Agent Bean as described in Chapter 4 of the 3rd edition of Enterprise Java Beans by Richard Monson-Haefel. The Cabin Bean itself runs fine. When I try to access the Cabin Bean via the Travel Agent Bean I receive the following:

      java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
      javax.transaction.TransactionRolledbackException: null
      Embedded Exception
      null; nested exception is:
      javax.ejb.EJBException: null
      Embedded Exception
      null
      javax.transaction.TransactionRolledbackException: null
      Embedded Exception
      null; nested exception is:
      javax.ejb.EJBException: null
      Embedded Exception
      null
      javax.ejb.EJBException: null
      Embedded Exception
      null
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown Source)
      at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:357)
      at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:123)
      at $Proxy1.listCabins(Unknown Source)
      at com.titan.travelagent.Client_3.main(Client_3.java:27)
      javax.naming.CommunicationException. Root exception is java.lang.ClassNotFoundException: com.titan.cabin.CabinHomeRemote
      <<no stack trace available>>

      I don't understand why this would be. Why can JBoss find the Cabin Bean in one case and not the other? I believe I have the ejb-jar.xml and jboss.xml files set up properly. Any suggestions? Thanks.

      Chris