Hi all , I am using Linux6.1 and jboss-FINAL.

  I have deploy a jar which include a CMP bean and a stateless bean.
  In the session bean , i made a ejb-ref to the CMP bean  below is the
ejb-jar.xml :

  <session>
      <ejb-name>TatSession</ejb-name>
      <home>weetat.TatSessionHome</home>
      <remote>weetat.TatSession</remote>
      <ejb-class>weetat.TatSessionBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      <ejb-ref>
        <ejb-ref-name>ejb/TatEJB</ejb-ref-name>
        <ejb-ref-type>Entity</ejb-ref-type>
        <home>weetat.TatHome</home>
        <remote>weetat.Tat</remote>
        <ejb-link>TatEJB</ejb-link>
      </ejb-ref>
    </session>

 in the Session ejbCreate , i have code below :


   private transient TatHome tathome;


  public void ejbCreate() throws CreateException {
   tathome = (TatHome)gethome("java:comp/env/ejb/TatEJB",TatHome.class);
  }
   
  // for testing jboss container only
  public String getName() throws FinderException,RemoteException {

    Tat tat = tathome.findByPrimaryKey(new TatPK("1"));
    return tat.getName();
  }

  private Object gethome(String path , Class type){
    javax.naming.Context ctx = null;
    Object ref = null;
   try{
    ctx = new javax.naming.InitialContext();
    ref = ctx.lookup(path);
   }
   catch(javax.naming.NamingException ne){
     ne.printStackTrace();
    }
   return javax.rmi.PortableRemoteObject.narrow(ref,type);
  }
 
We try to called the method getName() , it give me the error
below.Anybody know why ? Thanks wt
error in the jboss container:

[TatSession] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is: 
        java.lang.ExceptionInInitializerError
[TatSession] java.lang.ExceptionInInitializerError:
java.lang.RuntimeException: Unable to load
javax.rmi.PortableRemoteObject implementation
com.inprise.vbroker.rmi.CORBA.PortableRemoteObjectImpl
[TatSession]    at
javax.rmi.PortableRemoteObject.<clinit>(PortableRemoteObject.java:41)
[TatSession]    at weetat.TatSessionBean.gethome(TatSessionBean.java:65)
[TatSession]    at weetat.TatSessionBean.ejbCreate(TatSessionBean.java:22)
[TatSession]    at java.lang.reflect.Method.invoke(Native Method)
[TatSession]    at
org.jboss.ejb.StatelessSessionEnterpriseContext.<init>(StatelessSessionEnterpriseContext.java:51)
[TatSession]    at
org.jboss.ejb.plugins.StatelessSessionInstancePool.create(StatelessSessionInstancePool.java:47)
[TatSession]    at
org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:106)
[TatSession]    at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:79)
[TatSession]    at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
[TatSession]    at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:263)
[TatSession]    at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[TatSession]    at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:144)
[TatSession]    at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
[TatSession]    at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:271)
[TatSession]    at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:163)
[TatSession]    at java.lang.reflect.Method.invoke(Native Method)
[TatSession]    at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:233)
[TatSession]    at sun.rmi.transport.Transport$1.run(Transport.java:136)
[TatSession]    at java.security.AccessController.doPrivileged(Native
Method)
[TatSession]    at
sun.rmi.transport.Transport.serviceCall(Transport.java:133)
[TatSession]    at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:418)
[TatSession]    at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:630)
[TatSession]    at java.lang.Thread.run(Thread.java:475)



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to